>>>Does anyone know where I can find all the names of the buttons on the VFP toolbars? I am trying to create a toolbar class but donn't know the names of the buttons to use in "add object". The Dev Guide and on-line help only list a few in the example.
>>>
>>>TIA
>>
>>Where did you find the names of those few? What example?
>>
>>Vlad
>
>In VFP help do a search on "Toolbar Object" (not "Toolbar Objects"). The following is from the Example from that topic.
>PUBLIC tbrDesktop
>tbrDesktop = CREATEOBJ('mytoolbar')
>tbrDesktop.SHOW
>
>DEFINE CLASS myToolBar AS Toolbar
> ADD OBJECT btnBold AS CommandButton
> ADD OBJECT sep1 AS Separator
> ADD OBJECT btnItalics AS CommandButton
>
> btnBold.HEIGHT = 20
> btnBold.WIDTH = 50
> btnBold.Caption = "Bold"
> btnItalics.HEIGHT = 20
> btnItalics.WIDTH = 50
> btnItalics.Caption = "Italic"
> btnItalics.FontBold = .F.
>
> LEFT = 1
> TOP = 1
> WIDTH = 25
>
> CAPTION = "Desktop Attributes"
>
>
>PROCEDURE Activate
> this.btnBold.FontBold = _SCREEN.FONTBOLD
> this.btnItalics.FontItalic = _SCREEN.FONTITALIC
> ENDPROC
>
> PROCEDURE btnBold.CLICK
> _SCREEN.FONTBOLD = !_SCREEN.FONTBOLD
> This.FontBold =_SCREEN.FONTBOLD
> ENDPROC
>
> PROCEDURE btnItalics.CLICK
> _SCREEN.FONTITALIC = !_SCREEN.FONTITALIC
> This.FontItalic = _SCREEN.FONTITALIC
> ENDPROC
>ENDDEFINE
>
>I also found it on page 323 of the VFP 5 Developer's Guide. I was wondering where all the toolbar button names can be found. I will probably resort to some guess work like btnCut, btnCopy, btnPaste, etc.
I don't understand why you're saying these are the buttons from VFP's toolbar. As far as I see, this is a toolbar to which you add two custom buttons. The sample shows also how you can manage these buttons, but I don't see the connection with VFP's buttons.
Or maybe I am missing something?
Vlad