I want to define hotspotareas with transparent BTNBMP in Design-mode
The button-values are saved / restored to / from a DBF
I need the Button-No. from a button-list defined in a DO WHILE like
Buttons created from a DBF-file .
- Code: Select all Expand view
DBSELECTAREA (1)
DBSETORDER(1)
DBSEEK(UPPER(cWImage))
IF FOUND()
DO WHILE (1)->IMAGE = cWImage .and. !EOF()
nHSpotCol := (1)->HSCOLOR
@ (1)->TOP, (1)->LEFT BTNBMP oHBtn[n] OF oHDialog ;
SIZE (1)->WIDTH, (1)->HEIGHT PIXEL ;
PROMPT ALLTRIM( STR(n)) ;
FONT oFont2 ;
CENTER
oHBtn[n]:bAction := {|| msGalert( "Button. " + ALLTRIM(STR( // ????? oHBtn[n] )) ) }
oHBtn[n] :lTransparent := .t.
oHBtn[n] :SetColor( nHSpotCol, )
DBSKIP(+1)
n++
ENDDO
ENDIF
Best Regards
Uwe