Location Earth, (I Think)
Home
About Us
Contact Us
Links
Home
Creating Labels, Buttons and ListBoxes
Requires User32.dll, ComCtl.dll & UxTheme.dll
 

This Example will Create the window which is Pictured on the right, it a Usable UI containing Labels, Buttons and a ListBox, They are all ceated using CreateWindowExA Which can also be used to create other Gui Items.

 

You Will notice that this programme is running the DarkBasic's Window handle through the function called PrepareWindowForAPI(Handle), This is to avoid some Problems that you can get with BlueGui when Adding Gadgets to the Darkbasic Window, You should only need to run the Darkbasic Window Handle through this Function, Non others.

 

This Example also uses SetAppXPTheme Which it gets from UxTheme.dll, The example below will work fine, but in order to apply XP Themes to the Gadgets Download This Manifest File and place it in the same location that DarkBasic will create the EXE, Then rename the File to "Your Apps Name.exe.manifest", Then press F5 and XPThemes will be applied to any compatable gadgets automatically, For this example, this will include the Buttons.

 

This Example is a Primative Object Preview Programme.