Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Buttons
Message
From
26/08/1998 03:25:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00129666
Message ID:
00129956
Views:
37
>I think some background to my problem might solve the issue. I am busy writing my first application in VFP. I have got a little test application where I do my experimenting on. This was done with the wizard and the command button group was placed on the form by the wizard. To try and learn something I snooped around this test app and found that buttonset1 (command button group) consisted of cmdPrev etc.
>
>I then went on a search for buttonset1 and cmdPrev etc but could not find it and this is where my problem starts. On my application I want the same command button group, but if I create the command button group the buttons do not have any code in them. Where do I find the code for the buttons and how do I add the code to the buttons. I suspect that there must be a way to put buttonset1 on my app in one go without having to reinvent it ie name each button, write the code for it etc.
>
>I hope this clears the confusion that might existed. I apologize for this lenghty detail, but it seems that I am not good at putting my problem short and sweet without creating confusion.
>
>Petrus.
Petrus,
Buttonset1 is a subclass of txtbtns from ..\vfp\wizards\wizstyle.vcx and of course it has code. In class browser open wizstyle.vcx and select txtbtns. You'll see code there.
To directly include it in your own app, while in form designer, open class browser and find txtbtns, drag&drop commandgroup icon next to "Type" onto your form. Remember those buttonset works with buffered tables.
Another way to add it or any other class from same library, in your project manager, in classes add wizstyle.vcx and when you need one of them, open and drag&drop on to your form.
And yet another way, in form designer, form controls, click the "books" icon and select add to add wizstyle.vcx, now all classes are on your form controls toolbar, drag&drop from there.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform