Saturday, December 16th 2017, 7:35pm UTC+1

You are not logged in.

  • Login
  • Register

mjanas10

Beginner

Date of registration: Oct 5th 2017

Posts: 30

1

Monday, November 27th 2017, 4:47pm

SKINNING - font size change using the same skin?

Dear all

How to make the Font size change using the same button skin?

Thanks

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 443

2

Tuesday, November 28th 2017, 11:06am

Hi,

You could use BUTTON_SetFont() to change the font. If you want to change the font e.g. when clicking the button you can react on WIDGET_ITEM_DRAW_TEXT within the custom skinning routine and change the font accordingly.

Attached is an example where I change the font if the button gets pressed down and uses the default font when it gets released.

Regards
Sven
SEGGER - Schoenen has attached the following file:
  • TextInSkin.zip (854 Byte - 8 times downloaded - Last download: Dec 14th 2017, 12:43am)