Page 1 of 1

Posted: Thu Nov 28, 2002 8:08 pm
by BackupUser
Restored from previous forum. Originally posted by high key.

Is it possible to prevent a running purebasic-program from showing in systray ?

Posted: Thu Nov 28, 2002 8:24 pm
by BackupUser
Restored from previous forum. Originally posted by freak.

Yes, it is. See http://www.curvesoftware.co.uk/purebasi ... IC_ID=1211

Timo

Posted: Thu Nov 28, 2002 8:48 pm
by BackupUser
Restored from previous forum. Originally posted by Berikco.

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

Posted: Thu Nov 28, 2002 9:34 pm
by BackupUser
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

Posted: Thu Nov 28, 2002 10:25 pm
by BackupUser
Restored from previous forum. Originally posted by high key.

I like Berikco's BeerSelector :wink:) very much. That's exactly what I was looking for.

This forum is great, you get a real good answer to each question. Thank you!

Posted: Fri Nov 29, 2002 7:59 am
by BackupUser
Restored from previous forum. Originally posted by Berikco.
not a very good way becourse your Window has no #PB_Window_SystemMenu Flag, so there's no way to close it.
ALT-F4..... also works
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
BTW, a BeerSelector must not be in taskbar, if you hide it, boss should not find it

Regards,

Berikco

http://www.benny.zeb.be