various ui fixes see change logs ...

This commit is contained in:
K D Hedger
2024-05-02 12:40:50 +01:00
parent e4fe5fa777
commit 57aa4510ea
33 changed files with 305 additions and 375 deletions

View File

@ -122,12 +122,12 @@ int main(int argc, char **argv)
//check button
check=new LFSTK_toggleButtonClass(wc,"Check Box",DIALOGMIDDLE-HALFGADGETWIDTH,sy,GADGETWIDTH,CHECKBOXSIZE);
check->LFSTK_setValue(true);
check->LFSTK_setMouseCallBack(NULL,buttonCB,(void*)check->LFSTK_getLabel().c_str());
check->LFSTK_setMouseCallBack(NULL,buttonCB,(void*)"Check Box");
sy+=YSPACING;
//toggle button
toggle=new LFSTK_toggleButtonClass(wc,"Toggle",DIALOGMIDDLE-HALFGADGETWIDTH,sy,GADGETWIDTH,GADGETWIDTH);
toggle->LFSTK_setMouseCallBack(NULL,buttonCB,(void*)toggle->LFSTK_getLabel().c_str());
toggle->LFSTK_setMouseCallBack(NULL,buttonCB,(void*)"Toggle");
toggle->LFSTK_setMouseMoveCallBack(enterCB,exitCB,USERDATA(0));
toggle->LFSTK_setToggleStyle(TOGGLENORMAL);
toggle->userData=USERDATA(1);