Help using DesktopX Forms

Forms is a new feature introduced in DesktopX 3.1. They are a sort of enhanced input box and are very similar to widget preferences.

You can use forms to prompt an input dialog to the user. Input elements are the same as the widget preference types
End of quote


So does that mean filling the form preferences write to the widget preferences ? Or do I have to map them one by one ?

Example :

Before Prompting :

frm.Preference(Prefname).DefaultValue = Widget.Preference(Prefname).Value

After Prompting and "OK" :

Widget.Preference(Prefname).Value = frm.Preference(Prefname).Value

or is that unneccessary ? An example would be handy...

Also I have the form-code running in a sub.
4,678 views 6 replies
Reply #2 Top
Hi Carl[242] bump.
Reply #3 Top
Do you have a form with the duplicate values of the preferences? If so; why? do you need to have them located two places?
Reply #4 Top
The standard parameter form can only hold a limited ammount of preferences. So I needed a form to hold more. And it is less work than to do a form all by myself and use activex . Further on it skins nicely with the used wb.
Reply #5 Top
Ah. I get you now.

Yes, you have to do it the way you present it in your original post. Get the widget preferences and use them as default values for the form, prompt it, then save the changes back into the widget preferences.
Reply #6 Top
Thank You.