Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect screen object
Message
From
08/03/2005 10:37:55
 
 
To
08/03/2005 09:44:35
Brian O'Donovan
Crescent Computers
Cork, Ireland
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993620
Message ID:
00993645
Views:
17
Another way:
IF NOT PEMSTATUS(_screen,'IoIMAGE',5)
   _SCREEN.AddObject('IoIMAGE','IMAGE')
   ...
ENDIF
>If am using the following command to place an image on the main foxpro screen.
> _SCREEN.AddObject('IoIMAGE','IMAGE')
> _screen.ioimage.picture = "touch.gif"
> _screen.ioimage.stretch = 1
> _screen.ioimage.width = 200
> _screen.ioimage.height = 200
> _screen.ioimage.visible = .t.
> _screen.ioimage.left = (_screen.Width-_screen.ioimage.width)/2
> _screen.ioimage.top = (_screen.height-_screen.ioimage.height)/2
>
>When I am running the application uncompiled, i get an error as the first line brings up an
>error as it aleady exisits. How can I tell the system to only run the command if iomage does not exist.
>
>brian


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform