Quote:
Originally Posted by Igor Vartanov
Well i guess i've to do same thing :)
Anyways thanks all for your replies.. If by any chance something strikes on your mind please let me know..
Thanks all...
Printable View
Quote:
Originally Posted by Igor Vartanov
Well i guess i've to do same thing :)
Anyways thanks all for your replies.. If by any chance something strikes on your mind please let me know..
Thanks all...
You could change your algorithm to not just display your dialog above any tooltip.
When calculating the position of your window, start in the lower right hand corner as if there are no tooltips visible.
Then iterate over all tooltips (using the class name), check which ones are visible and get the coordinates for the visible tooltips. For each visible tooltip check if it overlaps with your dialog position. If it does overlap, move your dialog up until it doesn't overlap anymore.
Hm.. I think you are needlessly complicating things. The tooltip notifications ( balloons ) are probably what you see coming from the system tray icons , isn't it ? All these tray balloons normally just come and go , so, why would you add some logic in your application to rely on what is happening on other applications. Just let windows do what it needs to do.. You would then just do the necessary to popup your dialogs. If you start thinking about what other windows are there, then you are getting into deciding which other popup is more important and which ones are not. Also, then what happens when , when you invoke your dialog above some tooltip, the tooltip then goes away and is replaced by an even bigger tooltip ? Also, what happens if the taskbar itself is aligned to the top-egde or the right /left edges ?
I was just trying to help the OP solve his/her problem. Sometimes people want strange things ;)
OOps.. sorry for coming across as suggesting you, MarcG. I was infact suggesting OP ;) I know sometimes it does happen that there are strange requirements and in quite a few cases, the effort to "fix" something isn't really worth the value it adds. In case of UI behaviors, people come to expect things to behave the standard way.
Well thanks Kirants and Marc.. There will be so many complication if i implement that...
I believe i should go for Igor idea or drop this idea :)
Anyways thanks for your support...
That is so true and often I also tell the person asking strange things that, but you know how it goes, they often don't want to listen and require a solution anyway ;)Quote:
Originally Posted by kirants