Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stupid label question
Message
De
11/11/1998 21:02:06
 
 
À
10/11/1998 22:23:48
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00155701
Message ID:
00156815
Vues:
64
I tested the code in that KBQ and it generates a GPF. The problem goes like that:

There's no need for user defined classes or any complicated situation like the one in the example. The GPF is generated if Visible is set to .t. (even if it was .t. before) for a label that has both AutoSize and WordWrap set to .t.

So, if you never change the Visible property of such label... everything is safe.

Am I right?

Vlad

> PUBLIC x
> x=CREATEOBJECT("Form")
> x.AddObject("mylabel","test")
> x.Visible=.t.
>
> DEFINE CLASS test AS label
> AutoSize = .T.
> WordWrap = .T.
>
>
> PROCEDURE Init
> LOCAL lcTest,lcname
> lcname=THIS.NAME+"A" && Get a unique name
> THIS.PARENT.ADDOBJECT(lcname,'label')
> lcTest=lcname
>
> WITH THIS.PARENT.&lcTest
> .AUTOSIZE=THIS.AUTOSIZE
> .WORDWRAP=THIS.WORDWRAP && Comment this line for success.
> .VISIBLE=.T.
> ENDWITH
> ENDPROC
> ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform