Page 1 of 1

[Implemented] Please add ToolWindow

Posted: Mon May 13, 2002 3:57 pm
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.

Posted: Tue Jun 10, 2003 6:01 am
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.