Saturday, March 24th 2018, 4:54pm 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.



Date of registration: Feb 21st 2018

Posts: 11


Wednesday, February 21st 2018, 11:28am



how to use up and down arrow independently? i want to put list of string in it. :?:



Date of registration: Jun 9th 2017

Posts: 4


Wednesday, February 21st 2018, 4:01pm

If you want to change the appearance of the up and down buttons and substitute the arrows with some text I think that a skinning callback is the answer to your question.
You can check the manual section 22.19 where it explains the skinning of the spin box.

If it is the question you should create a skinning callback that reacts to commands

WIDGET_ITEM_DRAW_BUTTON_L The skinning function should draw the upper button.
WIDGET_ITEM_DRAW_BUTTON_R The skinning function should draw the lower button.

And use text drawing functions inside this "case" statements.

Similar threads