Print Page | Close Window

Shortcut key on Tab control Item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1472
Printed Date: 17 May 2024 at 1:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shortcut key on Tab control Item
Posted By: Jonathan
Subject: Shortcut key on Tab control Item
Date 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




Replies:
Posted By: Oleg
Date 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


Posted By: Boyd
Date 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?



Posted By: Jonathan
Date 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...



Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net