Author Topic: Code templates in Completion List box >> non-printable char  (Read 3047 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #15 on: March 11, 2009, 08:55:43 am »
631 - the view of tool tip is better now.


\r will align the whole line,
not only the text part following the \r
"vbYes\r6 Yes"  will be completely on the right

TABs and \r is not taken into account. (see pic)

Properly with space align text is not well displayed.

Can you do something?
Can you add \t ?
vbYes\t6 Yes

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Code templates in Completion List box >> non-printable char
« Reply #16 on: March 11, 2009, 11:57:29 am »
Hello Stefan,

1) \t is not supported
2) \l \c \r are line based. So in you case result is like designed.

Tooltip is used internally, and for me formatting was enough. Parsing and drawing is self made so extension would be problematic.
I would try to change engine or extend existign rules, but do not know when...

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #17 on: March 11, 2009, 12:14:24 pm »
OK, so i will see what i can do with what i have, thx

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #18 on: March 26, 2009, 01:48:08 pm »
Can you told your tool tip engine
to show the tip above or below the cursor-position,
related where the cursor is on screen?

632

Hi Alex, an another tool tip issue, this time on left/right placement. Please see picture for description...
« Last Edit: March 26, 2009, 01:54:24 pm by Stefan »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Code templates in Completion List box >> non-printable char
« Reply #19 on: March 26, 2009, 05:01:24 pm »
Hi Stefan,

Yes, I can reproduce it. Would be fixed next beta.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #20 on: March 27, 2009, 12:35:51 pm »
637
well, ( i guess because of my tool tips are this long ), ...
the displaying is not always in a satisfactory manner,... both for C+S+Sp and code hints,
and depending at what place in document i am while calling this function,...
but it's good enough.

(i know you say this tool tips are not designed for such issues, but i'll try)

Thank you Alex :D :thumpsup:

.
« Last Edit: March 27, 2009, 12:43:43 pm by Stefan »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Code templates in Completion List box >> non-printable char
« Reply #21 on: March 27, 2009, 02:20:24 pm »
Hi Stefan,

of course if you would have a tooltip that is longer then screen size you would always get a problem. Why not to use \n inside ? ;)

Best regards,
Alex

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #22 on: March 27, 2009, 02:52:03 pm »
of course if you would have a tooltip that is longer then screen size you would always get a problem.
I think i have assumed that there will be an "language build-in" algorithm to always proper display an tool tip, no matter from where i call it.
 
Quote
Why not to use \n inside ? ;)

 ::) of course, yes  :o
will do :D

THX

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Code templates in Completion List box >> non-printable char
« Reply #23 on: March 27, 2009, 04:05:41 pm »
Quote
I think i have assumed that there will be an "language build-in" algorithm to always proper display an tool tip, no matter from where i call it.
I am trying that, but what to do in case it does not fit to screen?

Of course I can also think about auto - wrapping of the text in tooltip...

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #24 on: March 27, 2009, 04:36:15 pm »
no-no-no,   it's O.K. like it is.   Let me first try to use \n 's

Because i currently updating basic/vbs syntax with "descr" 's i will see the effect this weekend.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Code templates in Completion List box >> non-printable char
« Reply #25 on: March 30, 2009, 02:22:56 pm »
If i use TABs in tool tip (descr=" ") i get this rectangles too (see pic).  Just FYI, i will replace tabs by spaces.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Code templates in Completion List box >> non-printable char
« Reply #26 on: March 30, 2009, 04:30:08 pm »
Hi Stefan,

I would tell that expanding of the tabs in tooltips is one more limitation :/
It is not implemented yet. I have placed this into todo, and would implement next time when would check also layoting properties for tooltip.

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
973 Views
Last post March 04, 2009, 10:52:43 pm
by Stefan
1 Replies
442 Views
Last post February 04, 2009, 12:30:32 pm
by alex
5 Replies
751 Views
Last post February 15, 2009, 04:28:32 pm
by alex
6 Replies
902 Views
Last post November 12, 2009, 03:37:48 pm
by Stefan
1 Replies
304 Views
Last post June 19, 2010, 08:38:17 pm
by alex