Page 1 of 1

PostPosted: Wed Jul 03, 2002 10:09 pm
by design4use
I am using this declaration to have a bitmap embedded in a ui gadget:
@bitmap Bitmap picEmail {
id = 2000
image1 = "email8.bmp"
image8 = "email1.bmp"
The 1.1 copiler complains about "Compile error: type name expected" and points to where @bitmap... starts.
I have this decalration positioned right below the internal variable declarations inside that gadget's code.

Anybody knows what that error means and can help me fix it?

PostPosted: Mon Jul 08, 2002 5:17 am
by dewey
The bitmap declaration must be at the top level of the source code - it cannot be inside a function or object declaration.

PostPosted: Mon Jul 08, 2002 8:33 pm
by design4use
thanks for the help, I made the mistake of thinking the object declaration that declares the gadget has to always be on top of the source...