Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Arrays
Message
From
25/11/1999 07:15:03
 
 
To
24/11/1999 23:00:26
Francis Basilio
Aptech Computer Education
Pasig, Philippines
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00294811
Message ID:
00295492
Views:
23
>Thanks, Ed I'm going to try that.
>
>But I really want to know how to create control arrays. I always experiment on effects that I can make based on the simplest controls. And not have to create them from another app. And to do that, I need a control array.
>
>Ex, I want to create an effect of shining letters like in the word "SAMPLE".
>I set the ff properties:
>
>forecolor = rgb(255,0,0)
>fontsize = 12
>
>and then on the mouse move event I set up a loop that would change the color letter by letter to yellow or something and increase the size to 13 and then back to 12 , and the color to red as the effect "moves" from "S" to "E". Of course I need a label control array for this. Each letter has to be a separate control.
>

This falls into the "Why bother - if I need this, add an ActiveX Control and not overburden the app and VFP with (IMO) waste of time eye candy that my end-users don't want."

>Another, can I make a vertical label? I wish there was a property for this.
>

Trivial - drop a command button, change the shape, turn on word wrap, fill in the caption - instant vertical button. Same effect with a label - just insert a blank between letters to make sure it wraps properly, especially if using a proportional font. Since you can (and should!) subclass the base label class, you can create a subclass once that does the work of adjusting captions on the fly for you and then simply use that when you need a vertical label.

I'd be more concerned with getting useful work out of the language than visual controls - that's the main argument in favor of VFP, a strong data-centric OOP development environment. If all you are interested in is visual effects, VB's a better environment, since the form behavior folows standard Windows practice - I just think it's an awful environment for what VFP does well. YMMV.

I can always throw a VB front-end on a VFP mid-tier component if I absolutely have an end user requirement that can't be satisfied with VFP's UI tools. Use the right tool for the right job...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform