>Actually, all I am trying to do is to add a little life to my buttons. I tried changing the forecolor on a mousemove event but I can't seem to detect when the mouse LEAVES the button. Is there such an event? Do you know of any other techniques for sprucing up buttons? TIA.
As has been mention, using the MouseMove event in the button and container work. For example, placing the following code in a button's MouseMove and the form's demonstrates this
IF ThisForm.Cmndbtn1.FontBold
ThisForm.Cmndbtn1.FontBold = NOT ThisForm.Cmndbtn1.FontBold
ENDIF
IF NOT This.FontBold
This.FontBold = NOT This.FontBold
ENDIF
toggles the button's Caption between bold and non-bold.
With a series of related buttons on a form, you could use the Microsoft Toolbar 6.0 ActiveX control. It emulates the toolbars found in the Office 2000 products. It is not, however, completely without problems. Fortunately, there are workarounds.
The first problem is that references to _SCREEN.ActiveForm when a form with the toolbar is on top, actually reference the ActiveX control rather than the form. The workaround is to change these to _SCREEN.Forms(1) to properly reference the form.
The second problem is that it takes a lot of resources. In order to have it display automatically the button states, you have to reference "hot", "cold" and "disabled" bitmaps in three ImageList controls. If, for example, your toolbar had 9 buttons on it, that's 27 bitmaps that would have to be loaded.
The workaround here is, rather than use individual bitmaps, gather all the images in a single bitmap, and use the PicClip ActiveX control. You then load the images at run time from the PicClip into the individual image lists when they initialize.
George
Ubi caritas et amor, deus ibi est