Question PictureBox_LoadPictureFile

Started by velasquez · 2011-02-11 19:19 UTC · 12 replies · SMF topic #1588

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.
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
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
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
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
Attachments
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


Hi vela, I'm missing the background.bmp.
Fred
Hi, vela, have a look at my sample and resize the form. I cannot find any problem with 6.0.2.1.
Fred
Attachments
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
Attachments
Hi velasquez, have you already tried my sample?

Fred
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
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






Attachments
Hi velasquez, ah you expected the image to be stretched not proportional but OpenDCL only stretches the image proportional.

Fred