gui fixes for examples

This commit is contained in:
K D Hedger
2025-07-09 13:29:02 +01:00
parent b23dbf2e28
commit a46fbc4cc9
18 changed files with 133 additions and 108 deletions

View File

@ -52,10 +52,15 @@ bool buttonCB(void *p,void* ud)
int main(int argc, char **argv)
{
int sy=BORDER;
int sy=BORDER;
windowInitStruct *win;
apc=new LFSTK_applicationClass();
apc->LFSTK_addWindow(NULL,BOXLABEL,"LFSTKExample");
win=apc->LFSTK_getDefaultWInit();
win->windowName=BOXLABEL;
win->windowType=win->app->appAtomsHashed.at(LFSTK_UtilityClass::LFSTK_hashFromKey("_NET_WM_WINDOW_TYPE_DIALOG"));
win->level=ABOVEALL;
apc->LFSTK_addWindow(win,BOXLABEL);
wc=apc->mainWindow;
label=new LFSTK_labelClass(wc,BOXLABEL,BORDER,sy,DIALOGWIDTH-BORDER-BORDER,GADGETHITE);
@ -124,7 +129,6 @@ int main(int argc, char **argv)
sy+=YSPACING;
wc->LFSTK_resizeWindow(DIALOGWIDTH,sy,true);
//wc->LFSTK_showWindow();
printf("Number of gadgets in window=%i\n",wc->LFSTK_gadgetCount());
int retval=apc->LFSTK_runApp();