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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of frames

Status
Not open for further replies.

sggaunt

Programmer
Jul 4, 2001
8,620
GB
The component creation thread got me thinking about this.
Recently I completed an application in Delphi 4 (no frames), which uses a background image on several (24) tabs of a page control.
I get round the multiple images thing by creating/destroying the image dynamicaly as the uses changes tabs.
I noticed the frames thing in Delphi 7, could this be a better, cleaner way to get the same image on each tab?



Steve: Delphi a feersum engin indeed.
 
Delphi help points out "... if you have a bitmap that is used on multiple forms, you can put it in a frame and only one copy of that bitmap is included in the resources of your application" so in your case it would be a cleaner.


Another way would be to add the image at design time in one page as invisible and set its parent property dynamically e.g. OnShow event of each tab. This you would save you from creating and destroying image.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top