Results 1 to 2 of 2

Thread: Simple Scalemode question......!

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    Ireland
    Posts
    1

    Question

    Hi there....

    I'm new to vb and am having problems
    with the scalemode property.

    More specifically...
    I want to have a fraction :

    say: 8
    -------
    5

    to always be printed to a picturebox ->"picture1.print"<-
    with a variable length string:

    eg: of desired output->

    eg: heloooooooooooooooooooooooo 8
    -------
    5

    or : helooo 8
    -----
    5

    and the distance between the end of the string and the start of the fraction to always be 2 characters long!

    It appears to be an easy problem, but when I set the scalemode of the picturebox to be = 4 (character)
    and I add say 10 to the CurrentX , this gives me
    about 20 characters of space, the problem is that it
    is not quite 20, and to make things worse , if I change
    the font, it seems to introduce all sorts of non linear
    relationships between the number I assign to
    CurrentX and the number of "character spaces" I get
    in return.


    Any help would greatly be appreciated.

    Borris King.






  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151

    It is confusing.

    I cannot help you much, but have been experimenting a bit with scalemode.

    I never tried characters, but most of the other units seem to be logical rather than absolute units. For example: I used scalemode 7 (centimeters), and changed the screen resolution. The size of a 5 centimeter line was not the same for various resolutions. On the screen, it measured about 3 inches at 640*480 and 2.5 inches at 800*600 (It might be different on your monitor). Perhaps it would print the same size every time, but I did not experiment with printing. I was interested in appearance on the screen.

    It could be that there is some attempt to compromize between what objects look like when printed and how they appear on the screen.

    For my monitor Twips per pixel is 15, no matter what the resolution is.

    I would advise experimenting until you get the effect you want. This is what I did after giving up on figuring out what the rules are.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

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