RE: Tool tips & win32lib
- Posted by Tony Steward <tony at locksdownunder.com> Mar 26, 2002
- 341 views
Hi Jordan, Heres an old post by euman which may help cut... 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 end cut.... jordah ferguson wrote: > > > --To: any one concerned <euforum at topica.com> > --Subject: Tool tips & win32lib > --Date: Mon, 25 March, 2002. > --From: Jordah Ferguson <jorfergie03 at yahoo.com> > --Priority: 3 > --Saved by: Jordah Ferguson (Acc. Name: jordah ferguson ) > > > Hi all, > > I have a couple of questions i would like to ask about the tooltip > control > > 1) Can toottips be multiline? Cause i have a long message i would like > to present when a certain listview > item is clicked. When i make the tooltip text long, it is like > sending a long unwrapped text to the printer! > 2)Can the background and foreground colour of a tooltip be changed? I > kinda want to make a special good > looking tooltip for the secial listview items that are being clicked. > 3)Can tooltips be created with extra styles such as having a 3D border? > 4)Can an Icon control or bitmap control be added to a tooltip? > > That wraps up the questions i had about win32lib tooltips.. > > Thanx in advance > Jordah Ferguson > jorfergie03 at yahoo.com > > --Processed and saved using: Cirrus Mail ver 0.2a > >