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!

Add image visibilty

Status
Not open for further replies.

MechanicalBoy

Technical User
Aug 11, 2002
11
0
0
PL
I realize that the condition:

if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]");

is incorrectly written [or upside down :)] ( '!=' replace '==' )

Im my application i needs to create & delete images during runtime. I've been told that every visible object on the form must be declared within __published: section.
But i declared poiter to TImage as a global in Unit1.cpp.
TImage *IMG;
I hope that the procedure of creating new Image is good becouse IMG = new TImage(this) has never returned NULL pointer.

Thanks for help again.
RafalP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top