POLL: Resizer control |
Post Reply |
Author | ||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Posted: 18 April 2008 at 9:14am |
|
Hi, to all CJ users
There was a post about the help that comes with this control
I was wondering who uses the resizer control and is satisfied with it?
Could, the ones who are really satisfied, upload a sample form in which you use the resizer control? I would like to do the testing myself of course (you can say whatever you want, Showing is Knowing )
Thank you very much in advance
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
|
Do I understand you correct? You dont know how to work/use/handle the resizer-control? If yes, what exactly do you dont understand?
Should I upload some little samples here?
By the way: The resizer-control works "nearly" like the ".NET-Anchor"-principle!
(sorry 4 my bad english!)
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
Yes, please upload your (most beautiful-difficult-best) form with the resizer control. I'm really curious how you did it.
Thanks
|
||
younicke
Senior Member Joined: 11 March 2005 Status: Offline Points: 107 |
Post Options
Thanks(0)
|
|
me too.
right now im still using third party control for resizing my controls. that's why i also wanted to know how to best use this control. thanks! |
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
So you guys read the front page for the Resizer Control in the help and still don't understand?
One thing the Resizer allows you to do is to keep a control, like a button, docked to a specific location on a resizable form. For example, you want the button to stay centered vertically at the bottom of a form as it is resized. Or you might have some edit controls in a form. When resized you would like the edit control's width to be resized proportional to the new width of the form. |
||
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
|
The Resizer is realy simple to understand.
Because It is pure mathematics!
For Example:
If U need a full-resize, then set the H + W to 100%
If U need a half (one-to-one) resize, then set it to 50% AND dont forget to set the position-percent (the second one must have 50%)
Look at this sample...
*take notice to the 4 ListBoxes - they have a Width of 25% - because 100/4 = 25 !!!
The only thing I REALY MISS, is this feature: https://forum.codejock.com/forum_posts.asp?TID=10336
Because if U set any of your "child-controls" on a wrong position and U must change Ur layout some days after, U R in a "one way street"!
|
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
Well done, I was in the process of making a simple sample, you saved me the trouble of finishing it
We will change up the wording a little to try and make it easier to understand. |
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
Huh huh, riding a bicycle is just as easy, did you ever see a 1 year old child riding it
I happened to see your post about the not showing the properties in the PropertyPage of the resizerControl and you just uploaded a V12 sample, thanks a lot |
||
vbocanegra
Newbie Joined: 22 April 2008 Location: Peru Status: Offline Points: 9 |
Post Options
Thanks(0)
|
|
Thanks by the example. Now i understand the way the use Resizer control. :)
Thanks a lot.
Sorry, i would want to explain it, but my english is so poor. Someone speak spanish?
|
||
Victor Bocanegra Arias
Barreda Moller Lima, Peru |
||
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
|
Hä???
It is a V12 sample because not showing the properties in the PropertyPage of the resizerControl v11 (!!!) and not inverse!
And by the way: You can switch it from v12 to v11! Why you dont do that?
|
||
Mr.Den
Groupie Joined: 26 August 2007 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
|
Aye, providing a sample using beta controls does not make much sense.
|
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
|
SuperMario, U was a little second faster then me! ;-)
I want upload exactly the same thing at the second! :-)
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
Thanks for the samples you guys uploaded. I will take a closer look at it and if there are issues you will be informed.
I will be back
|
||
Mr.Den
Groupie Joined: 26 August 2007 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
|
Agreed, thank you as well
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi, I am back The first time a used the control I thought: this is a control that was developed on a monday morning But now I see it more clearly and I have to say it's not that bad. You have to keep some things in mind to have a proper resize. 1. When a control is added to the ResizerControl the position and size of the control (in IDE) will be used to position/resize the control during runtime. The settings X,Y,W,H are percentages of position and size of the control added to the ResizerControl propertylist. So you have to position the control the way you want it in the resizer (IDE). If you want the control full sized you have to set size to the size of the ResizerControl (IDE). From now on these values (size and position) will be used to calculate the resizing.
2. When you want to prevent the control to be resized less then a certain width or height you must use Enable Horizontal/Vertical Scroll. The control (listbox,textbox,button etc.) itself prevents resizing to 0 or a negative number. If you don't use the Enable Horizontal/Vertical Scroll the ResizeControl will keep resizing its contents and all controls (width or height) in it will be at least 1 pixel / 15 twips. When resizing the ResizerControl (width or height) the Resizer will calculate the controls size/position from that point on. Issues: 1. When adding a FileListBox, DirListBox or List control (only MS Listbox) to the resizer, the controls don't resize in a proper way, only the width responds well but the height seems to be a problem. The control get smaller every time until the height is just the minimum height of the control.
3. If a control is added to the resizercontrol during runtime (AddControl method) the resizercontrol doesn't refresh the actual size / position Negativ about the control:
1. Its a lot of work to get the position and size right when adding a lot of controls to it. Most of the time I was "struggling" to get the postion and size right. Better to position and size the controls in code.
2. The property dialog is not very functional when adding the controls to the resizer. Way too much switching between the controls. Better to add the control to the resizer in code OR have a complete list of the added controls with the values (New feature in the properties dialog)
3. There's no method to Remove the controls from the resizer. Example: Adding two listboxes to resizer and afterwards one of the listboxes must be removed. The other listbox must be resized to available area. This isn't possible, that's why we need a method to remove the control from the resizer.
4. When reordering the controls inside the resizer, there should be a property to set the resizing to false. Annoying when the controls resize automatically
If something is not correct and have to be corrected just reply with the corrections and I will delete my reply and if you guys will do the same we will have just 1 reply with explanations / issues, OK?
To see the control in action I have a sample project
|
||
dev_robert
Newbie Joined: 29 June 2008 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
|
Hi Aaron,
you are absolutly right: the resizer control isn't that bad but it still has the quality of a early monday morning hack.
Why?
1. From time to time (depending what type of control you added) it crashes the whole VB6 IDE in design mode.
2. I use resizer in more complex forms and serveral times my IDE crashes when I try to debug code in a FORM_LOAD event.
3. If you added some controls in design mode and use autosize = true and then make only a very minor resize to your form, the whole positions of the added controls get corrupted. Very very nasty and you can start your design work again!
But, on the positive side: it makes resizing and and size limitation convienient for VB6 users!
I still hope for new non-monday morning version !
Regards,
DEV_ROBERT
Currently on V12
|
||
scottmcd9999
Newbie Joined: 30 November 2006 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
|
|
It works well enough for my simple needs, once I figured out the whole Size and Position percentages. I too have had the issue where trying to remove a control crashed the IDE; haven't yet had any crashes in runtime but I'm still in the very first stages of development.
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
And again we need a response of the support team about this. I asked about this in the IssueTracker, no response at all
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
|
Absolutly !
Yesterday i've added more than 38 controls on a resizer (my app main form). "What a beautiful form !"... Just forgot this issue and resize my form in ide... I'm always working on it to repair...
Note that after this, when you replace your controls in right positions (without deleted them) it works, even if you resize the form in the ide...
Same issue for me. VB6 Crash when removing some controls from the resizer properties. For information, i'm using resizer since many month and, for me, no crash in runtime.
Great control, but not easy to understand !
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi @Lodep59
If they just added one property (see my reply somewhere in this post) it would all be easier and not having to worry about such a thing . It could be a great control but they have to add some extra functionality (see my reply again )
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
SuperMario,
Is this the only response we get on this post? We expect more then this. I posted this in the issuetracker (which I don't use anymore) as well and again no response from CodeJock
Thanks
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |