Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Background Color for Command Buttons
Message
From
14/06/2001 12:57:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00514892
Message ID:
00519507
Views:
18
>Brad,
>
>Thanks for the suggestion--and all the others I received!
>
>The solution that works best is indeed to use the container. I created a class that includes a picture and label. In the Click method of those you simply call the container Click method. The MouseDown and MouseUp events are responsible for setting the SpecialEffect property of the container to Sunken and Raised.
>
>There is a secret, however, which you hinted at: You have to set the visible property or else the container won't change. This is a bug documented in MSDN Q170597.
>
>Otherwise it works great. Thanks to all who offered suggestions!
>
>Rich

Rich,
Better do not put anything in container (if not toolbar) :) That way wherever you place it would be a button (even a group of controls on form).
Shortcut of that secret :
with this
 .SpecialEffect  = 1
 .visible = .visible
endwith
Cetin
Ç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
Reply
Map
View

Click here to load this message in the networking platform