FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SAY PROMPT "HELLO & HELLO"
Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM

SAY PROMPT "HELLO & HELLO"

Posted: Sat Jul 30, 2011 01: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

Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM

Re: SAY PROMPT "HELLO & HELLO"

Posted: Sat Jul 30, 2011 01: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

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: SAY PROMPT &quot;HELLO &amp; HELLO&quot;

Posted: Sat Jul 30, 2011 02:24 PM

Please use double && instead of single &.

EMG

Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM

Re: SAY PROMPT &quot;HELLO &amp; HELLO&quot;

Posted: Sat Jul 30, 2011 03: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: SAY PROMPT &quot;HELLO &amp; HELLO&quot;

Posted: Sat Jul 30, 2011 03:22 PM
Demont Brecht wrote:Enrica


Who is "Enrica"? :-)

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: SAY PROMPT &quot;HELLO &amp; HELLO&quot;

Posted: Fri Aug 05, 2011 03: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion