-
October 4th, 2020, 07:20 #1
Stringfield does not work like previous version.
When putting down a stringfield in a ruleset based on CoreRPG you can write in it if you click it but it does not use a default value if one is provided.
This does not show up.
Code:<stringfield name="Label1"> <bounds>52,51,27,20</bounds> <center /> <static text="Show My Label" /> <font>sheetlabel</font> </stringfield>
Code:<stringcontrol name="Label1"> <bounds>52,51,27,20</bounds> <center /> <static textres="charsheet_main_Label1_LabelCaption" /> <font>sheetlabel</font> </stringcontrol>
-
October 4th, 2020, 07:40 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,426
That should work looking at the code. Do you have a simple extension that exhibits this issue I can test?
Thanks,
JPG
-
October 4th, 2020, 08:05 #3
It has certainly been confusing. Especialy updating some of my older rulesets. (Turns out I use a LOT of Stringfields and then get mostly blank charactersheets)
https://www.dropbox.com/s/loj4eqiicc8jvgt/WH4e.ext?dl=0 <--- Mini Extension to show of missbehaviour.
- Obe
-
October 4th, 2020, 18:10 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,426
Ah, I see what is happening.
In FGU, I see that I had updated the static tag to not be used for fields that are database-linked. This is because these fields would be overwritten every time the window is opened in the database, instead of storing any data changes between sessions. It creates a problematic situation in usage, so I disabled "static" for database-linked stringfields to keep this from being done inadvertently. Static will only work for stringcontrols right now.
Changing any stringfield using a static tag to stringcontrol will actually speed up your window creation times, since they no longer need to create and manage database links.
Regards,
JPG
-
October 4th, 2020, 19:27 #5
Okay, good practice to do it this way. Some extra work finding all the static ones but I guess that notepadd++ should fix that for me quick enough.
Will also tell the author of the ruleset wizard since it affects his product.
- Obe
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks