Skip to content
Carlos Alloatti edited this page May 30, 2017 · 2 revisions

A class that provides toolbar controls to use directly in a form, no need to deal with VFP toolbars.

This class provides controls that can be used as toolbar controls without having to create an actual VFP toolbar. Just drag and drop the desired controls into the form, move them to the top/bottom of the form, add a line control to simulate a toolbar border, and you are done.

I always wanted an easy way to create a toolbar for my forms, and the process of actually creating one in Visual FoxPro, at least in my opinion, is complicated and cumbersome. This is why I created these controls, that can be used easily in any kind of form. The main property of these controls is than they cannot get focus, so they never steal focus away from the current focused control, just like any toobar button should do.

http://i.imgur.com/jJJFKX5.png

The included controls are:

tbcheck: equivalent to a checkbox control

tbcommand: equivalent to a commandbutton control

tbdropdown: no equivalent in VFP

tbline: just a simple subclassed line control that is used to simulate the "toolbar" border.

tbradio: equivalent to an optionbutton control. This maybe should not be used in a toolbar, but it was easy to create, since it is almost the same thing as the tbcheck control.

tbsplitbutton: no equivalent in VFP. A button with two parts where you can click the left part of the control, or the right dropdown part.

tbtoggle: equivalent to a checkbox control with style set to 1 - Graphical

Clone this wiki locally