Versions des environnements
>Dear Sir,
>
>I refer to your following paragraph
>
>"You have to create both the .WidthRatio and the .HeightRatio properties. Open the form, and give the command "Form | New Property". Or select "Form | Edit Property/Method", to see what properties and methods are already defined"
>
>So, I have defeined both properties WidthRatio and HeightRatio to form. But unfortunately it does not still
>work.
>
>I want when I resize form, in horizontal position, with mouse the objects of form must change there width.
>
>Now what is problem? please review the form and give me some more advices
>
>Thanks in advance
I test the code also, I notice sometime the [toControl] is not an object(show as .F. in the debugger), to overcome the problem, I just add some code to detect when [toControl] is not an object, then just don't run those resize code, see the example below.
LPARAMETERS toControl
LOCAL loPage, loControl, loColumn, lnColumnWidths[1], lnCol
IF TYPE('toControl') # 'O'
RETURN
ENDIF
.
.
.
.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement