|
-
Sep 14th, 2005, 01:16 AM
#1
Thread Starter
Junior Member
Custom TabStrip with regular Buttons?
I am using the MS TabStrip control in the button view and I realized something tonight I never saw before...
You cannot change the colors!
It has to be that old ugly grey color :-\
So my question is sort of two part:
1) Anyone figured outa wait to paint the TabStrip control?
2) If not, does anyone know of a way to use regular VB buttons and have the one that is being clicked stay down until the next one is clicked like the TabStrip control does?
I imagine it would also need to get rid of the "focus rectangle" that is drawn on the buttons also.
I have seen #2 before somewhere. It seems like it has been a few years thought at least.
I tried searching the forums here before asking but am not quite sure of a good search query that would pull this info up!
Thanks for any ideas.
-
Sep 14th, 2005, 10:31 AM
#2
Re: Custom TabStrip with regular Buttons?
2) If not, does anyone know of a way to use regular VB buttons and have the one that is being clicked stay down until the next one is clicked like the TabStrip control does?
Use the Option Button control and set the Style property to Graphical.
I imagine it would also need to get rid of the "focus rectangle" that is drawn on the buttons also.
Move the focus from the option button to a control on the current tab.
-
Sep 14th, 2005, 01:42 PM
#3
New Member
Re: Custom TabStrip with regular Buttons?
I agree with using the Option Control and making it graphical, but you could skip the tab strip and use control arrays of Option buttons and frames.
Use the same amount of Options as Frames, making the frames all the same size and position...
VB Code:
Private Sub Option1_Click(Index As Integer)
Frame1(Index).ZOrder
End Sub
Then, the option button stays pressed and the current frame is on top.
-
Sep 14th, 2005, 02:02 PM
#4
Re: Custom TabStrip with regular Buttons?
Make your own tab strip control. It is very simple using a few pictures and a few picture boxes.
I posted a simple example here: http://www.vbforums.com/showthread.php?t=309279
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
|