Please why can't I minimize this window ? (I want my software to start minimized).
If OpenWindow(0, 0, 0, #h, #w, "name", #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_Minimize )
...
Why can't I minimize this code ?
-
- User
- Posts: 11
- Joined: Fri Sep 15, 2006 8:04 am
- Location: FR
According to the help manual the #PB_Window_Minimize flag should set the window to a minimized state directly from the OpenWindow() command. Reckon the help manual must be in error rather than Purebasic.
Anyhow the following will have the desired effect:
Anyhow the following will have the desired effect:
Code: Select all
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget| #PB_Window_Invisible )
SetWindowState(0, #PB_Window_Minimize)
I may look like a mule, but I'm not a complete ass.
-
- User
- Posts: 11
- Joined: Fri Sep 15, 2006 8:04 am
- Location: FR