Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Picture property
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00362938
Message ID:
00363510
Views:
19
Hi Lance,

>Try creating an empty form with one Image object and a "Display" button that you can use to assign an explicit path to a .BMP file (anything in the Windows directory) then run it from the command window and click the button and see what happens. I would guess you would see the same thing I am seeing.

The following works just fine for me. Does it for you?
Public ox
ox = CreateObject( "Form" )
ox.AddObject( "img", "Image" )
ox.img.Stretch = 1
ox.img.Visible = .T.
ox.img.Height = 100
ox.AddObject( "cmd", "CmdGet" )
ox.Show()

Define Class CmdGet as CommandButton
   Left = 100
   Visible = .T.
   Procedure Click
      CD (GetEnv("WinDir"))
      Thisform.img.Picture = GetPict("Bmp")
Enddefine
Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform