DevilUI Help NeededCommunity Forums/Developer Stations/DevilUI Help Needed
| I'm using DevilsChild's DevilUI and wanting to display a 'splash screen' over the background window while the rest of the UI initialise (Loads skin and populates the UI gadgets etc)|
However the splash screen seems to remain and the UI 'Windows' appear to be 'hiden' behind it (I can only see the 'windows' by minimising the app and restoring it. But even so, the gadgets remain unresponsive as though the 'window and gadgets' are not registering as "In Front".
Here's some of my code which may help to identify where the problem lies.
By this point in the code, the drawing buffer is set to BackBuffer:
IMG_SPLASH%=LoadImage(PATH_VIDEO$+FILENAME_IMG_SPLASH$+EXTENSION_IMAGE$) DrawImage IMG_SPLASH,0,0 Flip GUI_InitGUI(GUI_SKIN_PATH$+GUI_DEFAULT_SKIN$+GUI_SKIN_EXTENSION$)
Next comes the creation of the main UI 'Window' (Similar to the DevilUI sample example, this is wrapped in a separate function.
Only after this function, does the MAIN LOOP of my code begin.
BuildMainWindow(winConfig) While NotKeyHit(1) GUI_UpdateGUI() GUI_WindowDetail(winConfig) Wend GUI_FreeGUI() End
The 'GUI_WindowDetail' function is another 'wrapper'; for the calls to update the gadgets and check for input (i.e. messages sent from the GUI gadgets representing button clicks etc.)
At this point, it's pretty bare :)
;CONTROL Function GUI_WindowDetail(Window) ;Skin combobox Local GUI_NEW_SKIN$ = GUI_Message(cmbSkin, "GetText") If (GUI_OLD_SKIN$ <> GUI_NEW_SKIN$ And GUI_NEW_SKIN$ <> "") GUI_LoadSkin(GUI_SKIN_PATH$+GUI_NEW_SKIN$+GUI_SKIN_EXTENSION$) End If GUI_OLD_SKIN$ = GUI_NEW_SKIN$ ;File Menu Local GUI_FILE_MENU$ = GUI_Message(mnuFile, "GetText") If (GUI_FILE_MENU$ = WINTEXT_FILE_1$) GenerateNewProfile() End If End Function
The only other reference I can find to a 'Flip' statement comes in
the GUI_ColorPicker() function, which is not used, the GUI_MessageBox() Function and the 'GUI_LoadSkin()' Function.
The MEssageBox() gets called every loop, as it is part of the update-checking for the UI system, so a flip there should be all that's necessary to continue drawing the windows.
Sicne there's no 3D, it shouldn't be connected to any instance of z-buffering or anything.
I'm really confused.