Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating automatically shadowed text
Message
From
24/08/1998 12:40:57
 
 
To
24/08/1998 09:10:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00129287
Message ID:
00129359
Views:
40
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform