OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Amsterdamned on June 22, 2009, 02:21:32 AM

Title: problem with 5.1 picturebox
Post by: Amsterdamned on June 22, 2009, 02:21:32 AM
Hello there

Since I changed all my stuff to 5.1 I get a funny problem with a picture box in one of my files.

The wmf files I load do not seem to fit anymore. Is there a setting that forces the picture to fit the box?

Thanks

Bernd 
Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 22, 2009, 05:35:40 AM
Can you post screen shots showing both what you get and what you should get?
Title: Re: problem with 5.1 picturebox
Post by: Amsterdamned on June 22, 2009, 06:38:31 AM
I would if i knew how to do that..... :o
Title: Re: problem with 5.1 picturebox
Post by: BazzaCAD on June 22, 2009, 10:58:16 AM
Quote from: Amsterdamned on June 22, 2009, 06:38:31 AM
I would if i knew how to do that..... :o

Click the "Additional Options" link below, then you can browse to attach an image.
Do you need help creating the screen shot?
Title: Re: problem with 5.1 picturebox
Post by: Amsterdamned on June 24, 2009, 05:54:53 AM
Yes, that would be nice. If i take the sreen shot, i can insert it into word. But how can i make a one for that forum? I now made a pdf form my word file.....

Bernd
Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 24, 2009, 06:08:57 AM
That's a lot more work than necessary for creating a screen shot, but it works.  What is the value of the 'Auto Size' property of the picture box?  Can you post (or email) the .odcl file?
Title: Re: problem with 5.1 picturebox
Post by: Amsterdamned on June 24, 2009, 06:28:17 AM
Owen,

that value is "False". I don't want the control to resize, i want the image to fit the control.
Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 24, 2009, 10:36:18 AM
I cannot reproduce the problem here. Can you post the .wmf file you're using, along with the lisp code that you use to load it?
Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 25, 2009, 07:49:34 AM
I tested with your .wmf files, and they appear to be working correctly for me. Loading them with the Stretch argument set to T causes them to appear smaller than necessary because the .wmf contains a lot of unused canvas in the width direction. The images you attached in your earlier post show the .wmf loaded with Stretch set to NIL, but you told me via email that you use Stretch set to T. Therefore, I'll guess that you're using NIL, which would mean the resulting size is dependent on your display resolution and Windows font settings.
Title: Re: problem with 5.1 picturebox
Post by: Amsterdamned on June 25, 2009, 08:36:21 AM
 Oke. If it is depending on machine settings, I will have another problem (see my other post). I need to get that dock able form work on different computers where I don’t have any influence on their settings… How can I accomplish that?



Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 25, 2009, 08:51:38 AM
You'll have to set Stretch to T.
Title: Re: problem with 5.1 picturebox
Post by: Amsterdamned on June 26, 2009, 04:16:45 AM
Owen,

with stretch you mean the auto size?

Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 26, 2009, 05:07:20 AM
No, I'm referring to the Stretch argument to (dcl_PictureBox_LoadPictureFile).
Title: Re: problem with 5.1 picturebox
Post by: Amsterdamned on June 26, 2009, 06:51:41 AM
Owen,
Thanks, that was the problem Id didn’t even know that option was there…  :o
Was that in 4.1 already there as well? Anyhow, it works perfect.

Thanks,

Bernd
Title: Re: problem with 5.1 picturebox
Post by: owenwengerd on June 26, 2009, 08:22:37 AM
The Stretch argument has been there from the beginning as far as I know.