Menu

Form Objects

How to
Don Newton
2020-08-26
2020-08-26
  • Don Newton

    Don Newton - 2020-08-26

    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?

     
  • neuts-jl

    neuts-jl - 2020-08-26

    No not to date, I am looking at the feasibility of implementing this API

     
  • neuts-jl

    neuts-jl - 2020-08-26

    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

     
    • Don Newton

      Don Newton - 2020-08-26

      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/

       
  • neuts-jl

    neuts-jl - 2020-08-26

    It is implemented in V1.7.2, I publish now

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.