Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create builders for visual classes
Message
From
28/07/2018 17:03:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/07/2018 16:58:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01661362
Message ID:
01661371
Views:
78
Likes (2)
>Hi. We're developing an apllication, for which I developed several visual classes, like special comboboxes, buttons, etc. We're a group of three that are involved in programming. But, all this time, the other members of the group constantly are asking me how to fill the user-properties in order for an object to work correctly when executing.
>
>So, I think that I'd better develop builders for those classes so that it's easy for them to visually create objects from those classes using those builders. Anyone can help me know what is the best/common way to create builders?

Here's my builder:
* curform.prg
ASELOBJ(aa,1)
RETURN aa[1]
I actually have an intellisense macro which expands into
ox=curform()
So I only need to have the object selected in the class editor and then type ox{space} in the command window. Then I play with properties of ox any way I like, including things like
ox.writemethod("blabla", _cliptext, .t.)
when I have the code on the clipboard, of course. Sometimes instead of that I just use "* this makes coffee" as the 2nd parameter. I like this because then the method is not empty and comes on top of the methods combo in the code editor.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform