>i have ask why DTPICKER and GET have "same" Position @ nRow, 70
because DATEPICK and GET ARE NOT N THE SAME POSITION
Must I publish all my source code here ?
Code: Select all | Expand
local nRow:= 0,nCol:= 10
local nInterlinea := 30
ddatacambio := oBrw:aArraydata[nRecord][1]
cGiorno := oBrw:aArraydata[nRecord][2]
ncambio := oBrw:aArraydata[nRecord][3]
nRow+=8
@ nRow, 10 SAY oSay[1] PROMPT "Data " SIZE 100,25 PIXEL OF oDlgSub TRANSPARENT FONT oFont
nRow-=2
@ nRow, 70 DTPICKER aGet[1] VAR ddatacambio OF oDlgSub SIZE 198, 25 PIXEL ;
FONT oFont UPDATE PICTURE "ddd dd mmm yyyy" ;
VALID ( DoSwitch( oBtnGetExchange ) ) STYLE DTS_SHOWNONE
nRow+=nInterlinea
@ nRow,10 SAY oSay[2] PROMPT "Cambio" SIZE 100,25 PIXEL OF oDlgSub TRANSPARENT FONT oFont
nRow-=2
@ nRow, 70 GET aGet[2] VAR nCambio SIZE 200,24 PIXEL OF oDlgSub RIGHT
@ nRow-0.2, 320 BTNBMP oBtnGetExchange ;
PROMPT "Aggiorna on line" OF oDlgSub;
SIZE 120, 24 PIXEL FLAT GDIPLUS ;
BITMAP "BTN_INTERNET" LEFT NOROUND ;
ACTION .....
return nil
STATIC FUNCTION DoSwitch( oBtnGetExchange )
oBtnGetExchange:Refresh()
RETURN .T.
>i do "see" that BTMBMP "seems disable"
>when "refresh" it does only "re-paint" but not "enable" it or EVAL() ACTION of BTNBMP
yes the btnbmp must be disabled, only when there is a valid data the btnbmp must be enable, on init the ddatacambio is ctod('')
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