Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - TabControl and grouped OptionButtons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl and grouped OptionButtons

 Post Reply Post Reply
Author
Message
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: TabControl and grouped OptionButtons
    Posted: 10 January 2007 at 8:31am

I like to put several OptionButton groups on a TabControl/TabControlPage.
To build groups of OptionButtons, I have to place them on frames.

If I don't group my OptionButtons, then it looks fine, but it doesn't work correct.
If I group my OptionButtons by placing them on non-visible Frames, there's a color problem.
Left side: without frames. Right side with frames.

Other example from Windows 2k how I like to use TabControl with grouped OptionButtons:
 
-VB6 SP6 on Win2k SP4
-TabControl 10.4 with TabControlPages
-WinXP.Luna.cjstyles file from CodeJock samples

What am I doing wrong? How does this work?

Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 9:26am
Hello,
 
I think that is better to group options buttons in a picture box instead of a non visible frame (because a frame has not a hwnd property).
 
For me it solve the problem.
 
Hope it will help.
 
 
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 10:24am

Remark: The frames of my samples are not invisible, I just set the BorderStyle property to 0=none.

Even if I use a PictureBox, it doesn't look good. Look at the new screenshot.

SourceCode:
Private Sub Form_Load()
   TabControl1.Color = xtpTabColorWinXP

   SkinFramework1.ApplyWindow Me.hWnd
   SkinFramework1.ApplyOptions = SkinFramework1.ApplyOptions Or xtpSkinApplyMetrics
   SkinFramework1.LoadSkin App.Path & "\WinXP.Luna.cjstyles", "Normalblue.ini"
End Sub

Visible Frames are very important to group the controls on a TabControlPage. Look at the Windows 2000 folder options screenshot above.
And it doesen't makes a difference if the frame is visual or not. The OptionButtons on the Frame on the TabControlPage on the TabControl are not drawn correct!

In the sample SkinMDISample on frmProperties I looks like it works. But there's a cheat: The OptionButtons are drawn on the TabControlPage itself and not on the frame. With this method you can not have multiple independent OptionButton groups on one TabControlPage. 

Is there a solution?
Back to Top
tknijff View Drop Down
Newbie
Newbie
Avatar

Joined: 11 February 2005
Location: Netherlands
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote tknijff Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 11:54am
Try using Innovasys FramePlus ActiveX Control 1.0
 
 
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 2:46am
I don't want to install and deploy more controls as needed. And a question is, if SkinFramework can adapt a new styles (e.g. WinVista) on the Innovasys FramePlus control. I would prefer a solution with CodeJock controls.
 
Is this not possible with the CodeJock TabControl and SkinFramework?
If it's not possible now, will this it be possible in further releases?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.218 seconds.