|
-
Jun 13th, 2000, 05:51 AM
#1
Thread Starter
Addicted Member
Hello!
I wonder if there is a way to - at runtime - add a new tab to a SSTab control, load a new textbox into an control array of textboxes and but the new textbox on the new tab.
I've found out how to add a new tab, and how to load another textbox, but I can't get it on the tab.
Anyone got any ideas?
Please, post them here!
Pentax
Btw, why is it called SSTab? Has it got anything to do with the Nazi murders, or is it jus an unlucky coincidence?
Wilhelm Tunemyr,
Swede in London
[email protected]
"Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
Heinrich Heine (1797-1856)
Pravda vítezi!
(Truth prevails!)
-
Jun 13th, 2000, 05:57 AM
#2
No idea how to add a box to the new tab...but
SS stands for Sheridan Software, not a good title l agree
Maybe you could muck around with the tab array...interesting idea will post internally to our gurus and get back to you. Hmmmm Phantomd hasn't been bothered by me yet today.......
-
Jun 13th, 2000, 06:00 AM
#3
you must set it's Container property to whatever control you want to be the Container. In this case, it's the SSTab.
Try this code.
Code:
Set Text1.Container = SSTab1
Text1.Top = 0
Text1.Left = 0
-
Jun 13th, 2000, 06:15 AM
#4
Thread Starter
Addicted Member
Ah, so *that* is how you use container.
I was into it, but I never figured out what it was good for...
But, how do you specify what tab the textbox shall be on?
As it is now, it comes on the first tab, not on the active.
And btw, is there a way to make it start counting tabs on 1 instead of 0?
It's quite frustrating when VB sometimes starts on 0 and sometimes on 1.
Pentax
Wilhelm Tunemyr,
Swede in London
[email protected]
"Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
Heinrich Heine (1797-1856)
Pravda vítezi!
(Truth prevails!)
-
Jun 13th, 2000, 06:36 AM
#5
To place it on a specific Tab, you must set the ActiveTab to whatever Tab you want it on. For example sake, make a Form with a CommandButon, TextBox and an SSTab Control.
Put this code in the CommandButton
Code:
Private Sub Command1_Click()
SSTab1.Tab = 1
Set Text1.Container = SSTab1
Text1.Move 480, 480
SSTab1.Tab = 0
End Sub
What it does is set the ActiveTab to 1, Moves the TextBox on to there and sets it back to 0.
I'm not cure about controls, but if you place the statement Option Base 1 in a module, your Arrays will begin at 1 rather than 0.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|