STATIC control problem in fbEdit

General FreeBASIC programming questions.
Post Reply
gedumer
Posts: 129
Joined: Sep 15, 2005 16:52

STATIC control problem in fbEdit

Post by gedumer »

The fbEdit Visual Resource Editor doesn't allow double quotes ("") in the Caption. Double quotes are required when you want a single quote to appear in the text of the Static control when the dialog is invoked. For example, if I want:

This is a number "1"

to appear in the dialog. I have to code it in the resource file as follows:

This is a number ""1""

fbEdit does not allow the double quotes in the Caption property. fbEdit doesn't object when you enter 2 quotes, but when you open fbEdit the next time, the 2 quotes are changed to a single quote. You should be able to code the quote as \", but GoRc doesn't seem to like it.

In other words, I want this:

CONTROL "Left Parenthesis ""(""",IDC_STC2,"Static",0x50000000,10,44,80,9

But fbEdit keeps converting it to this:

CONTROL "Left Parenthesis "("",IDC_STC2,"Static",0x50000000,10,44,80,9

I want it to look like this in the dialog:

Left Parenthesis "("
MichaelW
Posts: 3500
Joined: May 16, 2006 22:34
Location: USA

Post by MichaelW »

For GoRC you should be able to specify a double quote as \42 or \x22.

http://www.jorgon.freeserve.co.uk/Resource.htm#string
gedumer
Posts: 129
Joined: Sep 15, 2005 16:52

Post by gedumer »

Thanks MW,

This is more of a problem with fbEdit rather than GoRc. I realize I can use \42, etc., but you can also use "" but not in fbEdit. That was my original point .
Post Reply