* This is a workaround bug * Once the first call to this method, when LockScreen=.T., * the value returned by This.User.Width will be the same * as before we changed the caption IF This.lFirst This.lFirst=.F. LOCAL lcFont,lnFontSize lcFont=ThisForm.FontName lnFontSize=ThisForm.FontSize ThisForm.FontName=This.User.FontName ThisForm.FontSize=This.User.FontSize This.User.Caption=ALLTRIM(tcPrenom)+' '+ALLTRIM(tcNom) This.User.Width=ThisForm.TextWidth(This.User.Caption) ThisForm.FontName=lcFont ThisForm.FontSize=lnFontSize ENDIF