S Startup Active Member Licensed User Longtime User Nov 28, 2019 #1 Is it possible to create a Preferences/Dialog form that displays a field which is read-only?
Erel B4X founder Staff member Licensed User Longtime User Nov 29, 2019 #2 B4XPreferencesDialog? You can add an Explanation item. Upvote 0
S Startup Active Member Licensed User Longtime User Nov 29, 2019 #3 Erel said: B4XPreferencesDialog? You can add an Explanation item. Click to expand... Thanks, Erel, but what I should have asked is can I have a field that displays the read-only value of a variable? Upvote 0
Erel said: B4XPreferencesDialog? You can add an Explanation item. Click to expand... Thanks, Erel, but what I should have asked is can I have a field that displays the read-only value of a variable?
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2019 #4 You can change the explanation item text before you show the dialog. Upvote 0
S Startup Active Member Licensed User Longtime User Dec 1, 2019 #5 Erel said: You can change the explanation item text before you show the dialog. Click to expand... Thanks Erel! I want to change the explanation item text programmatically to reflect the current/latest value of a variable as the App is run. Do I do this by using JSONParser to deconstruct the JSON file (used by the form) and then JSONGenerator to reconstruct the file with the changed explanation item? Or is there a simpler/more direct way to change the explanation item programmatically? Upvote 0
Erel said: You can change the explanation item text before you show the dialog. Click to expand... Thanks Erel! I want to change the explanation item text programmatically to reflect the current/latest value of a variable as the App is run. Do I do this by using JSONParser to deconstruct the JSON file (used by the form) and then JSONGenerator to reconstruct the file with the changed explanation item? Or is there a simpler/more direct way to change the explanation item programmatically?
Erel B4X founder Staff member Licensed User Longtime User Dec 2, 2019 #6 You can change the explanation text with: Code: Copy Pref.SetExplanation("item key", "Explanation here") Upvote 0
You can change the explanation text with: Code: Copy Pref.SetExplanation("item key", "Explanation here")
S Startup Active Member Licensed User Longtime User Dec 3, 2019 #7 Erel said: You can change the explanation text with: Code: Copy Pref.SetExplanation("item key", "Explanation here") Click to expand... Thanks again! But I want the value of the variable to show with the rest of the Dialog display like the other items show without having to press the title key and being taken to another screen to see it. Is this possible? Upvote 0
Erel said: You can change the explanation text with: Code: Copy Pref.SetExplanation("item key", "Explanation here") Click to expand... Thanks again! But I want the value of the variable to show with the rest of the Dialog display like the other items show without having to press the title key and being taken to another screen to see it. Is this possible?
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2019 #8 You can update the explanation item title like this: Code: Copy p.GetPrefItem("item key").Title = "new title" p.CustomListView1.Clear 'show the form Upvote 0
You can update the explanation item title like this: Code: Copy p.GetPrefItem("item key").Title = "new title" p.CustomListView1.Clear 'show the form
S Startup Active Member Licensed User Longtime User Dec 5, 2019 #9 Erel said: You can update the explanation item title like this: Code: Copy p.GetPrefItem("item key").Title = "new title" p.CustomListView1.Clear 'show the form Click to expand... OK. That's good. But if the user happens to touch the title it goes to the explanation screen. Could that, say be disabled, so the dialog stays displayed? Upvote 0
Erel said: You can update the explanation item title like this: Code: Copy p.GetPrefItem("item key").Title = "new title" p.CustomListView1.Clear 'show the form Click to expand... OK. That's good. But if the user happens to touch the title it goes to the explanation screen. Could that, say be disabled, so the dialog stays displayed?
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2019 #10 It cannot be disabled. Upvote 0
S Startup Active Member Licensed User Longtime User Dec 6, 2019 #11 Erel said: It cannot be disabled. Click to expand... OK. Thanks, Erel. Upvote 0