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

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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)