OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-07-2005, 12:30
woycek21
Guest
 
Posts: n/a
Default How sets size form same as size images ?

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
Attached Images
 
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 20:56.


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