Results 1 to 3 of 3

Thread: Finding Specific Class of UI Object

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,949

    Finding Specific Class of UI Object

    This is interesting.

    If I have a Section that is a Grid Section named "grdMyGridSection" and do

    Code:
    lo = Lianjg.get("grdMyGridSection")
    ? lo.class
    I get: Section.

    Which is technically correct, but doesn't give me the correct set of attributes (and yes, I'm working on a UI for efficient attribute setting for the eidetic-memory-impaired, c'est moi).

    So, other than heuristics (is the first child a column, etc.), is there a way to know what specific type of Section I have?

    thanks,

    Hank

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    Quote Originally Posted by HankFay View Post
    This is interesting.

    If I have a Section that is a Grid Section named "grdMyGridSection" and do

    Code:
    lo = Lianjg.get("grdMyGridSection")
    ? lo.class
    I get: Section.

    Which is technically correct, but doesn't give me the correct set of attributes (and yes, I'm working on a UI for efficient attribute setting for the eidetic-memory-impaired, c'est moi).

    So, other than heuristics (is the first child a column, etc.), is there a way to know what specific type of Section I have?

    thanks,

    Hank
    lo.type
    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

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,949
    Bravo!

    thanks,

    Hank

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