Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar button names
Message
 
 
To
26/11/1997 18:58:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00062207
Message ID:
00062867
Views:
34
>>Yse this is my question, but to define a toolbar and add the toolbar buttons you have to know the names of those buttons (Cut, Copy, Paste, etc.; sepl is the Separator) I have used the class browser to try creating a custom tool bar, but the usual toolbar buttons are not available to add to the class. The only thing available are the Form Designer toolbar contols. What am I missing?
>
>Just to clarify a little. You can create a toolbar class in 2 ways:
>1. Visually, using the Class Designer. You can add custom buttons and separators using the Form Controls toolbar.
>2. In a prg, using the DEFINE CLASS command. You can also add custom buttons and separators. I see no advantage to do it in a prg, but it's doable.
>
>If you create it using the Class Designer, you will have a VCX file. This VCX can be opened in the Class Browser. The Class Browser has a button (with the "View Class Code" tooltip) that will generate the prg code equivalent to the vcx. This is good if you want to save it as prg (Copy&Paste) or if you want to see what's the equiv. code.
>
>Probably you already know that. :)
>
>About the buttons in the VFP toolbars: I have no idea on how you can use them in your toolbars and I never heard of it. Obviously, this doesn't mean that is not possible. :) In fact, I would like to how to do it if it can be done! :)
>
>In the sample you found: the buttons are custom buttons and their behavior is set by adding code in the Click method. So, they are not the buttons from VFP's toolbar and their names are not something internal to VFP. You can change the names of the buttons in that example and you'll have the same result.
>
>AFAI understood you need to have a toolbar with Edit, Cut and Paste buttons. I think the easiest way is to add 3 buttons to a toolbar and in the Click method to call the SYS(1500) VFP function for the corresponding menu options. Ie: you need to know the internal names of the menu options and not of the toolbar buttons.
>
>See you,
>Vlad

SYS(1500) does what I want functionally. Unfortunately it is not available in VFP3. If I create a customized toolbar through the toolbar designer (drag&drop toolbar buttons on a toolbar), can this be included in an EXE and distributed? Other, than that, I guess I will resort to coding a custom class.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform