Author Topic: problem with 5.1 picturebox  (Read 5758 times)

Amsterdamned

  • Member
  • *
  • Posts: 20
problem with 5.1 picturebox
« 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 
Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #1 on: June 22, 2009, 05:35:40 AM »
Can you post screen shots showing both what you get and what you should get?

Amsterdamned

  • Member
  • *
  • Posts: 20
Re: problem with 5.1 picturebox
« Reply #2 on: June 22, 2009, 06:38:31 AM »
I would if i knew how to do that..... :o
Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

BazzaCAD

  • OpenDCL Webmaster
  • Administrator
  • Hero Member
  • *****
  • Posts: 855
  • Cylons will kill you
    • OpenDCL
Re: problem with 5.1 picturebox
« Reply #3 on: June 22, 2009, 10:58:16 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?
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Amsterdamned

  • Member
  • *
  • Posts: 20
Re: problem with 5.1 picturebox
« Reply #4 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
Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #5 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?

Amsterdamned

  • Member
  • *
  • Posts: 20
Re: problem with 5.1 picturebox
« Reply #6 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.
Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #7 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?

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #8 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.

Amsterdamned

  • Member
  • *
  • Posts: 20
Re: problem with 5.1 picturebox
« Reply #9 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?



Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #10 on: June 25, 2009, 08:51:38 AM »
You'll have to set Stretch to T.

Amsterdamned

  • Member
  • *
  • Posts: 20
Re: problem with 5.1 picturebox
« Reply #11 on: June 26, 2009, 04:16:45 AM »
Owen,

with stretch you mean the auto size?

Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #12 on: June 26, 2009, 05:07:20 AM »
No, I'm referring to the Stretch argument to (dcl_PictureBox_LoadPictureFile).

Amsterdamned

  • Member
  • *
  • Posts: 20
Re: problem with 5.1 picturebox
« Reply #13 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
Bernd
Dell Precision M6400
XP SP3 Acad2006/2007

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3094
    • Outside The Box
Re: problem with 5.1 picturebox
« Reply #14 on: June 26, 2009, 08:22:37 AM »
The Stretch argument has been there from the beginning as far as I know.