Thread

vb tabs (Sdk)

vb tabs // Sdk

1  |  

cozmo

Jan 27, 2002, 2:29am
I've decided to use tabs on my bot becuase its easier for this type of bot.
Lots of different settings and its easier then tons of buttons and windows.

So anyways....how do these work? I dont really knwo hwo to add things so
they onyl show up when you click the tab for them.


-Cozmo

grimble

Jan 27, 2002, 11:28am
Which tab control are you using? ... Tab Strip (Microsoft Tabbed Dialog
Control component) or SSTab (in the Common Controls-3 6.0 component - with
SP5 anyway)??


[View Quote]

grimble

Jan 27, 2002, 11:39am
Dammit! ... fingers are crap this morning ... As I was saying ...

If you use the Sheridan control (SSTab - I never liked the look of Sheridan
controls, but at least they work like you expect), then each tab is a
container in its own right and you can drop controls onto the respective
tabs at design time. With the Tab Strip (it appears that MS didn't quite
grasp the concept of RAD with this control), you'll need to put the controls
in frames (i.e. manually make one container per page) and write the code
under the tab click events to hide/show the correct frames. Its a total pain
and if you don't mind the look of the SSTab control not conforming to that
of the Microsoft controls, I would strongly suggest you use that as a first
attempt.

I got it woefully wrong in the previous post ... SSTab is in the Microsoft
Tabbed Dialog Control component, and Tab Strip is in Microsoft Windows
Common Controls 6.0.

Hope that's of some use ...

Grims


[View Quote]

kah

Jan 27, 2002, 12:19pm
you can make SSTab look normal I think, there's a setting for it.

KAH

[View Quote]

grimble

Jan 27, 2002, 12:36pm
You can change the bevel properties, but I still feel that its shouting "I
AM A SHERIDAN CONTROL" at me, so I go the longer route. Also, its just
another darned OCX to have to distribute with the app if you're going to do
so (one control in a component - great idea - NOT!), whereas I make use of
as much of a multi-control component as possible as a balance between
looks/functionality vs distribution factors. There is something about VB
applications that use the Sheridan controls that looks "very VB-esque" to me
.... like their original picture buttons which thankfully hav now been
replaced by an MS equivalent (far superior to the older Sheridan ones).
Nasty looking forms that tell everyone that I was too darned lazy to write
the thing in C++.

I went through a phase a little while back drawing my own controls for
things like tab strips, edit boxes and command buttons (ok, so in a few
cases I basically sub-classed the MS ones and painted over the device
context, but who knows ... shhh ... lol) - much more interesting looking
applications and a bundle of fun before I got bored with the extra work
(usually at the point of building property pages for them - Zzzzz) ;o).

Anyway ... the crux of the post was I never liked the fat Sheridan controls,
so I'm probably just set in my ways.

[View Quote]

cozmo

Jan 27, 2002, 3:52pm
well i know of both of those but those fat ugly lookign ones i didnt use. I
used the windows looking ones. If i have to put everything in a frame, i
dont know. Its going to get kind of screwed up with so many tabs and such.
Ill mess around with the other one and see if i can change the way it looks.
Thanks anyways....

[View Quote]

cozmo

Jan 27, 2002, 4:21pm
actually your right Kah thanks....theres another style that makes it look
like regular windows tabs :) never knew that

[View Quote]

cozmo

Jan 27, 2002, 4:36pm
but actually i dont like that way that looks. The back end is to the right
more and it just......looks bad.

[View Quote]

hal9000

Jan 27, 2002, 6:23pm
does anyone know how to use the TabStrip control, and have a separate form
for each tab?


[View Quote]

grimble

Jan 27, 2002, 7:03pm
Like I said, you use a frame as a container (i.e. build the "form" in a
frame) and show/hide the relavant frames on the tab click event.

Grims

[View Quote]

cozmo

Jan 27, 2002, 11:30pm
the SSTab is WAY easier....just change the style to look like regular tabs
and whatever you put in the tabs it stays there without any extra
coding.....it looks just the same if you keep one row of tabs

[View Quote]

swe

Jan 28, 2002, 11:53am
heh, where bout do i find the SSab thingy majiga?

SWE
I do what those who cant do what i can do, dont wanna do.
www.emptyco.com

[View Quote]

cozmo

Jan 28, 2002, 2:54pm
Project > Components > Microsoft Tabbed Diolog Control 6.0

it will appear as an icon with a little tab picture and its called SSTab

[View Quote]

swe

Jan 28, 2002, 4:46pm
thanx grumpy :p
[View Quote]

cozmo

Jan 28, 2002, 5:25pm
im not grumpy....

[View Quote]

hal9000

Jan 28, 2002, 9:53pm
like i said, how can you use a separate form for each tab?
i have 10+ tabs, with 50+ controls on each on, with frames thats 500+
controls, which is more than VB will allow you to have on 1 form, therefore
i want to have a separate form for each tab


[View Quote]

cozmo

Jan 28, 2002, 10:00pm
you cant have a seperate form for each tab. a tab is an object a form is
another whole window and you cant put a form inside of an object.

You could have forms appear when you click a tab i guess but thats just
about it. If you position it right and make it have no border that could
work.

[View Quote]

grimble

Jan 29, 2002, 5:23pm
Sorry hal9000, I was trying to convert what you wrote into a question that
sense to me (and I'm not trying to be bitchy by saying that). Cozmo
basically says it all - tabs are for managing controls on a single form. If
you want another form to be lauched from a click, then you're getting
nothing from using a tab strip control and may as well just use command
buttons.

Grims


[View Quote]

grimble

Jan 29, 2002, 5:26pm
He meant Bashful ;o)

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn