achimdoebler / UGUI

µGUI - Open Source GUI module for embedded systems
Other
1.22k stars 420 forks source link

How can the "CLICK" event be triggered #49

Open LazerFaze opened 1 year ago

LazerFaze commented 1 year ago

in my project, PRESS and RELEASE are working well, but CLICK is never normally working

LordsWars commented 1 month ago

photo_2024-08-30_15-54-04 я решаю это так: `void setup_callback ( UG_MESSAGE* msg )

{

if ( msg->id == OBJ_TYPE_ROW )

{

switch ( msg->sub_id )

{ case ROW_ID_0 : {

if (msg->event==OBJ_EVENT_PRESSED)

{

    if (UN<100)UN++;

    sprintf(buffer1, "%d", UN  );

UG_TextboxSetText ( &setup , TXB_ID_0 ,buffer1 ) ;

}

break;

}`