DICE PACKS BUNDLE
  1. #1
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    4,202
    Blog Entries
    4

    What's the trick to 'string_columnh' ??

    I'm trying to get string_columnh to hide empty entries when the window is locked but it doesn't seem to work... am I supposed to set up something special to make it happen?

    Here's an example:
    Code:
    			<label_column name="power_label">
    				<static textres="ref_label_power" />
    			</label_column>
    			<string_columnh name="power" />
    This is one of the simpler ones, I was able to hide them manually, but it seems like the underlying code should hide it automatically. My formatted text fields aren't technically 'empty' so it's a bit trickier. (they seem to want to have
    Code:
    <p></p>
    in them even when they are blank.
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

  2. #2
    string_columnh
    When the lock state changes, you need to call the "update" function for that control. There are several examples in the D&D ruleset.

    Formatted text field hide on empty
    There's also a "ft_columnh" template in the CoreRPG ruleset to use.

    Regards,
    JPG

  3. #3
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    4,202
    Blog Entries
    4
    Thanks for the help! It's working now... I added ...
    Code:
    power.update(bReadOnly);
    ... to the update() function of the script and that resolved it. It's great because it handles my labels and line separators as well.
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

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
  •  
5E Product Walkthrough Playlist

Log in

Log in