473,413 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

What does the & (ampersand) inside the string do?

In the wxruby samples there is a file called dialogs.rb.

When setting up the menu on the windows a bunch of lines of the form

file_menu_append (DIALOGS_CHOOSE_COLOR, "&Choose colour")

exist. What does the ampersand inside the string do?

Ann
May 7 '11 #1
4 2176
Rabbit
12,516 Expert Mod 8TB
Probably To allow for keyboard shortcuts.
May 7 '11 #2
Thanks for your quick response.

In the line
Expand|Select|Wrap|Line Numbers
  1. file_menu.append(DIALOGS_CHOOSE_COLOUR, "&Choose colour")
I tried alt c without success. Which keyboard shortcut would you guess.
cntrl c closed the window.

This line is from the dialogs.rb sample distributed with wxruby 1.9.2.
I could include the full code, but don't think it necessary since it executes well and I understand most of it.
May 7 '11 #3
Rabbit
12,516 Expert Mod 8TB
If it's adding it to the file menu, then the shortcut would be alt+f and then c.
May 8 '11 #4
Thank you. I now understand what is going on here.
May 8 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: petermichaux | last post by:
Hi, I'm trying the following code (ultimately I want a node with a URI like index.php?foo=1&bar) <?php $foo = new DomElement('foo','foo&bar'); ?>
0
by: Michael B. | last post by:
Any help would be appreciated: We have a Delphi-dll /w functions getting and returning strings e.g. function test1(aString: string):string:stdcall; We call from within .NET: string y; string...
1
by: KidLogik | last post by:
Hello! I am using std::stringstream && std::string to parse a text file -> std::ifstream in; std::string s; std::streamstring ss; int n; I grab each line like so -> std::getline(in,s);
6
by: Rich Wallace | last post by:
All, I receive an xml doc with an element which contains a &amp; in the data. I am attempting to insert the data into a SQL Server database and I want to convert the &amp; to a "&" character before I...
2
by: Eric Zechman via .NET 247 | last post by:
I have a project in which I get xml posted via a hidden form field (data=<xml></xml>). People are entering names like Bill & Sandy Smith. this is coming over as:...
6
by: Mike Moore | last post by:
I'm not very familiar with the web config file. I would like to use the timeout item in the session state for our connection string, but not use the stateconnection string and sqlconnectionstring...
6
by: brian_harris | last post by:
I have a function that passes a string class pointer to a function, this function is then suppose to fill it and the outer function uses it. But I believe that I am running into problem due to...
2
by: ivapp | last post by:
hi, i am using language:c++ platform:linux I am new to c++. Can u please guide me by giving the meaning of string&. if we give string& replaceLastStar(string& s ) here string& S means.
1
by: abhi sin | last post by:
I have an XML entry, inside XML entry i am inserting a hyper link containing &, however when I compile the XML file, my application is not being able to correctly identify the & sign in hyper link....
2
by: ismailc | last post by:
Good day, I need help. I have 2 problems, 1. I want to return the text within a string between : "New Description " - I want the value "1234" 2. I want to remove the "" from the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.