Re: Picture in image control gets cliped "Sometimes" does not stay flu



"Ralph Malph" <ralph.malph@xxxxxxxxxxxxx> wrote in message
news:B207ADB6-ECC2-4A8A-A184-BAECFA088BAD@xxxxxxxxxxxxxxxx

The width of the form is set to be exactly the width of the picture in
the Image control.

The actual Width property of a form includes the borders, so the client area
(as described by ScaleHeight and ScaleWidth) will always be smaller than the
Width of the form unless the form is borderless. Did you actually mean what
you literally said?

For example, let's talk pixels and a graphic that's 500 x whatever. The
normal Windows theme has a 4-pixel border, so if your form is 500 pixels
wide then your client area is 492 pixels wide. You'd need to bump the
overall width to 508 in order to display an image that's 500 pixels wide.


.



Relevant Pages

  • Re: 16:9 Woes
    ... 720×576 (13.5 MHz pixels) ... If your DVD authoring application is flexible enough, ... single resolution, or they may not even offer a choice of resolutions. ... borders to its left and right. ...
    (rec.video.desktop)
  • Re: Question on texture wrapping / multiple textures
    ... You have to repeat the opposite borders of the single tiles. ... the pixels from neighboring tiles. ... I am using texture wrapping for multi-texturing a sphere. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: The use of scale when making af 2D plot
    ... The graph is ... pixels on my form. ... Just use whatever scale units ... borders of the Picture Box to show, but the following code should size ...
    (comp.lang.basic.visual.misc)
  • Re: The use of scale when making af 2D plot
    ... The graph is ... pixels on my form. ... Just use whatever scale units ... borders of the Picture Box to show, but the following code should size ...
    (comp.lang.basic.visual.misc)
  • Re: Form Sizing ... Again ... FFS
    ... I'm not entirely sure what you are trying to do, but the code you posted will have no chance of working unless you are using a ScaleMode of Twips. ... Also, you are using SM_CYBORDER for borders in both the vertical and the horizontal plane, whereas you should be using SM_CXBORDER for one of them. ... I have a sneaking suspicion that you are setting the ScaleWidth and ScaleHeight values in the IDE and expecting them to set the size of the "client area" to those values in accordance with the previously existing ScaleMode value. ... You can easily get the exact total overall size of the x and y borders and caption bar and menu with the following simple code. ...
    (microsoft.public.vb.general.discussion)