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

Just starting out? Need help? Post your questions and find answers here.
Hiller
User
User
Posts: 15
Joined: Mon Mar 29, 2004 12:32 am
Location: Ukraine
Contact:

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

Post 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:
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post 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.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Hiller
User
User
Posts: 15
Joined: Mon Mar 29, 2004 12:32 am
Location: Ukraine
Contact:

Post 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
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1290
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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! :)
Image Image
Hiller
User
User
Posts: 15
Joined: Mon Mar 29, 2004 12:32 am
Location: Ukraine
Contact:

Post 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
Post Reply