06-27-2002, 05:41 PM
I've been using Delphi for little over two years. Just recently I started a VB project. The issue I have is getting controls to resize and keep the same distance from the right side of the form when resizing the form. I started out doing the math and setting the left property, but to do that for all the controls I'm going to need is a little insane. Has anybody come up with a solution or a third party control that handles this automatically? The TPictureBox Align is the closest thing I have found in VB that I have been used to working with in Delphi. Any help would be great.
06-27-2002, 05:56 PM
I prefer using the elastic control in vsOCX from videosoft. I think it goes by a new name, SizerOne since VideoSoft merged with APEX to form ComponentOne. Check out www.componentone.com. They should have some free demo downloads....
06-28-2002, 03:41 PM
I couldn't find a demo for it, let alone the website. I did find THBResize, it seems to be working quite well. I have another problem.
I have a SSTab with 3 tabs. If I maximize the application on Tab 1 everything works fine. While maximized I click on the button that changes the SSTab to Tab 2. Everything is fine until I restore the application size. Then Tab 1 is displayed. It won't go away. I click on the button for Tab 1 no change, I click on the button for Tab 2, no change Tab 1 is still visible. Is there some kind of repaint
event I'm missing.
06-28-2002, 03:47 PM
Well, here is the exact link to download a demo of sizerone:
just in case you'd like to try it....
As for the SSTab, maybe somebody else can help because I don't use the SSTab....I use, well, the tab control that comes with vsOCX (ie. SizerOne)....
I'll take a quick look at it though...
06-28-2002, 03:49 PM
OK....I don't get that behaviour you describe....are you modifying the tab control in code? Like maybe the size, or position or something?
06-28-2002, 04:09 PM
I have a frame with Option Buttons representing the different tab pages. The OnClick events are SSTab.Tab = 0, SSTab.Tab = 1, SSTab.Tab = 2 respectively.
I popped the tabs on the SSTab back out an tried them directly, same thing.
It looks the first tab page is being repaitned last, on top of the others.
06-28-2002, 05:03 PM
I started a new project. I added the "Microsoft Tabbed Dialog Control 6.0 (SP5)". I put one on my form. I added 3 option buttons in a control array. I added the following code to the option buttons.
Private Sub Option1_Click(Index As Integer)
SSTab1.Tab = Index
When I run the program, I can switch tabs normally or with the option buttons. When I maximize, it still works. When I go back to normal, it still works.
Either you are doing something else, or your system is messed up somehow.
06-29-2002, 12:46 PM
I found the problem. One of the resizing controls I was testing was causing the funky behavior. Following that I grabbed the SizerOne demo. Nice, that is more of what I'm use to. The one thing that frustates me is the general functionality of resize controls to resize everything. I just want to resize grids, tabs, and the Form. Hopefully SizerOne will work out. A tad on the pricy side though. Hopefully that won't be an issue in deciding if we go with it or not. Thanks for you help. I might need some more in the future as I continue to work this issue out.