I made this test to try
1. the say is not transparent
2. if I have many tabs the text is not where I wish it must be
- Code: Select all Expand view
FUNCTION Tab_ShowText( oTab,text)
Local oPSay2
Local nSpace := 0
Local numtab:= 0
IF Len( oTab:aPrompts ) > 5
numtab:= 3
ELSE
numtab:= Len( oTab:aPrompts )
ENDIF
FOR n = 1 to numtab
nSpace := nSpace + GetTextWidth( 0, StrTran( oTab:aPrompts[ n ], "&", "" ), ;
/*oTab:oBold:hFont*/ ) ;
/* IF( Empty( oTab:ahBitmaps[ n ] ), 0, 18 ) */
NEXT
@ 0, nSpace SAY oPSay2 PROMPT text OF oApp():oTab COLOR CLR_RED TRANSPARENT
RETURN (NIL)
to call the function :
@ 2,10 TABS oTab ;
OPTION .....
ACTIVATE DIALOG oDlg ;
ON INIT Tab_scritta( oTab,"text")
Any help please ?