Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put a picture in a command button
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00133717
Message ID:
00133795
Views:
12
>>When i creat a button in form and i want to put a picture in it, But ..it's display in a center of command
>>button. How to put the picture (32x32 .bmp) on the left of button?
>
>Pongthap,
>
>You can't, pictures are centered on command buttons. You can, however, create a class based on teh control class and add the button and an image over the left side of the button. Set the image to your picture. In the Image's click event put this; THIS.Parent.Command1.Click() to make sure clicking the image will click the button.

I use simpler way - I just create the picture for my button where the necessary image is located on the left side of .BMP.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform