Shoutbox

command window tooltip position - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: command window tooltip position (/showthread.php?tid=28939)

command window tooltip position by uam on 07-21-2004 at 12:28 AM

Hi,
I have version 3.01.94 and would like to mention just a little notice, the tooltips describing commands are aligned at right, and when the MSN window is near the right side of screen, they are cropped instead of moved or left-aligned.


RE: command window tooltip position by Choli on 07-22-2004 at 08:07 PM

Can you post a screen shot? That isn't supposed to happen. Plus should place the window in a place where you can see it without it nor the tooltips being cropped.


RE: command window tooltip position by CookieRevised on 07-22-2004 at 08:26 PM

[Image: attachment.php?pid=281372]


quote:
Originally posted by Choli
Plus should place the window in a place where you can see it without it nor the tooltips being cropped.
It does place the window always completely onscreen. But the tooltips are placed relative to the window, this means that the window can be placed on the right side of your screen, but that the tooltips wont be visible.
But this said, the only time that the window will be put on the rightside of the screen is when it doesn't have enough place to popup on it's normal position, and that means your convoscreen itself must be almost totaly off screen (even more off screen then shown in the sshot), in other words, it would be useless anyway...

Maybe what can be done is to check where the commandwindow is placed on the screen and from that decide where to put the tooltips: If it is left from the center of your screen then show the tooltips on the right, if it is on the right from the center of your screen, then show the tooltips on the left....


RE: command window tooltip position by uam on 07-22-2004 at 08:32 PM

Yes.. this is the case, you were faster CookieRevised ;)


RE: command window tooltip position by Choli on 07-22-2004 at 09:08 PM

quote:
Originally posted by CookieRevised
if it is on the right from the center of your screen, then show the tooltips on the left....
we (at least left-to-right languages speaking people) are used to see tooltips at the right of the cursor or button or whatever the tooltip is for, so IMO the tooltip should be displayed on the left only when the window is near enough the right edge of the screen; just when the tooltip wouldn't fit on the right. (that would imply a more complex code, of course)
RE: command window tooltip position by CookieRevised on 07-23-2004 at 12:51 AM

quote:
Originally posted by Choli
quote:
Originally posted by CookieRevised
if it is on the right from the center of your screen, then show the tooltips on the left....
we (at least left-to-right languages speaking people) are used to see tooltips at the right of the cursor or button or whatever the tooltip is for, so IMO the tooltip should be displayed on the left only when the window is near enough the right edge of the screen; just when the tooltip wouldn't fit on the right. (that would imply a more complex code, of course)
Yup, thought of that also, but that means that it must process all the tooltips first to get the longest one, calculate the pixels, etc. and do that every time because the length can change if you change the language...

While the method I discribed doesn't depend on language and doesn't need the processing of all tooltips and thus would be faster...

Also, I, personaly, wouldn't mind or find it strange if it was shown on the left, and that's because of the way it is used as a fixed addition to the window.... if it was a normal tooltip (shown beside the mouse cursor), then, yes, I would find it strange if it was shown on the left...

Anyways, it was just a humble example of how to solve it without saying how Patchou should do it of course. I'm certain he'll come up with something nifty ;)
RE: command window tooltip position by Vantage on 07-23-2004 at 01:07 AM

quote:
Maybe what can be done is to check where the commandwindow is placed on the screen and from that decide where to put the tooltips: If it is left from the center of your screen then show the tooltips on the right, if it is on the right from the center of your screen, then show the tooltips on the left....

that = more loading time
RE: command window tooltip position by CookieRevised on 07-23-2004 at 01:26 AM

quote:
Originally posted by Vantage
that = more loading time
Loading time? More? Howso? Checking where the window will be positioned doesn't have anything todo with loading time. Furthermore, checking the position of the window is done already (in fact, it is already done for every window)..... The only thing that needs to be added is to check the screen width (which is one simple call), divide that by 2 and you have your value to check against.....

I'm sorry if this sounds harsh, but don't post if you don't know what you're talking about....
RE: command window tooltip position by uam on 07-23-2004 at 08:32 AM

I don't think all of the tooltips have to be pre-loaded.
Just check it before displaying and rearrange only those that are to be cropped.

Or - but this is quite tricky (H) - some advanced applications start to wrap the tooltip text into more rows... ;)


RE: command window tooltip position by CookieRevised on 07-23-2004 at 12:27 PM

quote:
Originally posted by uam
I don't think all of the tooltips have to be pre-loaded.
Just check it before displaying and rearrange only those that are to be cropped.
that would look/feel like crap IMO; they should be displayed all on the same side. Furthermore, this requires just the exact same processing per tooltip in the end. Only now it is done each time a tooltip is shown, resulting in slower code ("slower" is of course very relative, you wont notice it, but it will be slower.)
quote:
Originally posted by uam
Or - but this is quite tricky (H) - some advanced applications start to wrap the tooltip text into more rows... ;)
There is nothing tricky/advanced with that. And what has an "application start" to do with that?.. Anyways, this wont do anything good, look at my screenshot, how are you gonna wrap it? There is only space for 4 characters......

RE: command window tooltip position by uam on 07-23-2004 at 12:51 PM

quote:
Originally posted by CookieRevised
There is nothing tricky/advanced with that. And what has an "application start" to do with that?..
Well writing code that will choose at which words to wrap is more advanced than just to decide whether to put it left or right...

quote:
Originally posted by CookieRevised
Anyways, this wont do anything good, look at my screenshot, how are you gonna wrap it? There is only space for 4 characters......

Yep, if some word doesn't fit, tooltip have to be left-aligned. Your screenshot wouldn't have any other solution.