Tuesday, May 22nd 2018, 6:10am UTC+2

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.

S_Gura

Beginner

Date of registration: Sep 21st 2017

Posts: 9

1

Tuesday, October 10th 2017, 3:08pm

Close button in FRAMEWIN

Hi!
Is it possible to change SKIN closebutton in FRAMEWIN?
S_Gura has attached the following image:
  • FRAMEWIN.png

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 584

2

Tuesday, October 10th 2017, 3:51pm

Hi,

Of course, it behaves like a normal button. When creating the button with FRAME_AddCloseButton(), the function returns the button handle. With this handle you can do the same as with a normal button.

This includes setting a custom skinning function or a custom callback.

Attached is an example.

Regards
Sven
SEGGER - Schoenen has attached the following file:

S_Gura

Beginner

Date of registration: Sep 21st 2017

Posts: 9

3

Wednesday, October 11th 2017, 8:18am

Thanks for the answer!
:)