Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Preserve comments formating...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

balda
Junior Member

14 Posts

Posted - Aug 05 2004 :  09:38:22 AM  Show Profile
in hovering tooltips. Currently VAX makes a complete mess from the comment like

/**
    This is first line of comment.

    BEWARE: Here goes another text, that was intentionally separated 
    from the surrounding text.

    Very usefull table:
    col1         |  col2   | col3    | col4
    some_value11 |         | value13 | 
                 | value22 |         | value24 

    Some long strange explanation starts here.
*/

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Aug 05 2004 :  09:41:24 AM  Show Profile
Could you post a screenshot of the tooltip?

If you don't have any webspace, feel free to mail the screenshot to Support and write TOPIC_ID=2724 in the Body...

They'll upload it to their webspace and embed the picture in this posting...

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 05 2004 :  5:36:07 PM  Show Profile
this is happening because tooltips are using a proportional font. i suspect the only fix would be to use a fixed width font for the tooltips.

zen is the art of being at one with the two'ness
Go to Top of Page

balda
Junior Member

14 Posts

Posted - Aug 06 2004 :  02:41:07 AM  Show Profile
Hm... May be the word "mess" I used is too strong. I'll try to explain it in more detailes. Actually, the comment in tooltip looks like one after the following transformation: all tabs are replaced by space, two or more spaces are replaced by only one space, and, finally, empty lines are deleted. So, the example, I gave in the first message, will look in a tooltip like

/**
This is first line of comment.
BEWARE: Here goes another text, that was intentionally separated 
from the surrounding text.
Very usefull table:
col1 | col2 | col3 | col4
some_value11 | | value13 | 
| value22 | | value24 
Some long strange explanation starts here.
*/

If it still does not clear I'll make a screenshot.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 07 2004 :  12:04:44 PM  Show Profile
*experiments*
i did a simple copy and paste of your example, so it ended up with all spaces, and no tabs.

using my normal windows theme and tooltip font i got:


i had to switch windows themes to change tooltip font, which explains the different colours.


it looks like VAX is doing this deliberately. i have raised a query to see if this is the case.

case=200

under some conditions this is probably quite helpful, since it gives you smaller tooltips.

zen is the art of being at one with the two'ness

Edited by - WannabeeDeveloper on Aug 07 2004 12:39:24 PM
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Aug 07 2004 :  1:39:20 PM  Show Profile
My guess is that VA is using HTML to render the tooltip windows. HTML programmers will recall that HTML compresses whitespace. This is likely the cause of the problem that you are seeing.

Joe Pizzi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000