I try with this test
- Code: Select all Expand view RUN
#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 NIL
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]:oBtn:setfile("mail.bmp")
aGet[1]:oBtn:show()
aGet[1]:lBtnTransparent := .T.
else
aGet[1]:oBtn:setfile("")
aGet[1]:oBtn: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