Print Page | Close Window

SetFocus to TabPage

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13879
Printed Date: 02 October 2024 at 12:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetFocus to TabPage
Posted By: RDONNAY
Subject: SetFocus to TabPage
Date Posted: 31 March 2009 at 2:49pm
How do I set focus to a tab control item?

I am using Xbase++ and have been successful at setting focus to CodeJock.CheckBox and CodeJock.Pushbutton objects using a wrapper function that calls the Windows SetFocus() API call.

I have not been successful, however, at setting focus to a tabpage when using CodeJock.TabControl.

I have tried the TabControlItem.handle and the TabControlPage.hwnd. Both of them cause the same affect. The tabs disappear and stop functioning.

Can you help with this?






Replies:
Posted By: RDONNAY
Date Posted: 31 March 2009 at 3:09pm
Nevermind. I solved the problem by using TabControl.selectedItem.

My brain suddenly started functioning after I had another espresso.




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