I added 3 APIs to manage the dynamic management of the controls of a form
1)createControl ('ClassName', 'ParentPath', 'ControlName', left, top, width, height)
create a control in the named parent ('ParentPath')
if 'ParentPath' = '' it will be created directly in the form
2)deleteControl ('ControlName')
Remove the 'ControlName' control
3)getControls ('window', [option])
return the list of controls
option is optional, 'text' by default
- if option = 'text' returns the names of the controls separated by CRLF
- if option = 'table' returns the names of the controls in an LUA table
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, that was fast. When do you think the new APIs will be available?Sent from my Sprint Samsung Galaxy S10e.
-------- Original message --------From: surfvite surfvite@users.sourceforge.net Date: 8/26/20 9:13 AM (GMT-06:00) To: "[nsbase:forum]" howto@forum.nsbase.p.re.sourceforge.net Subject: [nsbase:forum] Form Objects I added 3 APIs to manage the dynamic management of the controls of a form
1)createControl ('ClassName', 'ParentPath', 'ControlName', left, top, width, height)
create a control in the named parent ('ParentPath')
if 'ParentPath' = '' it will be created directly in the form
2)deleteControl ('ControlName')
Remove the 'ControlName' control
3)getControls ('window', [option])
return the list of controls
option is optional, 'text' by default
- if option = 'text' returns the names of the controls separated by CRLF
- if option = 'table' returns the names of the controls in an LUA table
Is there a way to create an object, such as a shape or a text field on an NSBase form from within the Lua script?
No not to date, I am looking at the feasibility of implementing this API
I added 3 APIs to manage the dynamic management of the controls of a form
1)createControl ('ClassName', 'ParentPath', 'ControlName', left, top, width, height)
create a control in the named parent ('ParentPath')
if 'ParentPath' = '' it will be created directly in the form
2)deleteControl ('ControlName')
Remove the 'ControlName' control
3)getControls ('window', [option])
return the list of controls
option is optional, 'text' by default
- if option = 'text' returns the names of the controls separated by CRLF
- if option = 'table' returns the names of the controls in an LUA table
Thank you, that was fast. When do you think the new APIs will be available?Sent from my Sprint Samsung Galaxy S10e.
-------- Original message --------From: surfvite surfvite@users.sourceforge.net Date: 8/26/20 9:13 AM (GMT-06:00) To: "[nsbase:forum]" howto@forum.nsbase.p.re.sourceforge.net Subject: [nsbase:forum] Form Objects I added 3 APIs to manage the dynamic management of the controls of a form
1)createControl ('ClassName', 'ParentPath', 'ControlName', left, top, width, height)
create a control in the named parent ('ParentPath')
if 'ParentPath' = '' it will be created directly in the form
2)deleteControl ('ControlName')
Remove the 'ControlName' control
3)getControls ('window', [option])
return the list of controls
option is optional, 'text' by default
- if option = 'text' returns the names of the controls separated by CRLF
- if option = 'table' returns the names of the controls in an LUA table
Form Objects
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nsbase/forum/howto/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
It is implemented in V1.7.2, I publish now