Page 1 of 1

Toolwindow with Maximize-&MinimizeGadgets

Posted: Sat Apr 02, 2005 1:11 am
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 ?

Re: Toolwindow with Maximize-&MinimizeGadgets

Posted: Sat Apr 02, 2005 6:07 am
by PB
> I want to create a toolwindow with Maximize-&MinimizeGadgets

You can't -- they're not meant to have them.

Posted: Sat Apr 02, 2005 9:54 am
by Hroudtwolf
I need just a window with a small titlebar.

Posted: Sat Apr 02, 2005 12:40 pm
by PB
You've done it... that's the only quick way to do it, without skinning your own.

Posted: Sun Apr 03, 2005 1:22 am
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 ?

Posted: Sun Apr 03, 2005 2:45 am
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.