From: John L. <jla...@gm...> - 2009-05-04 21:15:21
|
On Thu, Apr 30, 2009 at 9:55 AM, lostgallifreyan <los...@gm...> wrote: > Any advice about this one? Sorry, no. I have only used the wxWindow function SetToolTip("Some string tip") > First, I tried making a tooltip as specified on the wx.chm page for wxToolTip as follows, and played with that a bit... > > function Main() > local XX=wx.wxToolTip("xcv") > XX:SetTip("Zoodle\nWurdle") > print(XX:GetTip()) --prints "Zoodle" and on new line, "Wurdle" > print(XX:GetWindow()) --prints 'nil'. > end > > Main() > > 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. > PS. John, I posted that earlier reply to your reply via Gmane because I was still not getting any emails from the list, Gmane (and similar archives sites) is my only way to see, or respond, to the list, and I think Gmail was the main culprit judging by losses and delays of other stuff. I'm not sure if you saw my response. (It basically said thanks for the for loop to traverse a table of user data objects (very useful test flag I since added to my collection), and ended with a longish query about Windows' apparent delayed clearup of large image loads, with a query about whether wxLua, like Paint Shop, can be set to somehow allow any number of such loads without the image failing to render after just one or two attempts). > I don't have a problem with GMail, I was however away from my computer for the weekend so I couldn't respond. Regards, John |