Re: [wxlua-users] How to accept drag and drop files on all platforms?

2013-09-08 Thread John Labenski
On Mon, Aug 26, 2013 at 12:14 AM, Paul K paulclin...@yahoo.com wrote:

 Hi John,

  Sorry yes, I looked into this, but it does require a few more virtual
 functions in
  wxFileDropTarget. I believe that it should be pretty easy.

 Are you saying that it would be pretty easy for you to add them or
 that it will be pretty easy after you add them ;). In any case, I'd


Both, but it is always a matter of time for me. I have added
wxTextDropTarget and wxFileDropTarget, there is a demo in editor.wx.lua.
Drag some files onto the notebook tabs to open them. Note that you must
create a new wxFile/TextDropTarget for every window you call
SetDropTarget() for, i.e. you can't reuse them.

Regards,
   John
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] How to call OnLinkClicked for wxLuaHtmlWindow?

2013-09-08 Thread John Labenski
On Thu, Aug 29, 2013 at 9:32 PM, Paul K paulclin...@yahoo.com wrote:

 Hi John,

 I've been trying to add some reaction based on link clicked in
 wxLuaHtmlWindow and can't figure out how to set it.

 This is what I've tried:

   wx.wxLuaHtmlWindow.OnLinkClicked = function(self, link)
 -- do something
   end

 but don't see any reaction (I tried to output something and to call
 error).


That should be right. I have never used this function so I don't know what
triggers it. In any case I think you should just get the wxHtmlLinkEvent
and handle it there, I believe that this also applies for wx 2.8.x too.

http://docs.wxwidgets.org/trunk/classwx_html_window.html#a519281dbfbddc163b5e73fd6a10cf90a



 What is the right way to set it? Also, I see the code that resets some
 internal flag after OnLickClicked is called:

 m_wxlState.SetCallBaseClassFunction(false); // clear flag always

 Does this mean I need to re-set it every time the link is clicked? Thank
 you.


No, this is just an internal wxLua flag for when the Lua code wants to call
the base class function, if you call obj:_OnLinkClicked() for example.

Regards,
John
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


[wxlua-users] Can't call some wxKeyboardState methods on wxMouseEvent, but should

2013-09-08 Thread Paul K
Hi John,

I'm trying to call wx.wxMouseEvent():GetModifiers(), but get wxLua:
Unable to call an unknown method 'GetModifiers' on a 'wxMouseEvent'
type.

wxMouseEvent is inherited from wxKeyboardState (among other things),
so it should definitely work. In fact, I can call some methods (like
ControlDown() and CmdDown()) just fine, but none of the modifier
methods (GetModifiers(), HasModifiers(), HasAnyModifiers(), and so on)
work (http://docs.wxwidgets.org/trunk/classwx_keyboard_state.html).

I checked wxbind and indeed GetModifiers only shows up for wxKeyEvent
and nothing else. Can you please add it to wxMouseEvent as well? Thank
you.

Paul.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391iu=/4140/ostg.clktrk
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users