I wish to show mail.bmp when on get there is a cr,if the get is empty the control get must not have the button
I try with this test
I made also
@ 10, 12 GET aGet[1] VAR cEmail ;
BITMAP IIF(!Empty(cEMail),"mail.bmp","");
SIZE 300,24 PIXEL OF oDlg ;
ACTION Msginfo("Email") ;
ON CHANGE cambia(aGET,cEmail)
Function cambia(aGET,cEmail)
IF !Empty(cEMail)
aGet[1]:setfile("mail.bmp")
aGet[1]:show()
aGet[1]:lBtnTransparent := .T.
else
aGet[1]:setfile("")
aGet[1]:hide()
aGet[1]:lBtnTransparent := .T.
Endif
aGet[1]:refresh()
RETURN NIL
but it take a buttonbmp instead btnbmp
I think there is a technique to do this because in a dialog I have a lot of get controls that I have to use
I try with this test
#include "fivewin.ch"
Function test()
local oDlg,oGet,oFont,oBold
local aGet[1]
local cEmail:=Space(30)
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
DEFINE FONT oBold NAME "TAHOMA" SIZE 0,-14 BOLD
DEFINE DIALOG oDlg SIZE 400,40 PIXEL TRUEPIXEL ;
COLOR CLR_BLACK, nRgb( 245,244,234) FONT oFont ;
TITLE "ww"
@ 10, 12 GET aGet[1] VAR cEmail ;
BITMAP IIF(!Empty(cEMail),"mail.bmp","");
SIZE 300,24 PIXEL OF oDlg ;
ACTION Msginfo("Email") ;
ON CHANGE IIF(!Empty(cEMail),;
(aGet[1]:oBtn:setfile("mail.bmp"),aGet[1]:oBtn:show()),;
aGet[1]:oBtn:Hide())
aGet[1]:lBtnTransparent := .T.
Activate DIALOG oDLg center
RETURN NILI made also
@ 10, 12 GET aGet[1] VAR cEmail ;
BITMAP IIF(!Empty(cEMail),"mail.bmp","");
SIZE 300,24 PIXEL OF oDlg ;
ACTION Msginfo("Email") ;
ON CHANGE cambia(aGET,cEmail)
Function cambia(aGET,cEmail)
IF !Empty(cEMail)
aGet[1]:setfile("mail.bmp")
aGet[1]:show()
aGet[1]:lBtnTransparent := .T.
else
aGet[1]:setfile("")
aGet[1]:hide()
aGet[1]:lBtnTransparent := .T.
Endif
aGet[1]:refresh()
RETURN NIL
but it take a buttonbmp instead btnbmp
I think there is a technique to do this because in a dialog I have a lot of get controls that I have to use
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 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
I use : FiveWin for Harbour March-April 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