Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating automatically shadowed text
Message
De
24/08/1998 12:40:57
 
 
À
24/08/1998 09:10:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00129287
Message ID:
00129359
Vues:
36
Paul, how are you linking your captions to the table?

You probably should consider the INTL Toolkit -- information at www.stevenblack.com

To answer your question, to get an automatic shadow, you might try this in the object's INIT

LOCAL cNewName, oShadow
cNewName= This.Name+"Shadow"
THIS.PARENT.AddObject( cNewName, THIS.Class)
oShadow= THIS.Parent.&cNewName
oShadow.Top= THIS.Top+ 3 && 3 pixel offset
oShadow.Left= THIS.Left+ 3 && 3 pixel offset
oShadow.ForeColor= 0 && black
oShadow.Caption= THIS.Caption
oShadow.zOrder= 1
oShadow.Visible= .T.




>I have a method that makes my forms multi-linguale by keeping
>captions information into a table.
>
>My problem is that since we are shadowing the text objects for a
>nice visual effect, this doubles the number of captions objects in
>our database.
>
>I am looking for a way to create a new type of text object that would
>automatically shadow my text but that will have a single Caption
>property.
>
>I am still new to VFP and classes (I am trying to recycle my way of thinking from good old 2.6) and need some help.
>
>Thanks a lot gang!
>
>P.Charbonneau
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform