//===================================================================================== // Window for WIND //===================================================================================== CFuiWind::CFuiWind(Tag idn, const char *filename) :CFuiWindow(idn,filename,0,0,0) { char erm[128]; sprintf(erm,"Incorrect TEMPLATE file: %",filename); //---Locate components ------------------------------------ layW = (CFuiList*) GetComponent('layr'); if (0 == layW) gtfo(erm); errW = (CFuiLabel*) GetComponent('eror'); if (0 == layW) gtfo(erm); popW = (CFuiPopupMenu*) GetComponent('popm'); if (0 == popW) gtfo(erm); skyW = (CFuiTextField*) GetComponent('ceil'); if (0 == skyW) gtfo(erm); //-- Init menu ------------------------------------------- popW->CreatePage(&cMEN,coverMENU); layer = globals->wtm->GetCloudLayer(); popW->SetButtonText((char*)cMEN.aText[layer]); //-- Init cloud ceil ------------------------------------- ceil = globals->wtm->GetCloudCeil(); ChangeCeil(0); //-- Init list box --------------------------------------- U_INT type = LIST_HAS_TITLE + LIST_NOHSCROLL; windBOX.SetParameters(this,'layr',type); windBOX.Display(); Select(); }