SAY PROMPT "HELLO & HELLO"

SAY PROMPT "HELLO & HELLO"

Postby Demont Brecht » Sat Jul 30, 2011 1:17 pm

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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: SAY PROMPT "HELLO & HELLO"

Postby Demont Brecht » Sat Jul 30, 2011 1:47 pm

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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: SAY PROMPT "HELLO & HELLO"

Postby Enrico Maria Giordano » Sat Jul 30, 2011 2:24 pm

Please use double && instead of single &.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SAY PROMPT "HELLO & HELLO"

Postby Demont Brecht » Sat Jul 30, 2011 3:20 pm

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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: SAY PROMPT "HELLO & HELLO"

Postby Enrico Maria Giordano » Sat Jul 30, 2011 3:22 pm

Demont Brecht wrote:Enrica


Who is "Enrica"? :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SAY PROMPT "HELLO & HELLO"

Postby James Bott » Fri Aug 05, 2011 3:26 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 23 guests