5E Character Create Playlist
  1. #1
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007

    Windowlists and sub-window size *baffled*

    Hi

    I'm trying to work out how many entries can fit into a list when it is initialised.

    The code sits in the onInit handler for the windowlist control, which should be invoked after the children are initialised.

    When I iterate over the child windows and try to add up their heights, they return a zero value (zero height).

    If anyone can help, I think the questions are:

    1. Is there any way to determine child windows heights during onInit?
    2. Is ther any other event I can use, which is called after the height has been established?

    Cheers

    Stuart

  2. #2
    Maybe (haven't tested it) try putting the windowlist into a subwindow and the sizing code into the onInstanceCreated event of the subwindow. I think that gets called after the child window (and all internal components) have been created...
    Last edited by Toadwart; March 31st, 2008 at 00:44.
    Work Less, Game More!

  3. #3
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    Thanks Toadwart, I'll give it a try!

    Stuart

  4. #4

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    Did it work?

  5. #5
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    Nope, I ended up hard-coding the size of the child windows

    Stuart

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
Starfinder Playlist

Log in

Log in