John Labenski <jlaben...@gmail.com> wrote:
(04/05/2009 22:15)

>On Thu, Apr 30, 2009 at 9:55 AM, lostgallifreyan
><lostgallifre...@gmail.com> wrote:
>> Any advice about this one?
>
>Sorry, no. I have only used the wxWindow function SetToolTip("Some string tip")
>

Ok. It does work the other way too, your suggestion works, see below...

>> I'm not sure that there is a way to attach a preconstructed tootltip to a 
>> window. I couldn't find one. Setting XX:Enable(true) (or false) and 
>> XX:SetDelay(5) failed, with some confusion about what arguments were passed.
>
>I assume that you would call the wxWindow function
>SetToolTip(wxToolTip* tip) and that function would attach the tip to
>the window so that wxToolTip::GetWindow() would work.
>

Thanks, that works fine. I didn't realise the docs were telling me that 
anything other than an explicit string could work. I've not tried the enable 
and delay yet, not important to me right now..

The other problem I described still prevails though. I changed my code to add 
what you just advised:

In Main() I add this:

  TT=wx.wxToolTip(" \n")  PANEL:SetToolTip(TT)

Then I edited the called OnMotion() proc as follows:

function OnMotion(E)
  if (math.abs(E:GetX()-200)<5 and math.abs(E:GetY()-150)<5) then
    TT:SetTip("")
  else
    TT:SetTip("X = "..E:GetX().."\nY = "..E:GetY())
  end
end

Again, without that curious multiline string in the initial assignment, I'd get 
strange renderings in the tooltips later if I tried to makle them multiline. I 
don't know if this is a wxWifgets or wxLua bug, or whether it just implies that 
explicit mention should be made in the docs that a multiline string should be 
established at first base if there is any subsequent multiline string to be 
shown.


>I don't have a problem with GMail, I was however away from my computer
>for the weekend so I couldn't respond.
>

No problem, I thought of that, (I think may day bank holidays are not just a UK 
thing.. Also, it's working now. I think Gmail jammed earlier. They say they 
store 3 GB or something crazy, but here was a lot less than 10 MB of messages 
in there and it still jammed. I stored them locally then deleted most of them. 
So far it seems to have worked.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to