Results 1 to 4 of 4

Thread: Centering A Graphic Within A Frame

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Post

    At the moment I am trying to centre a graphic within a frame using the following code :

    Picture1.Left = (Frame1.Width - Picture1.Width) / 2
    Picture1.Top = (Frame1.Height - Picture1.Height) / 2

    This is through VB4 - 16 Bit. I then run the application under OS/2 and the graphic is not in the centre. Any idea appreciated.

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    OS/2 is crap.

    Seriously - I used to write a lot of VB4 16-bit stuff under OS/2 and to get the graphics to look right is amazingly painful. This is because OS/2 is trying it's best to emulate Windows v3.1 and it fails most of the time.



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    One thing I did notice was changing the screen settings under OS/2 seemed to make a difference.

    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Post

    I am developing and compiling under NT and then testing in OS/2. It's not as easy as changing the display settings because the application is running on hundreds of PC's within the company.

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