Results 1 to 2 of 2

Thread: Get custom object child information

  1. #1

    Get custom object child information

    I feel like I should know this, but just cant recall.
    How do I traverse the child objects of a custom container?

    For example, I create a container and add an image
    Code:
    Myform.addobject('container1','container')
    container1.autosize = 1
    container1.layout = 1
    container1.addobject('image1','image')
    image1.Maintainaspectratio = .t.
    How would I traverse the object container1 to get the child (image1) so that I can get information about the layout of the child. Because of the responsive UI, as the user resizes the screen, all that information changes, and I need to capture that information.

    Thanks

    Herb

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    The image object can be referenced by its name image1

    Additionally, a container has a property controlCount and a method controls( nIndex )
    https://www.lianja.com/doc/index.php/Container
    Last edited by barrymavin; 2021-11-13 at 06:11.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us