FG Spreadshirt Swag
  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253

    Field look (readonly, editable, focused)

    I would like to make a strinfield show in 3 different ways: readonly, editable, focused.
    I saw that I can define the frame that will be used by default. Also inside the stateframe tag I can define the look for when the field has focus.

    How can I differentiate the default look for protected or editable field?

    PS I need the readonly look to be framed, so I can't use hidereadonly.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    There is no "readonly" frame; so you would have to set up your own script to modify the frame when you are setting to readonly vs. editable. The "keyeditframe" already exists for when a field has focus.

    In the built-in rulesets, the "fielddark" frame is generally used to denote editable fields; while the "fieldlight" frame is used to denote non-editable, informational fields. Also, the templates with the "column_" prefix are used in the built-in rulesets for most standard records, and those have a script with hide/show frame when record locked/unlocked.

    Regards,
    JPG

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    Awesome, ty
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

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
  •  
STAR TREK 2d20

Log in

Log in