Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image for desktop
Message
From
06/08/2003 10:17:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00817262
Message ID:
00817311
Views:
16
Moises,

Thats the advantage of adding the image as a VFP Image control, you get full control over how and where you position it relative to _screen.
_screen.splashimage.left = (_screen.Width - _screen.splashimage.left) / 2
If you use a subclassed version of the VFP Image control you could then add a custom method that could be plumbed into the _screen's resize event.
*!* Assumes custom image class added to _screen container.

bindevent(_screen, "Resize", _screen.splashimage, "customresize")

define class myimage as Image
   procedure customresize

   *!* Add custom image positioning logic here.

   endproc
enddefine
Previous
Reply
Map
View

Click here to load this message in the networking platform