Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSTab Problem 1

Status
Not open for further replies.

Rengarajan

Programmer
Oct 5, 2003
4
IN
Dear All,

I am new to ACCPAC SDK Development.

I have one problem with SSTab control.

That is, How to control the focus in the sstab control. I need to create a UI like, Setup->Option. If i selected the second tab, the focus should goto all the controls and from the last control, the focus should goto save button, after that it should go to close button..

any idea appricated.

Thanks in advnce.
Rengarajan


 
Are you developing a Macro or are you outside of the ACCPAC VBA environment?

Sounds like you are going from VB, if so then check your tab order on your controls. You can also add a .SetFocus line(s) in appropriate places in code. A focus and/or tabbing issue may have nothing to do with the ACCPAC SDK.

With the VB SSTab control (Microsoft Tabbed Dialog Control 6.0) the default behavior is that the current tab's controls are able to receive focus and work in tab order while the other tabs controls do not. When the last control on the tab loses focus the focus is sent to the next control in tab order that is not on the SSTab control.

zemp
 
What you need to do is check which control has the focus then change the tab. Also have the first control on the tab get control when you go to that tab.

Setting the control when the tab is chosen...
Private Sub SSTab_Click(PreviousTab As Integer)
Select Case SSTab.Tab
Case 0: txtCatSF.SetFocus
Case 1: flexVend.SetFocus
End Select

Setting the tab when the control is chosen....

Private Sub feCat_GotFocus()
SSTab.Tab = 0
End Sub

This will cause the cursor to move between tabs as the fiels are tabbed through.

Suzette
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top