Good evening;
Dear all, I uploaded a version of Designer to GIT called Beta_DesignerFull; this version contains a series of corrections, but the big change is the compaction of the code generated by the wizard; some functions were created that synthesized the repetitions, making the final code cleaner;
The generic function PesquisaCRUD now controls the autoadjust input when marked as ON; it turns off and on again when exiting;
The cancellation return was adjusted, returning to the last valid SQL;
The buttons are now more intelligent regarding user activity;
Most of these changes were made at the request of my friend Pierpaolo from Italy, thank you in advance for your collaboration.
Functions created:
_wizard_DisableGeralControls(lFlag,aSalte)
Enables or disables all editable controls on the form, allows you to receive a list of exceptions.
_wizard_ChangeControls(lFlag,cForm)
Creates a text with the controls that had their values modified; can be used to LOG and/or abort a cancellation;
_wizard_ResetGeralControls()
Clears all editable controls;
_wizard_LiberaToolbControls(oQuery)
Enables and disables the toolbar buttons according to the current scenario;
_wizard_InitToolbarCargo(cForm,bToolb)
Initializes a control Hash;
From these examples, you could still automate the assignments of field=>control and control => field; exactly as you would do in the clipper; however, I left it out since it could cause confusion for a beginner user when faced with an error with variations with checkbox/radiobutton/grad among others where the values need to be transformed before being saved or retrieved;
If you want and can test it, the result will be something of higher quality in the end.
At;
Ivanil