Page 1 of 1

Hey people, where flags "#PB_Window_{Minimized|Maximize

Posted: Mon Mar 29, 2004 11:47 pm
by Hiller
I don't see thise flags in description of PureBasic in function OpenWindow?
Wath the problem here or I'm can read?

The last it's was a joke :wink:

Posted: Mon Mar 29, 2004 11:49 pm
by Karbon
Open the PB help file (Press F1 from within the PB editor)

Click on Window under "General Libraries"

Click on OpenWindow

There ya go.

Posted: Tue Mar 30, 2004 12:23 am
by Hiller
Open the PB help file (Press F1 from within the PB editor)
Click on Window under "General Libraries"
Click on OpenWindow
There ya go.
Possible flags are:
#PB_Window_SystemMenu : Enables the system menu on the window title bar.
#PB_Window_MinimizeGadget: Adds the minimize gadget to the window title bar. #PB_Window_System is automatically added.
#PB_Window_MaximizeGadget: Adds the maximize gadget to the window title bar. #PB_Window_System is automatically added.
#PB_Window_SizeGadget : Adds the sizeable feature to a window.
#PB_Window_Invisible : Creates the window but don't display. Not supported on AmigaOS.
#PB_Window_TitleBar : Creates a window with a titlebar.
#PB_Window_BorderLess : Creates a window without any borders.
#PB_Window_ScreenCentered: Centers the window in the middle of the screen. x,y parameters are ignored.
#PB_Window_WindowCentered: Centers the window in the middle of the parent window. x,y parameters are ignored.


I can't create window maximized or minimized use thise flags.
Where in thise #PB_Window_Minimized or #PB_Window_Maximized

Posted: Tue Mar 30, 2004 12:58 am
by Paul
#PB_Window_MinimizeGadget
#PB_Window_MaximizeGadget

These flags add the buttons in the top right corner which allow the user to minimize or maximize your app.

If you wish to to this with code, you can use the Windows API...
ShowWindow_(WindowID(#Window),#SW_SHOWMINIMIZED)
ShowWindow_(WindowID(#Window),#SW_SHOWMAXIMIZED)

Simply create your window (using OpenWindow) then use one of these commands.

Enjoy! :)

Posted: Tue Mar 30, 2004 1:19 am
by Hiller
Very Fun! :wink:

Why thise flag are not prescribed in standart flag's, it's important in openwindow procedure.

I think necessary all the same to take into account these flags in future versions. :D