Restored from previous forum. Originally posted by high key.
Is it possible to prevent a running purebasic-program from showing in systray ?
Prevent program from showing in systray ?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by freak.
Yes, it is. See http://www.curvesoftware.co.uk/purebasi ... IC_ID=1211
Timo
Yes, it is. See http://www.curvesoftware.co.uk/purebasi ... IC_ID=1211
Timo
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
You can also make it a palette window
Regards,
Berikco
http://www.benny.zeb.be
You can also make it a palette window
Code: Select all
hwnd= OpenWindow(1, 150, 200, 100, 50, #PB_Window_Invisible , "BeerSelector")
If hwnd
SetWindowLong_(hwnd,#GWL_EXSTYLE,#WS_EX_PALETTEWINDOW); not in taskbar
HideWindow(1, 0)
ResizeWindow(400,150)
Repeat
Until WaitWindowEvent() = #PB_EventCloseWindow
EndIf
Regards,
Berikco
http://www.benny.zeb.be
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by freak.
> Until WaitWindowEvent() = #PB_EventCloseWindow
not a very good way becourse your Window has no #PB_Window_SystemMenu Flag, so there's no way to close it.
There's also another Problem: a Palette Window can't be accessed with Alt+Tab!
So no Taskbar, no Alt+Tab, how would the user access the window, once he has hidden it? (by clicking on the 'show desktop' Shortcut on the Taskbar for example)
Just some thoughts...
Timo
> Until WaitWindowEvent() = #PB_EventCloseWindow
not a very good way becourse your Window has no #PB_Window_SystemMenu Flag, so there's no way to close it.
There's also another Problem: a Palette Window can't be accessed with Alt+Tab!
So no Taskbar, no Alt+Tab, how would the user access the window, once he has hidden it? (by clicking on the 'show desktop' Shortcut on the Taskbar for example)
Just some thoughts...
Timo
-
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 Berikco.
You can give it a close box.
For this kind of apps, if there is no other normal main window, i mostly use a trayicon
Note: in my daily job, i get in touch with normal customers, maybe about 1% kwows how to use ALT-Tab, even TAB to select other gadget is not known. So make sure your app is not for this kind of users
BTW, a BeerSelector must not be in taskbar, if you hide it, boss should not find it
Regards,
Berikco
http://www.benny.zeb.be
ALT-F4..... also worksnot a very good way becourse your Window has no #PB_Window_SystemMenu Flag, so there's no way to close it.
You can give it a close box.
For this kind of apps, if there is no other normal main window, i mostly use a trayicon
Note: in my daily job, i get in touch with normal customers, maybe about 1% kwows how to use ALT-Tab, even TAB to select other gadget is not known. So make sure your app is not for this kind of users
Code: Select all
hwnd= OpenWindow(1, 150, 200, 100, 50, #PB_Window_Invisible|#PB_Window_SystemMenu , "BeerSelector")
If hwnd
SetWindowLong_(hwnd,#GWL_EXSTYLE,#WS_EX_PALETTEWINDOW); not in taskbar
HideWindow(1, 0)
ResizeWindow(400,150)
Repeat
Until WaitWindowEvent() = #PB_EventCloseWindow
EndIf
Regards,
Berikco
http://www.benny.zeb.be