Bitmaps inside UI gadgets

Discuss OrbForms Designer and PocketC Architect

Postby design4use on Wed Jul 03, 2002 10:09 pm

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?
Thx
design4use
 
Posts: 128
Joined: Fri May 10, 2002 3:31 pm

Postby dewey on Mon Jul 08, 2002 5:17 am

The bitmap declaration must be at the top level of the source code - it cannot be inside a function or object declaration.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby design4use on Mon Jul 08, 2002 8:33 pm

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...
design4use
 
Posts: 128
Joined: Fri May 10, 2002 3:31 pm


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 3 guests

cron