tool window

Just starting out? Need help? Post your questions and find answers here.
Mesa
Enthusiast
Enthusiast
Posts: 433
Joined: Fri Feb 24, 2012 10:19 am

tool window

Post by Mesa »

The tool window title height size is the same as a normally window, it shouldn't ?

Windows 10
PB 621b5

Code: Select all


If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
  OpenWindow(1, 300, 200, 100, 260, "tool", #PB_Window_SystemMenu | #PB_Window_Tool, WindowID(0))
  
  Repeat
    Event = WaitWindowEvent()
    
    If Event = #PB_Event_CloseWindow  ; If the user has pressed on the close button
      Quit = 1
    EndIf
    
  Until Quit = 1
  
EndIf

End   ; All the opened windows are closed automatically by PureBasic

M.
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: tool window

Post by AZJIO »

If you open an old version of Notepad++ 6.5.3 in which the search box had a tool style, you will see the same height. It is Windows that sets the height of the toolbar.

Code: Select all

OpenWindow(1, 300, 200, 100, 260, "tool", #WS_SYSMENU, WindowID(0))
SetWindowLongPtr_(WindowID(1), #GWL_EXSTYLE, #WS_EX_TOOLWINDOW)
Post Reply