Hello,
I created a Buttonlist inside a DO WHILE from a DBF.
The buttons are painted with defined size and prompts without any problem.
Now I need the button-number/position of a selected button-action from the buttonlist ( array ).

Best Regards
Uwe
I created a Buttonlist inside a DO WHILE from a DBF.
The buttons are painted with defined size and prompts without any problem.
Now I need the button-number/position of a selected button-action from the buttonlist ( array ).
nAreas := 0
DO WHILE (1)->IMAGE = cWImage .and. !EOF()
nAreas++
AAdd( oHArea, nAreas )
AAdd( aPrompts, ALLTRIM(STR( (1)->HOTSPOT )) )
@ (1)->TOP, (1)->LEFT BTNBMP oHArea[nAreas] OF oHDialog ;
PIXEL SIZE (1)->WIDTH, (1)->HEIGHT ;
PROMPT ALLTRIM(STR(nAreas)) ;
ACTION MsgAlert( ???? ) ; // BUTTONPOSITION needed ????
FONT oFont2 ;
ROUND CENTER DESIGN
oHArea[nAreas]:lTransparent := .t.
oHArea[nAreas]:cTooltip := ALLTRIM(STR(nAreas)) // displayed Number OK !!!
oHArea[nAreas]:SetColor( nHSpotCol, )
DBSKIP(+1)
ENDDO
Best Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.