1. Tooltips

I got tooltips working.  Turned out all I had to do was add
WS_EX_TOPMOST--the tooltips were being displayed behind the window. :(

But, they work now, and it's a lot simpler than before.  The interface is
actually the same, with one addition:  setFont() can be used to change the
tooltip font.  Just make sure that you've created at least one tooltip prior
to changing the font, since win32lib won't create the tooltip control until
you do (one tooltip control can handle any number of tooltips).  Just use
tooltipControl as the control's id when calling setFont().

Just don't try to set a tip for anything that's not an actual control, like
rebarbands or tabitems, because it won't work.

Oh, and I ripped out all the emulation code. :)

As always, you can get it at:


Matt Lewis

PS Lee, I fixed the MonthCalendar demo...

new topic     » topic index » view message » categorize

2. Re: Tooltips

Matthew Lewis wrote:


> I got tooltips working.  Turned out all I had to do was add
> WS_EX_TOPMOST--the tooltips were being displayed
> behind the window. :(

Wow - glad I didn't have to track _that_ one down. Your turn around time in
getting code out is frighteningly fast!

I got a chance to play with the demos - very slick! As you noted, they need
a bit of polish. For example, you might want to take a look at automatically
resizing the rebar when the window resizes (like the toolbar and statusbar
do). It would also be nice getClientRect (I *think* that's the name) took
into account the rebar when it calculated it's size.

Thanks again for all your hard work!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: Tooltips

Back in v. 0.45 (I think), scrollbars and trackbars didn't function
correctly when using tooltips. Has this been fixed now ?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: Tooltips

--- mic _ <stabmaster_ at HOTMAIL.COM> wrote:
> Back in v. 0.45 (I think), scrollbars and trackbars didn't function
> correctly when using tooltips. Has this been fixed now ?

I haven't tried it, but there shouldn't be a problem, since this was most
likely a problem in the emulation code (tooltips were painted 'manually' by
win32lib).

Matt

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

new topic     » goto parent     » topic index » view message » categorize

5. Re: Tooltips

> From: David Cuny

> Wow - glad I didn't have to track _that_ one down. Your turn
> around time in
> getting code out is frighteningly fast!

Thanks, although it was a total accident (as a lot of debugging is, I
suppose) that I found it at all.  I happened to have a control near the edge
of the window, and I saw part of the tooltip peeking out from behind the
window...

> I got a chance to play with the demos - very slick! As you
> noted, they need
> a bit of polish. For example, you might want to take a look
> at automatically
> resizing the rebar when the window resizes (like the toolbar
> and statusbar
> do). It would also be nice getClientRect (I *think* that's
> the name) took
> into account the rebar when it calculated it's size.
>

This was pretty easy. :)  I just stored the id of the rebar in the
window_toolbar[] slot (since that's really what a rebar is), and the rest
seems to have taken care of itself...

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Tooltips

Someone wrot me and asked how do I set the multi-column on a tooltip
well, here it is.....(Derek you might want to add this)

Find:
global procedure setHintEx(integer id,sequence text,atom exflags)

near the end of the procedure you should see this >

VOID=sendMessage(tooltipControl,lTTmsg,0,ti)

Put the next line above the one I just typed above "Like this"

VOID=sendMessage(tooltipControl, TTM_SETMAXTIPWIDTH, 0, 100)
VOID=sendMessage(tooltipControl,lTTmsg,0,ti)

Note:
You will need to set the with where I have 100 on the end of the
message to length you wish to wrap the line...'

Alternatively you could do this:

global procedure setHintEx(integer id,sequence text,atom exflags, integer len)

VOID=sendMessage(tooltipControl, TTM_SETMAXTIPWIDTH, 0, len)

and in your program do this:

setHint( id, "text", 0, 100 )

and this should work fine.


Euman
euman at bellsouth.net

new topic     » goto parent     » topic index » view message » categorize

7. Re: Tooltips

Another Correction,  Darn Typo's

 Someone wrote me and asked how do I set the multi-column on a tooltip
 well, here it is.....(Derek you might want to add this)
 
 Find:
global procedure setHintEx(integer id,sequence text,atom exflags)
 
 near the end of the procedure you should see this 
 
 VOID=sendMessage(tooltipControl,lTTmsg,0,ti)
 
 Put the next line above the one I just typed above "Like this"
 
 VOID=sendMessage(tooltipControl, TTM_SETMAXTIPWIDTH, 0, 100)
 VOID=sendMessage(tooltipControl,lTTmsg,0,ti)

I tried to set this up in lTTmsg but couldnt figure out how to connect the
length on the string so that it would be automatic.
 
 Note:
 You will need to set the with where I have 100 on the end of the
 message to length you wish to wrap the line...'
 
 Alternatively you could do this:
 
 global procedure setHintEx(integer id,sequence text,atom exflags, integer len)
 
 VOID=sendMessage(tooltipControl, TTM_SETMAXTIPWIDTH, 0, len)
 
 and in your program do this:

>>>>> (Here's the Change)
 setHintEx( id, "text", 0, 100 )
 
 and this should work fine.
 
 
 Euman
 euman at bellsouth.net

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu