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
SAY PROMPT "HELLO & HELLO"
-
- Posts: 55
- Joined: Fri Jul 08, 2011 6:43 am
Re: SAY PROMPT "HELLO & HELLO"
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
Also when we use
ACTIVATE DIALOG oDlg CENTERED ON INIT SetWindowText( oSay:hWnd, "TTTTT & TTTTT" )
the appersand is not showed.
Frank
- Enrico Maria Giordano
- Posts: 8761
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 5 times
- Contact:
-
- Posts: 55
- Joined: Fri Jul 08, 2011 6:43 am
Re: SAY PROMPT "HELLO & HELLO"
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
- Enrico Maria Giordano
- Posts: 8761
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 5 times
- Contact:
- James Bott
- Posts: 4840
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: SAY PROMPT "HELLO & HELLO"
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
Regards,
James