BTNBMP image

Post Reply
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

BTNBMP image

Post by Silvio.Falconi »

I need to insert an image into a btnbmp obj that has a prompt, I would like the image to start from 0.0 and end just before the caption
I tried with adjust the image is inserted as I want but after the caption it is not underneath and you can't see it well
the images i use are not the same size


@ nRow, 530 BTNBMP oImage ;
FILENAME IF(empty( cImmagine),cDefaImage,cImgPath+(cImmagine) );
SIZE 150,140 PIXEL FLAT ;
PROMPT cImmagine ;
OF oDlg NOROUND ;
UPDATE TOP

also the control must not be disabled but it must not be clicked either in fact I use Toggle()


oImage:Toggle()
oImage:nClrBorder := RGB(195,195,185)
oImage:nDeepFocusRect := 0
oImage:nClrFocusRect := RGB(245,245,235)
oImage:ltransparent:=.t.
oImage:lMOver = .f.


I have this result

Image

this figure below is to make you understand what I would like, enlarge the image to the edges and the caption slightly below
Image


if I upload a png I get a Stretch image

Image

only if I insert the color (color CLR_BLACK,CLR_WHITE) then I get a clear image but I think it's a forced thing because I won't always have the image on a white background

How can I solve it?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply