Four idiotic questions... :/

E

Eric

I have three various questions that right now smoke my brain... :/

1) Let's say you have a special style with a shortcut. You put that in a
menu. How do you get the shortcut to show a bit to the right (as in Edit,
Copy where Ctrl+C shows to the right)? Do you just press space 20 times and
type the shortcut name or what?

2) Forms: You put a field or label on a form. How do you toggle the font
between bold and regular?

3) Forms: You put a button on a form with Caption OK. You want the letter O
underlined so if you press O it is chosen. How?

4) Forms: Same OK button plus a Cancel button. You want them to react from
Esc or Enter.

Thanks!!

/e
 
J

Jezebel

Eric said:
I have three various questions that right now smoke my brain... :/

1) Let's say you have a special style with a shortcut. You put that in a
menu. How do you get the shortcut to show a bit to the right (as in Edit,
Copy where Ctrl+C shows to the right)? Do you just press space 20 times
and type the shortcut name or what?

Don't know.
2) Forms: You put a field or label on a form. How do you toggle the font
between bold and regular?

Not sure I understand the question. You can set the control's Font property,
eg Arial vs Arial Bold.

3) Forms: You put a button on a form with Caption OK. You want the letter
O underlined so if you press O it is chosen. How?

Enter the shortcut character as the Accelerator property. The first instance
of that character (if any) is underlined.
4) Forms: Same OK button plus a Cancel button. You want them to react from
Esc or Enter.

Set the Cancel and Default properties respectively.
 
E

Eric

3) Forms: You put a button on a form with Caption OK. You want the letter
Enter the shortcut character as the Accelerator property. The first
instance of that character (if any) is underlined.

Thanks, I must be stupid here, but if the Caption is OK then set the
property Accelerator to O? No?

/e
 
W

Word Heretic

G'day "Eric" <[email protected]>,

You would normally set its Default property to True so it fires on
Enter. Otherwise, yeah, you could set also set the O key to trigger
it.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Eric reckoned:
 
W

Word Heretic

G'day "Eric" <[email protected]>,

1) CommandBars("WhateverMenuName").Controls(n)....

2) textbox1.Font.Bold=True

3) discussed in previous post

4) default property = true is Enter, Cancel property = true = Esc


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Eric reckoned:
 
E

eric

Super! Many thanks!

/e
Word Heretic said:
G'day "Eric" <[email protected]>,

1) CommandBars("WhateverMenuName").Controls(n)....

2) textbox1.Font.Bold=True

3) discussed in previous post

4) default property = true is Enter, Cancel property = true = Esc


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Eric reckoned:
 
K

Klaus Linke

1) Let's say you have a special style with a shortcut. You put that in a
menu. How do you get the shortcut to show a bit to the right (as in Edit,
Copy where Ctrl+C shows to the right)? Do you just press space 20 times
and type the shortcut name or what?

You set the button's .ShortcutText property.

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top