Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
?? chr(7) and Command button pictures
Message
De
18/03/1999 14:04:31
 
 
À
18/03/1999 13:38:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00198543
Message ID:
00199386
Vues:
29
>>>>Whenever I execute a ?? chr(7) my pictures in my command buttons jump when the button is down. Is there a fix for this.
>>>>
>>>>TIA
>>>
>>>To re-create the problem just create a simple form with a command button. Select any bmp in the command button picture and in the command button click event put ?? chr(7). Now run the form and after the first click on the button click it again and notice that the picture moves up while it is selected. It seems that the chr(7) is printing a blank line below the bmp.
>>>
>>>What is the problem,
>>>
>>>TIA
>>
>>If you blank the .Caption property, it won't do this.
>
>
>What if you want the caption? I guess I'm out of luck
>
>Thanks
>
>Claude

Looks a little funny maybe, but:

lcCaption = THIS.Caption
THIS.Caption = ""
??CHR(7)
THIS.Caption = lcCaption

solves the problem.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform