Hello Guest it is March 29, 2024, 01:23:05 AM

Author Topic: wxLua functions  (Read 5253 times)

0 Members and 1 Guest are viewing this topic.

Re: wxLua functions
« Reply #10 on: April 01, 2017, 05:12:11 PM »
Okay,
Simple enough.  Since I've never done this, I'm assuming that, for example a button, the code under MyButton1 (or whatever) is where I would add the functionality for that button?
Chad Byrd

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: wxLua functions
« Reply #11 on: April 01, 2017, 05:28:39 PM »
In formbuilder highlight your button and then go into the events tab top right and enter something in say mouse left up and this will put something on the screen like

Code: [Select]
YourButtonName:Connect( wx.wxEVT_LEFT_DOWN, function(event)
--implements your function here

event:Skip()
end )

DazTheGas
New For 2022 - Instagram: dazthegas