Results 1 to 5 of 5

Thread: resizing, pixels & twip

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    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)

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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 .

  3. #3
    Junior Member
    Join Date
    Dec 2001
    Posts
    20
    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.

  4. #4
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Or you can use Me.ScaleX and Me.ScaleY functions.

    Buggy: It's generally bette to not use a constant value.
    Last edited by Microbasic; Aug 30th, 2002 at 08:46 PM.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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
  •  



Click Here to Expand Forum to Full Width