OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   Corel Photo-Paint VBA (http://forum.oberonplace.com/forumdisplay.php?f=17)
-   -   How sets size form same as size images ? (http://forum.oberonplace.com/showthread.php?t=1087)

woycek21 09-07-2005 12:30

How sets size form same as size images ?
 
1 Attachment(s)
Hellow

I last wrote script to scales images and creats from they thumbnails file.
And I try display this thumbnails file in form.
I want that width and height form will like width and height thumbnails file.
How i make it ?

I try sets this property, but this not work good

FormMiniatura.Width = 520
FormMiniatura.Height = 400
FormMiniatura.IMGminiatury.Width = 500
FormMiniatura.IMGminiatury.Height = 350

My thumbnails file has size 625x425 pixels but is smaller than form and image object. I attachment printscrn what i obtain.

I try use Screen object, but i get 424 error, why ?

nWysokosc = Form1.Height / Screen.TwipsPerPixelY
nSzerokosc = Form1.Width / Screen.TwipsPerPixelX

Regards
Wojtek


All times are GMT -5. The time now is 22:29.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com