Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Shortcut key on Tab control Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shortcut key on Tab control Item

 Post Reply Post Reply
Author
Message
Jonathan View Drop Down
Newbie
Newbie


Joined: 29 November 2004
Location: Australia
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jonathan Quote  Post ReplyReply Direct Link To This Post Topic: Shortcut key on Tab control Item
    Posted: 29 November 2004 at 1:16am

Hi,

I see no way of assigning a shortcut key to a tab control item.  The obvious way of doing it by setting the caption to "&Contacts" does not work as the ampersand is displayed.

Is this a bug?  If so please fix it ASAP.  If not please put it in ASAP!

Thanks

Jonathan

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2004 at 3:33am

You must add method manually:

In properties window set KeyPreview = True and

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

If (KeyCode = Asc("M")) And ((Shift And vbAltMask) > 0) Then
    TabControl(4).Selected = True
End If

...

End Sub

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2004 at 8:10am

If we have to manually implement the shorcut key combination, how will the user know which shortcut key to use when selecting a tab?  Without the ability to underline a character in the tab display (as is the Windows convention), the user will typically not know the key combination.

Could you consider implementing the ability to place an ampersand in the caption that indicates the shortcut character so that the programmer can provide hints about which shortcut key to press?

Back to Top
Jonathan View Drop Down
Newbie
Newbie


Joined: 29 November 2004
Location: Australia
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jonathan Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2004 at 8:47pm

I agree.  We can't do it manually since we can't display the shortcut key combo.  Realistically we shouldn't have to implement this manually anyway since most Tab controls support this functionality automatically.

When I was evaluating the control I didn't test this as I assumed it would be there.

It would be really great if this feature could be added...

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2004 at 1:36am

Ok, I see.

In next version we will add DrawTextNoPrefix property of TabPaintManager.

Thank you for suggestion.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.