|
-
Aug 30th, 2002, 07:00 PM
#1
Thread Starter
Hyperactive Member
resizing, pixels & twip
hi, im coding the resize event on my form, the form has 2 frames which, with their contents all need resizing... but my form is set to pixels so that a taskbar icon im using works :s and as u know when u have a form set to pixels the contents of frames are still measured as twip.. :s
so i was wondering if theres a way u can convert a number, to a twip format, like times it or somethin? if so what do i times it by :>
help appreciated (if u understand what im on about :P)
-
Aug 30th, 2002, 07:06 PM
#2
The picture isn't missing
multiply height by Screen.TwipsPerPixelY and width by Screen.TwipsPerPixelX
they should both be 15 in most PC's, so you could just use 15 instead.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Aug 30th, 2002, 08:40 PM
#3
Junior Member
Yeah, I find 15 twips per pixel works well. If you need to be sure, you can do what has already been suggested, or use the ScaleX, and ScaleY functions.
-
Aug 30th, 2002, 08:42 PM
#4
-
Aug 30th, 2002, 08:56 PM
#5
The picture isn't missing
Originally posted by Microbasic
Or you can use Me.ScaleX and Me.ScaleY functions.
Buggy: It's generally bette to not use a constant value.
i said he COULD. never said it was better .
Remember, if someone's post was not helpful, you can always rate their post negatively  .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|