Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - SetFocus to TabPage
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetFocus to TabPage

 Post Reply Post Reply
Author
Message
RDONNAY View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2009
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote RDONNAY Quote  Post ReplyReply Direct Link To This Post Topic: SetFocus to TabPage
    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?



Back to Top
RDONNAY View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2009
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote RDONNAY Quote  Post ReplyReply Direct Link To This Post 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.

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.125 seconds.