About "&" character in Resources Dialogs

About "&" character in Resources Dialogs

Postby Sakis » Wed Nov 16, 2005 2:21 pm

The character "&" not shown properly in dialogs titles when use them from resources. Any ideas.
FWH Ver 2.6 September 2005

Thanks in advance
Dionisis
User avatar
Sakis
 
Posts: 42
Joined: Fri Oct 21, 2005 2:12 pm
Location: Athens

Re: About "&" character in Resources Dialogs

Postby Enrico Maria Giordano » Wed Nov 16, 2005 3:56 pm

Works fine for me:

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg;
           TITLE "This is a & test"

    @ 1, 1 BUTTON "&Close" ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


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

Re: About "&" character in Resources Dialogs

Postby Enrico Maria Giordano » Wed Nov 16, 2005 4:03 pm

Ops. This is from resources (works fine either):

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg, oBut

    DEFINE DIALOG oDlg;
           RESOURCE "TEST"

    REDEFINE BUTTON oBut PROMPT "&Close";
             ID 201 OF oDlg;
             ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


Code: Select all  Expand view
TEST DIALOG 40, 27, 194, 119
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "This is a & test"
FONT 8, "MS Sans Serif"
{
DEFPUSHBUTTON "&Close", 201, 12, 96, 50, 14
}


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

About "&" character in Resources Dialogs

Postby Sakis » Thu Nov 17, 2005 6:50 am

GoodMorning Enrico

The dialogs is contained into a dll it dosen't works for me but i live
without it. I changed it to onother setence. Many thanks for your code and your valued help to all of us.

Greetings from Greece

Dionisis
User avatar
Sakis
 
Posts: 42
Joined: Fri Oct 21, 2005 2:12 pm
Location: Athens


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], karinha, nageswaragunupudi and 96 guests