[Implemented] Please add ToolWindow

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Please add ToolWindow

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

It would be nice to have a ToolWindow within the Windows lib.
(small window title and no button in the taskbar)
Don't know actually if this is Windows specific, but it would be nice to see it anyway.


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Now with the additional ParentWindowID flag at the OpenWindow command,
an additional #ToolWindowStyle would have been great.

But nobody listen to me... :(

Franco

BTW
I add this request again, because if I change the WindowStyle later with:

Code: Select all

If OpenWindow(0, 200, 200, 320,240, #PB_Window_SystemMenu ,"Main Window") And CreateGadgetList(WindowID()) : Else : End : EndIf

If OpenWindow(1, 400, 208, 320,240, #PB_Window_SystemMenu ,"Child Window",WindowID(0)) : Else : EndIf
SetWindowLong_(WindowID(1),#GWL_EXSTYLE,GetWindowLong_(WindowID(1),#GWL_EXSTYLE) | #WS_EX_TOOLWINDOW)
ResizeWindow(320, 232)

Repeat
  EventID.l = WaitWindowEvent()
Until EventID = #PB_EventCloseWindow

End
the InnerSize is not correct anymore and it has to be corrected afterwards with ResizeWindow.
Besides if you don't do a Resize, than the style is changed only if you move the ChildWindow with the mouse.

I am to provide the public with beneficial shocks.
Alfred Hitshock
Post Reply