PDA

View Full Version : how can i design systray behind the ordinary form



umen
16th May 2010, 15:47
Hello all
how can i design the systray massages balloons to be more calrfule and different sizes?
im using QSystemTrayIcon::showMessage(..) but the look & and feel is boring.

squidge
16th May 2010, 16:16
So design and code your own. You can detect when someone has clicked your system tray icon. All you have to do is show a custom form.

umen
17th May 2010, 07:26
Hello and Thanks for the reply
this is good idea , but how can i detect the coordinates to be exact above the systray , to it can give me the right effect ?

squidge
18th May 2010, 12:52
The systray is just another window, so you can use APIs such as FindWindow() to find its position and size and display your custom form appropriately. Don't forget the tray can be on the top, side, or bottom of any connected monitor, so you need to account for this.