Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #3365

Re: FabPaintLib Auto Size Image

From Mathias <mathias.hakansson@consultec.se>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: FabPaintLib Auto Size Image
Date 2012-04-23 22:20 -0700
Organization http://groups.google.com
Message-ID <16056313.478.1335244817390.JavaMail.geo-discussion-forums@vbq5> (permalink)
References <b9f27bb0-0a96-48e8-8a94-f5c75f2384f0@m7g2000vbg.googlegroups.com>

Show all headers | View raw


Have you tried ShowFitToWindowInDC?

/Mathias

Den måndagen den 23:e april 2012 kl. 16:01:10 UTC+2 skrev Ian:
> Hi All,
> 
> I have completed changing my windows to use the owner alignment value
> OA_PX_PY_PWIDTH_PHEIGHT. All is working ok except where I am showing
> images on a customcontrol. The code I use is as follows;
> 
> oImageControl  :=FabPaintLib{"Mikrologo.bmp",self}
> 
> oDim           :=Dimension{self:oDCCustomControl1:Size:Width,;
> self:oDCCustomControl1:Size:height}
> 
> oImageControl:ResizeBilinear(96,140)
> self:oDCCustomControl1:Image    :=oImageControl
> 
> Although the custom control does resize to suit the users screen size/
> resolution, the actual image does not and remains fixed at the 96,140
> size shown in the code. Even if I comment out the line for
> oDim :=Dimension etc and the line for resizebilinier the image still
> shows at the custom controls original size and does not expand to fill
> the custom control.
> 
> Any ideas ?
> 
> ian

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

FabPaintLib Auto Size Image Ian <ithomson@mikroaid.co.uk> - 2012-04-23 07:01 -0700
  Re: FabPaintLib Auto Size Image Mathias <mathias.hakansson@consultec.se> - 2012-04-23 22:20 -0700
    Re: FabPaintLib Auto Size Image Ian <ithomson@mikroaid.co.uk> - 2012-04-24 02:42 -0700

csiph-web