Started by velasquez ·
2011-02-11 19:19 UTC ·
12 replies · SMF topic #1588
velasquez
2011-02-11 19:19 UTC
OpenDCL 6.0.1.3 Windows 7
I am working with the method PictureBox_LoadPictureFile see below.
;;;(dcl_PictureBox_LoadPictureFile ControlBar-6_Form2_PictureBox1 Filename [as String] {Stretch [as Boolean]})
(dcl_PictureBox_LoadPictureFile ControlBar-6_Form2_PictureBox1 "C:\\fundo.bmp" T)
When the stretch value for T is the smaller image should not fit a larger PictureBox?
This is not happening.
fred_tomke
2011-02-17 06:45 UTC
Hello, velasquez,
I have no experience in that topic, that's why I didn't answer yet.
Would you be so kind to create a small sample that explains it?
So it can be helpful for debugging, troubleshooting and maybe bugfixing in the Runtime source code.
Thanks, Fred
krunch
2011-02-17 09:32 UTC
Just a remark : to change the Picture of a PBox it's simpler tu load them in the .odcl then to use the Picture property
fred_tomke
2011-02-17 11:37 UTC
Hello, krunch,
yes, you are right for the case, that the images do not vary and they are very small in their file size that the odcl project wouldn't get so huge that loading the project file would would cause a recognizable delay.
I use the LoadPicture method, too, for such a very special case, but I do not stretch them.
Regards,
Fred
velasquez
2011-02-17 12:54 UTC
Hello Fred,
I posted an example.
See the image is adjusted in width but is not adjusted in height.
This is the correct function to stretch.
Regards,
Velasquez
velasquez
2011-02-17 13:11 UTC
author=velasquez link=topic=1588.msg7776#msg7776 date=1297947260 wrote:
Hello Fred,
I posted an example.
See the image is adjusted in width but is not adjusted in height.
This is the correct function to stretch.
Regards,
Velasquez
Sorry.
This is the correct function to stretch?
velasquez
fred_tomke
2011-02-17 13:23 UTC
Hi vela, I'm missing the background.bmp.
Fred
fred_tomke
2011-02-17 13:57 UTC
Hi, vela, have a look at my sample and resize the form. I cannot find any problem with 6.0.2.1.
Fred
velasquez
2011-02-17 16:37 UTC
author=Fred Tomke link=topic=1588.msg7778#msg7778 date=1297948991 wrote:
Hi vela, I'm missing the background.bmp.
Fred
Sorry Fred.
I posted the picture now.
Velasquez
fred_tomke
2011-02-17 21:55 UTC
Hi velasquez, have you already tried my sample?
Fred
velasquez
2011-02-18 11:38 UTC
author=Fred Tomke link=topic=1588.msg7784#msg7784 date=1297979748 wrote:
Hi velasquez, have you already tried my sample?
Fred
Yes Fred,
I expected the image to be resized to the entire space of PictureBox.
Thanks
Velasquez
velasquez
2011-02-18 11:58 UTC
author=velasquez link=topic=1588.msg7788#msg7788 date=1298029107 wrote:
[quote author=Fred Tomke link=topic=1588.msg7784#msg7784 date=1297979748]
Hi velasquez, have you already tried my sample?
Fred
Yes Fred,
I expected the image to be resized to the entire space of PictureBox.
Thanks
Velasquez
Thanks for the replies Fred.
I wanted to work with a background image to any size of PictureBox.
But I think this will not be possible with Stretch in PictureBox_LoadPictureFile.
Best Regards
fred_tomke
2011-02-18 13:47 UTC
Hi velasquez, ah you expected the image to be stretched not proportional but OpenDCL only stretches the image proportional.
Fred