hi Art,
adding on to Duane's comment:
To specify a picture for a command button:
1. select the command button
2. in the property sheet, click Picture (Format tab)
and then the builder button ... on the right, or press Ctrl-F2
When Picture Builder dialog box opens with pictures you can choose, click the "Browse..." command button to pick a file.
3. When the file dialog boxs opens, by default it will display BMP files but maybe what you have is a JPG or PNG. In the lower right, to see all files, change to "All Files (*.*)" Access handles BMP files the best, however (I get errors picking other file types). You can use Paint to Save As BMP.
4. Now that the button has a Picture, you can set the Caption property for the text
5. and then the Picture Caption Arrangement property for the location of text with relationship to the picture (ie: Top, Bottom, Left, Right)
6. You can add spaces before or after the Caption if you want.
No-break space, in case you need it, is 160:
ï؟½ï؟½ a.ï؟½ press and hold ALT
ï؟½ï؟½ï؟½ b. type 0160 on the numeric keypad
ï؟½ï؟½ï؟½ c. release ALT
7. If you want more space around the picture, add space in the picture file when you save it.
You could also, as Duane mentioned, add text to the picture when you save it (instead of using Caption and Picture Caption Arrangement ) -- that way, you can position text as you like by the picture.
~~~
On a menu where there aren't any data controls, you could probably just use all Image controls (instead of command Button) and there shouldn't be problems with Click in those cases. Problems sometimes happen when there are other control types since Image controls can't take the focus.
~crystal
I would simply create the image required in an application that allows you to mix text and images. Then use the image on the button. You shouldn't need to modify this at run time.
Duane
I see what is happening. If the command button is the default when the screen opens or the button is clicked, I lose my image. I have put up a screen shot in Needs Assistance for y our revies
With Warm Regards,
ï؟½
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265ï؟½ Ext. 130
Fax (605)964-1070
"Valar Dohaerisï؟½
ï؟½ hi Art,
command buttons have a PICTURE property for an image.
btw, I uploaded another version of MyContacts today -- enhanced the list functionality. This version is a lot more simple than the other one.
http://msaccessgurus.com/tool/MyContacts.htm
respectfully,
crystal
Is there a way to associate and image object to a command button? I was able to do it with a label control. What I am doing is I have created a command button and overlaid it with a label and an image. The label works but the image acts like its being covered up by the command button. I am doing this to customize the look of the command button.
Any ideas?
Thank youï؟½
Art Lorenzini
Sioux Falls, SD