striker
05-24-2002, 10:42 AM
Is it possible to change the colour of buttons on a form if so how
TIA.
TIA.
|
View Full Version : Formatting Buttons on a form striker 05-24-2002, 10:42 AM Is it possible to change the colour of buttons on a form if so how TIA. kidzmom3 05-24-2002, 12:50 PM To the best of my knowledge you can only change the text color. llkhoutx 05-24-2002, 08:49 PM Instead of a "button," use a "textbox" that is "raised." You can make at any color you want. Set the following properties as follows: On Mouse Down: = SpecialEffectEnter() On Mouse Up: = SpecialEffectExit() Add the following functions to a module: Private Const conSunken = 2 Private Const conFlat = 0 Private Const conRaised = 1 Public Function SpecialEffectEnter() Screen.ActiveControl.SpecialEffect = conSunken Screen.ActiveControl.BackColor = "WhatEver color you want" End Function Public Function SpecialEffectExit() Screen.ActiveControl.SpecialEffect = conRaised Screen.ActiveControl.BackColor = "Your original back color" End Function striker 05-25-2002, 09:28 AM Thanks for the reply It does just what it says. |