Toolwindow with Maximize-&MinimizeGadgets

Windows specific forum
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Toolwindow with Maximize-&MinimizeGadgets

Post by Hroudtwolf »

Hello World, ;-)


I want to create a toolwindow with Maximize-&MinimizeGadgets.
This was one of my attempts. But it don't works.

Code: Select all

OpenWindow(0, 0, 0, 219, 85, #PB_Window_SystemMenu|#PB_Window_Invisible|#PB_Window_ScreenCentered|#pb_window_maximizegadget, "ToolWindow") 
SetWindowLong_(WindowID(),#GWL_EXSTYLE,#WS_EX_TOOLWINDOW)   
ShowWindow_(WindowID(),#SW_SHOW)   
Repeat 
    Select WaitWindowEvent() 
    Case #PB_Event_CloseWindow
    Quit = 1 
    EndSelect    
Until Quit = 1 

Can anybody help me ?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Toolwindow with Maximize-&MinimizeGadgets

Post by PB »

> I want to create a toolwindow with Maximize-&MinimizeGadgets

You can't -- they're not meant to have them.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

I need just a window with a small titlebar.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

You've done it... that's the only quick way to do it, without skinning your own.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

But I want to have minimize- and maximizebuttons in the titlebar.
Is there anyway to put this in the titlebar?
Sendmessages or Windowlongs ?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

You can't with a ToolWindow.

I'm guessing that you want a "normal" window but without its button showing
in the Taskbar? A ToolWindow is the easiest way to do it, but as you've seen
you can't keep the minimize/maximize buttons on it. There may be another
way to remove its button from the Taskbar, but I don't know how, sorry.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply