Page 1 of 1

tool window

Posted: Tue Apr 15, 2025 3:06 pm
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.

Re: tool window

Posted: Tue Apr 15, 2025 5:40 pm
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)