SSTAB:Problem with creating tabs at runtime 
Author Message
 SSTAB:Problem with creating tabs at runtime

I am using SSTab. I am setting the No of tabs at runtime depending on data.
In the program I am making each tab current (by setting the .TAB property 0
to no of tabs). However it is not happening!

After I set the tab value in the Form_Load, I check it and it still shows 0
(the value set in property window). In fact if I change the tab value in
the property window, that is the value that remains and doesn't change in
the program until Form_Load is completed.

When tabs are created at design time there is no problem.

Any workarounds? Any help will be appreciated.



Tue, 20 Jul 1999 03:00:00 GMT  
 SSTAB:Problem with creating tabs at runtime

On Fri, 31 Jan 1997 19:40:22 GMT, "Himanshu Sharma"

Quote:

>I am using SSTab. I am setting the No of tabs at runtime depending on data.
>In the program I am making each tab current (by setting the .TAB property 0
>to no of tabs). However it is not happening!

What do you mean by making eact tab current? Only one tab can be
current at a time.

Anyways, to add a tab just increase the .Tabs property, perhaps the
.TabsPerRow property too.

Quote:

>After I set the tab value in the Form_Load, I check it and it still shows 0
>(the value set in property window). In fact if I change the tab value in
>the property window, that is the value that remains and doesn't change in
>the program until Form_Load is completed.

>When tabs are created at design time there is no problem.

>Any workarounds? Any help will be appreciated.

A small example:

Private Sub Form_Initialize()
                 ^^^^^^^^^^
Dim tabno As Integer

   SSTab1.Tabs = 5 ' make 5 tabs
   SSTab1.TabsPerRow = 5

  'Set the caption of each tab.
   For tabno = 0 To SSTab1.Tabs - 1
      SSTab1.Tab = tabno
      SSTab1.Caption = "Dynamic Tab " & tabno
   Next tabno

End Sub

Regards
  Nicolai T?ll?se

-----
   They say I'm arrogant.
   But I know better!

Nicolai T?ll?se,




http:\\www.{*filter*}net.dk\users\nico



Wed, 21 Jul 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding Tabs at Runtime in SSTab Control

2. Adding a user control to a SSTab tab panel at runtime

3. Creating new tabs in SSTab at run time

4. Problems with SSTab Control (TabOrder, Changing Tabs, Hotkeys)

5. Tab Problem with RichText Box in SSTAB

6. vb4 sstab control problem adding new row of tabs

7. Problem with Tabbed Dialog Box SSTab in modal form

8. Tabbed Dialog control (SSTab) with no tabs?

9. SStab control tab click , activating tab

10. DragDrop from tab to tab in SSTab control?

11. SSTab Tab order Problem

12. sstab - move a frame on Tab x to Tab y at run time

 

 
Powered by phpBB® Forum Software