Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphical buttons loose bitmap image

Status
Not open for further replies.

SJA

Technical User
Nov 27, 2000
15
0
0
GB
I have a frame containing an array of graghical command buttons. Each button has a small bitmap image and 3 chrs of text. When working in the IDE the buttons randomly loose
their image. The image can be replaced using the buttons properties but at some future time, when the project is reloaded, they dissapear, maybe one, maybe several, leaving just the text. Has anyone seen this before ?
 
Try make buttons and images larger to see if this helps..
 
Problem solved!
I've discovered that if you store the pictures (bitmaps,jpgs etc) in the same directory as the project, or more specifically in the same folder as the forms frx file then the buttons don't loose their graphics. The frx file contains the graphics information contained in the forms controls. Wonder if that's a Microsoft bug ?
 
Wonder if that's a Microsoft bug ?

A MICROSOFT BUG???? NO WAY What are you thinking you heretic!

Sorry, Just could not resist.


Andy Baldwin

"Testing is the most overlooked programming language on the books!"

Ask a great question, get a great answer. Ask a vague question, get a vague answer.
Find out how to get great answers FAQ219-2884.
 
Best place to store pictures and other resources that the program uses is in a resource file. That's what it's designed for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top