Board index » delphi » Picture Boxes

Picture Boxes

G'Day All,

What is the easiest way to determine whether an image box has
something in it?? TImage.Picture <> Nil does not seem to do the trick.
What am I missing here??

Thanks for the help. If possible could you mail me direct??

--Donovan

---------------------------------------------------------------------------
"If you're not busy being born then you are busy dying"  - Bob Dylan

E-Mail: infoafr...@dial.pipex.co.za    (Donovan J. Edye)

For the BIGGEST tourist information source on Southern Africa direct your
web browser to:

http://www.infoafrica.co.za
---------------------------------------------------------------------------

 

Re:Picture Boxes


On Tue, 07 May 1996 15:12:07 GMT, infoafr...@dial.pipex.co.za (Donovan

Quote
J. Edye) wrote:
>G'Day All,

>What is the easiest way to determine whether an image box has
>something in it?? TImage.Picture <> Nil does not seem to do the trick.
>What am I missing here??

>Thanks for the help. If possible could you mail me direct??

if TImage1.Picture.Bitmap.Empty then
        begin
                MessageDlg('Its Empty'....);
        end
else
        begin
                MessageDlg('No its not!'.....);
        end;

or

if TImage1.Picture.Graphic.Empty then
        begin
                MessageDlg('Its Empty'....);
        end
else
        begin
                MessageDlg('No its not!'.....);
        end;

Brien King
bk...@primenet.com

Other Threads