3181
Mach4 General Discussion / Re: Un-Supported wxNumberEntryDialog
« on: January 26, 2019, 02:03:07 PM »
Hi guys,
have taken your advice and reinstalled wxFormBuilder and been experimenting with it.
I have for experimentation purposes made a grid of data values within a frame. The Lua code all looks pretty straight
forward. It includes a Create function, I have excerpted it below.
I have copied and pasted the code into a macro but when I run the macro the expected data input frame doesn't show up.
I suspect (hope) its something basic that I'm overlooking.
I have been trying to assign a value to a local variable by using the GetCellValue function. One potential problem I see
is that when I use Zero Brane to write the line of code GetCellValue is not supported as an auto-complete item.
Is indeed GetCellValue supported by wxLua?
Craig
have taken your advice and reinstalled wxFormBuilder and been experimenting with it.
I have for experimentation purposes made a grid of data values within a frame. The Lua code all looks pretty straight
forward. It includes a Create function, I have excerpted it below.
Code: [Select]
-- Grid
UI.m_grid1:CreateGrid( 8, 1 )
UI.m_grid1:EnableEditing( True )
UI.m_grid1:EnableGridLines( True )
UI.m_grid1:EnableDragGridSize( False )
UI.m_grid1:SetMargins( 0, 0 )
I have copied and pasted the code into a macro but when I run the macro the expected data input frame doesn't show up.
I suspect (hope) its something basic that I'm overlooking.
I have been trying to assign a value to a local variable by using the GetCellValue function. One potential problem I see
is that when I use Zero Brane to write the line of code GetCellValue is not supported as an auto-complete item.
Is indeed GetCellValue supported by wxLua?
Craig
Code: [Select]
local jewelWidth=UI.m_grid1:GetCellValue(1,1)