Page 1 of 1

BTNBMP image

Posted: Thu Jan 09, 2025 9:16 pm
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?