Hey Monks!
I'm writing a Gtk2 script and I'm trying to do something that might seem a little strange...
I know how to add mnemonic label to a button and allow that to be used to select that button. i.e.
"_Close" will have the Accelerator Key
combination of "Alt+C" to select that button. But is it possible to add a Accelerator Key-Combo (mnemonic) to a button which doesn't contain
a Label INSIDE the button..?
The reason I don't have the mnemonic Label inside the button is because I was trying to make everything in my script look fairly uniform. And in
my script I have a few different areas inside the "Window" that contain a Frame, and inside the frame is a HBox containing a Label and Entry. I have
about 4 different sections of the Window
(*populated using Gtk2::Table) that are like this, so in the new "Framed" area I have a Button instead
of a Entry, which opens a ColorSelectionDialog. And next to the Button is a Label, exactly like the ones containing a Label and Entry...
         
*FYI, the Button contains a DrawingArea set to the ColorSelection of the User.
So is it possible to add this mnemonic 'action' to a button that doesn't contain a Label inside it?
Or maybe even include a Label but somehow Hide it/prevent it from displaying..?
Any idea if something like this is possible?
Thanks in Advance,
Matt
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.