Page 1 of 1
SAY PROMPT "HELLO & HELLO"
Posted: Sat Jul 30, 2011 1:17 pm
by Demont Brecht
Hello,
In TestSay2.prg i changed
@ 2, 2 SAY oSay PROMPT "Test"
in
@ 2, 2 SAY oSay PROMPT "Test & Test"
The appersand (&) is not showed.
I remember that in xbrowse we had to change a line in Defstyle :
nStyle := nOr( DT_MODIFYSTRING, DT_EDITCONTROL, DT_NOPREFIX )
I tryed this on a say object without succes.
Frank
Re: SAY PROMPT "HELLO & HELLO"
Posted: Sat Jul 30, 2011 1:47 pm
by Demont Brecht
It seems that to draw the text the program uses 'SetWindowText(<hWnd> , <cText>) '
Also when we use
ACTIVATE DIALOG oDlg CENTERED ON INIT SetWindowText( oSay:hWnd, "TTTTT & TTTTT" )
the appersand is not showed.
Frank
Re: SAY PROMPT "HELLO & HELLO"
Posted: Sat Jul 30, 2011 2:24 pm
by Enrico Maria Giordano
Please use double && instead of single &.
EMG
Re: SAY PROMPT "HELLO & HELLO"
Posted: Sat Jul 30, 2011 3:20 pm
by Demont Brecht
Enrico Maria Giordano wrote:Please use double && instead of single &.
EMG
Enrica , thanks it works BUT :
Mine custumer fills some character fields in a DBF with "......&........." .
Using XBROWSE , this is not a problem , the text is show as expected . Also when this text is edited (using GET) no problem. Only when we want to show the text in a say we have to check this text and add some '&' . At least very confusing and onlogical !
Frank
Re: SAY PROMPT "HELLO & HELLO"
Posted: Sat Jul 30, 2011 3:22 pm
by Enrico Maria Giordano
Demont Brecht wrote:Enrica
Who is "Enrica"?

EMG
Re: SAY PROMPT "HELLO & HELLO"
Posted: Fri Aug 05, 2011 3:26 pm
by James Bott
The ampersand is used to define hotkeys. This is usually used in menus, but I expect it can be used in SAYs also.
Regards,
James