Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coloured command buttons
Message
From
11/04/1998 08:34:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00091273
Message ID:
00091285
Views:
28
If you're satisfied with other aspects of image giving it a press effect like default command button is not hard. Mouse* events are ideal for setting the effect. Check for win97buttons in files section to see an implementation (I think image is used there). When I have access to my own computer, I can send you an implementation too.
Cetin
>Cetin,
>
>Yes, I thought of all of those but they all have their problems.
>
>Using an image means the user does not get the illusory effect of the
>Command Button being pressed in and out, like the default command
>button does.
>
>Playing with the Windows System colours is dicy as a) you then cannot
>have both a grey and a blue command button, and, also, the application
>is not portable as it is dependent on the user's Windows's system
>colour settings.
>
>Any other suggestions ?
>
>Michel Creppy.
>
>=================== Your original message follows ===============
>
>>Has anyone cracked how to change the colour of a command button
> >from its normal grey to, say, blue, yellow, or anything else ?
> >
> >Thanks.
> >Michel Creppy.
> Michel,
> Ways I can think of :
> 1-Use a picture.
> 2-Create a custom image or shape class, looks like a commandbutton.
> 3-Worst maybe, play with windows system colors.
> Cetin
>
> Çetin Basöz
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform