Author: Stefan WuebbeStefan Wuebbe
Date: Dec 26, 2008 02:55
> Some assistance over re-use of form created by wizard. [...]
> When clicking on the Add or Edit buttons, the text boxes will be in readonly=.f. mode
> but the combo boxes will have no effect.
The Form Wizard's "buttonset" class has a property called "UserMode"
or similar - try setting it = .T.
> explicitly set the comboboxes' readonly=.f. and use a command dodefault so that the Add
> or Edit buttons will continue to process the rest. However it turned out that doing so
> changed its behaviour (when clicking on Save, it didn't save anything). I created a
> breakpoint at the comboboxes' readonly line, and found that the form actually is not in
> editmode anymore. Has anyone made such a slight modification to 'wizard form' and work
> OK?
Sounds as if you a) want to set combo.Enabled instead of .ReadOnly.
And b) as if you have a sequence problem because in the Form Wizard's
code logic EditMode is Not EditMode before and after the DoDefault()
However, it's probably easier not to write code in the "buttonset" methods
directly in your scenario - in yourCombos.Refresh() just do a:
This.Enabled = Thisform.buttonset.EditMode
hth
-Stefan
"Hii Sing Chung" hotmail.com> schrieb im Newsbeitrag
news:02FF8083-2FFB-471D-84A3-6A37C297C17E@microsoft.com...
> Some assistance over re-use of form created by wizard. What I did was I created...
|