Restored from previous forum. Originally posted by skypa.
Hi,
is it possible to get a smaller window system-menu?
For example:
http://mitglied.lycos.de/gebskypa/littlesysmenu.GIF
Smaller SystemMenu ?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Hi Skypa,
take a look at:
All Forums -> Beginners -> Need a codesnipped with CreateWindowEx_
There you will find code that I did...
look at the code for:
and make a comment out of it with ';' at the beginning.
Then uncomment this line (delete ';' at the beginning):
That's it.
Now you have a ToolWindow style. But you don't have a button in the taskbar anymore. That's the way it is under windows.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - franco on 05 April 2002 19:14:32
Hi Skypa,
take a look at:
All Forums -> Beginners -> Need a codesnipped with CreateWindowEx_
There you will find code that I did...
look at the code for:
Code: Select all
hWnd=CreateWindowEx_(0,"ownwindow",@"DEMO",#PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_Invisible,200,200,#WindowWidth,#WindowHeight,0,0,GetModuleHandle_(0),0)
Then uncomment this line (delete ';' at the beginning):
Code: Select all
;hWnd=CreateWindowEx_(#WS_EX_TOOLWINDOW,"ownwindow",@"DEMO",#WS_POPUPWINDOW|#WS_DLGFRAME|#WS_CLIPSIBLINGS|#WS_VISIBLE|#DS_MODALFRAME|#DS_3DLOOK,200,200,320,240,0,0,GetModuleHandle_(0),0)
Now you have a ToolWindow style. But you don't have a button in the taskbar anymore. That's the way it is under windows.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - franco on 05 April 2002 19:14:32
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by skypa.
Thx for the tipps.
@ Franco
Your Codesnippet doesn't compile here (Fullversion, PureBasic 3.0). And I also think thats its a little too uncomfortable to use, so I hope fred or someone else can modify the librarys so we can use #PB_TOOLBAR or something like this in the code.
thx though & greets
skypa
Thx for the tipps.
@ Franco
Your Codesnippet doesn't compile here (Fullversion, PureBasic 3.0). And I also think thats its a little too uncomfortable to use, so I hope fred or someone else can modify the librarys so we can use #PB_TOOLBAR or something like this in the code.
thx though & greets
skypa
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
With PureBasic v3 you need to change the parameters of 'Procedure ownwindowproc' to:
Procedure.l ownwindowproc(hWnd,Msg,wParam,lParam)
to make it work.
@Skypa, du you need a main window or a child window?
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - Franco on 05 April 2002 22:32:41
Yes you have right, this code doesn't work anymore the way it was.Thx for the tipps.
@ Franco
Your Codesnippet doesn't compile here (Fullversion, PureBasic 3.0). And I also think thats its a little too uncomfortable to use, so I hope fred or someone else can modify the librarys so we can use #PB_TOOLBAR or something like this in the code.
thx though & greets
skypa
With PureBasic v3 you need to change the parameters of 'Procedure ownwindowproc' to:
Procedure.l ownwindowproc(hWnd,Msg,wParam,lParam)
to make it work.
@Skypa, du you need a main window or a child window?
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - Franco on 05 April 2002 22:32:41
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Put your GadgetEvents in the right place and it will work
You also see a toolbar and a menu (tested on W98SE for now...)
Feel free to use it until...
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - franco on 06 April 2002 01:09:44
Well I put a stripped version of my code under Tips&Tricks and IMHO its now not more uncomfortable to use because OpenToolWindowEx acts like the normal OpenWindow command (with less parameters...)And I also think thats its a little too uncomfortable to use...
Put your GadgetEvents in the right place and it will work
You also see a toolbar and a menu (tested on W98SE for now...)
Feel free to use it until...
Hope this helps...I hope fred or someone else can modify the librarys so we can use #PB_TOOLBAR or something like this in the code.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - franco on 06 April 2002 01:09:44
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm