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


Groups > comp.lang.clipper.visual-objects > #3364 > unrolled thread

FabPaintLib Auto Size Image

Started byIan <ithomson@mikroaid.co.uk>
First post2012-04-23 07:01 -0700
Last post2012-04-24 02:42 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#3364 — FabPaintLib Auto Size Image

FromIan <ithomson@mikroaid.co.uk>
Date2012-04-23 07:01 -0700
SubjectFabPaintLib Auto Size Image
Message-ID<b9f27bb0-0a96-48e8-8a94-f5c75f2384f0@m7g2000vbg.googlegroups.com>
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

[toc] | [next] | [standalone]


#3365

FromMathias <mathias.hakansson@consultec.se>
Date2012-04-23 22:20 -0700
Message-ID<16056313.478.1335244817390.JavaMail.geo-discussion-forums@vbq5>
In reply to#3364
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

[toc] | [prev] | [next] | [standalone]


#3366

FromIan <ithomson@mikroaid.co.uk>
Date2012-04-24 02:42 -0700
Message-ID<2cf11b5b-223b-4ebe-9b75-95ce5b377248@d4g2000vbn.googlegroups.com>
In reply to#3365
On Apr 24, 6:20 am, Mathias <mathias.hakans...@consultec.se> wrote:
> 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

Hi Mathias,

I have tried that option but I can not get it to work with a custom
control.

Thanks for the answer, I need to keep looking I think.

Cheers,
Ian

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web