Button Color (OpenInsight)
At 04 MAY 2001 07:00:48PM Rick Todd wrote:
Is there a way to change the color of a btton? I have been playing the the UTILITY("CHOOSECOLOR) and the BACKCOLOR and FORECOLOR properties and have been unsuccessful in change a button from gray.
I can change the backgound color of a form. Does anyone have a suggestion?
Thanks Rick
At 05 MAY 2001 01:38AM Donald Bakke wrote:
Rick,
The only way to control the button's color is to make a BMP for it.
At 05 MAY 2001 10:17AM Rick Todd wrote:
So if I use a Bitmap how can I have text on the button? I have tried using the Combine Text/Bitmap in the Push Button Properties but, the text never displays.
At 06 MAY 2001 04:51PM Mike Ruane wrote:
Don-
Wasn't there some fooling around with versions of ctl3d.dll?
Mike
At 07 MAY 2001 12:03AM Donald Bakke wrote:
Mike,
I never looked into that, but it wouldn't surprise me if some versions allowed for it versus others. All I know is that the Form Designer disables the Background color settings for buttons. I prefer to not mess with ctl3d.dll because some versions don't provide the more defined 3D edge that we prefer.
Rick,
Generally speaking we put the text in the BMP itself. Essentially you have to create the entire button out of the BMP, including each "stage" of the button. Look at the IMAGENUMBER and related properties in the PRG for more details. If you would like some examples then send me an email and I'll reply with some for you to use/look at.
We have never messed with the Text/Bitmap property thing. You'll get a lot more control and satisfaction by building everything within the BMP itself.
At 07 MAY 2001 08:54PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
[notag]Wasn't the ctl3d.dll thing for the text color? Some versions are really bad or flaky. The best one is the one that ships with OI.
I'm not aware of any way to change the background color of a button without some serious diddling with windows.
It's so much easier to just make the bitmap.
[<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Click here to visit our web site?';return(true)">The Sprezzatura Group</A>]
[<I>World Leaders in all things RevSoft</I>]
[<img src="http://www.sprezzatura.com/zz.gif">]
[<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0"}end hiding from non-JS browsers –></script>] [<FORM ACTION "" METHOD=GET NAME="TOCNavigator" <SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()"> <OPTION>Pull down this menu to choose whereabouts on the Sprezz site to go <OPTION VALUE="http://www.sprezzatura.com">Home Page <OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New <OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL <OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST <OPTION VALUE="mailto:[email protected]">Send mail to support at Sprezzatura <OPTION VALUE="mailto:[email protected]">Send mail to sales at Sprezzatura </SELECT> </FORM>][/notag] </QUOTE> —- === At 08 MAY 2001 07:03AM WinWin/Revelation Technical Support wrote: === <QUOTE>Foreground color- Correct. My mistake. Mike </QUOTE> —- === At 08 MAY 2001 10:34AM Rick Todd wrote: === <QUOTE>Ok, then how do you change the foreground color of a button? Thanks Rick </QUOTE> —- === At 08 MAY 2001 11:22AM Donald Bakke wrote: === <QUOTE>Rick, You might get an answer, but realize that the solution will probably be messy and it will require that you employ a different version of CTL3D.DLL than what comes with OI. That alone is a pain, especially controlling this because other programs could very easily install their own version of this DLL. [email protected] SRP Computer Solutions, Inc.
</QUOTE> —- === At 08 MAY 2001 12:10PM Aaron Kaplan wrote: === <QUOTE> </QUOTE> —- === At 08 MAY 2001 01:32PM Mike Ruane wrote: === <QUOTE>See- A perfect example of white text on a button with a white background. Mike </QUOTE> —- === At 08 MAY 2001 04:15PM Aaron Kaplan wrote: === <QUOTE> </QUOTE> —- === At 09 MAY 2001 09:11AM Don Miller - C3 Inc. wrote: === <QUOTE>And they DO! Don Miller C3 Inc. </QUOTE> View this thread on the Works forum...