How to automate the VSFlex8 col header divider double click resize process

Posted by: tfmiltz on 16 September 2017, 8:12 am EST

  • Posted 16 September 2017, 8:12 am EST

    Greetings

    While ComponentOne DOES offer a resizer ? for VB6 ? I'm using a different resizer (L&Y) currently. When the VSFlex8 gets resized ?

    The font and everything enlarges etc as I wish, BUT, the cols do not resize on the VSFlex8 with current resizer control I use.

    So, if I double click on any flex col header divider ? the double arrows appear on mouseover, and the double click autosizes the col, as is the case with many MS apps as well (they probably use the componentOne Flex ! - in fact, if ONLY MS was on the game as well as ComponentOne the world would be far more stable if you ask me).



    Question is, this being a nuance and acceptable glitch with a resize control (being that it's another 3rd party control), I would like to cyclicly automate this col resize for col width on mouseup from a form resize event. I'll tag the resize event with a bool - and know on mouseup.

    But any ideas on how I can via code ? fire the double click event on a col DIVIDER? I can certainly rig a click event, or double click event on a flex, but I can only specify the col and row, NOT the space in between the col... This almost sounds philosophical - how do you fire a double click event on that which is between col headers ! heh.

    Anyway, any thoughts are welcome.

    To nutshell this ? Picture a flex with 5 cols, N rows. Autosize is set to true. Form loads, all is well, col titles(headers) are autoset width wise.

    User resizes form, because you have a resize control, the flex literally resizes- allowing for big fonts or whatnot, BUT - while the font size increases during the resize (if making larger) ? The col width titles now only partially show because the col width's didn't auto-resize - LIKELY some interprocess exchanges with the control that ComponentOne would not be aware of - understandably too -

    Tim Miltz

    Senior Senior something or another- St. Peter is going to say "Now, you DID skip 5 yrs of .net to jump right to XAML and Blend in 2008 right ? "



  • Posted 16 September 2017, 8:12 am EST

    In the Help look up AutoSize and

    AutoResize.

    AGP

    wrote in message news:203593@10.0.1.98...

    Greetings

    While ComponentOne DOES offer a resizer ? for VB6 ? I'm using a different resizer (L&Y) currently. When the VSFlex8 gets resized ?

    The font and everything enlarges etc as I wish, BUT, the cols do not resize on the VSFlex8 with current resizer control I use.

    So, if I double click on any flex col header divider ? the double arrows appear on mouseover, and the double click autosizes the col, as is the case with many MS apps as well (they probably use the componentOne Flex ! - in fact, if ONLY MS was on the game as well as ComponentOne the world would be far more stable if you ask me).



    Question is, this being a nuance and acceptable glitch with a resize control (being that it's another 3rd party control), I would like to cyclicly automate this col resize for col width on mouseup from a form resize event. I'll tag the resize event with a bool - and know on mouseup.

    But any ideas on how I can via code ? fire the double click event on a col DIVIDER? I can certainly rig a click event, or double click event on a flex, but I can only specify the col and row, NOT the space in between the col... This almost sounds philosophical - how do you fire a double click event on that which is between col headers ! heh.

    Anyway, any thoughts are welcome.

    To nutshell this ? Picture a flex with 5 cols, N rows. Autosize is set to true. Form loads, all is well, col titles(headers) are autoset width wise.

    User resizes form, because you have a resize control, the flex literally resizes- allowing for big fonts or whatnot, BUT - while the font size increases during the resize (if making larger) ? The col width titles now only partially show because the col width's didn't auto-resize - LIKELY some interprocess exchanges with the control that ComponentOne would not be aware of - understandably too -

    Tim Miltz

    Senior Senior something or another- St. Peter is going to say "Now, you DID skip 5 yrs of .net to jump right to XAML and Blend in 2008 right ? "





    http://helpcentral.componentone.com/cs/forums/p/74869/203593.aspx#203593



  • Posted 16 September 2017, 8:12 am EST

    oh, when I mentioned above that:

    To nutshell this ? Picture a flex with 5 cols, N rows. Autosize is set to true. Form loads, all is well, col titles(headers) are autoset width wise.

    I probably should have stated that AutoResize is also set to true.

    The problem is the Larcom and Young resizer does resize the flex as I want - it's that the flexgrid control doesn't work well with the L&Y resizer- and where the col sizes were automatically set on form load - post form resize, the cols do not autoresize, even with autoResize set to true.

    So, the only means I can get them to re-expand is by double clicking on the borders when the double arrow shows up - but I can't specify this so far to simulate a double click on the border.



    Thoughts ?

    Tim



  • Posted 16 September 2017, 8:12 am EST

    I also got that backwards, AutoSizeMode is set to Row and col

    AutoResize is set to True

    sry about that.



    Still doesn't update col width on form resize with the L&Y resizer.





  • Posted 16 September 2017, 8:12 am EST

    so look at the resize event and do it via

    code.

    AGP

    wrote in message news:203603@10.0.1.98...

    I also got that backwards, AutoSizeMode is set to Row and col

    AutoResize is set to True

    sry about that.



    Still doesn't update col width on form resize with the L&Y resizer.







    http://helpcentral.componentone.com/cs/forums/p/74869/203603.aspx#203603



  • Posted 16 September 2017, 8:12 am EST

    Seems it does need to be reset in resize event.

    Looks to solve the problem.

    Somehow I figured Auto might mean - for the life of the control instance, guess it just means first time.

    Thanks though, wouldn't have thought I'd have to reset autoSize(col_here) each form resize again.



    Worked though.

  • Posted 28 March 2018, 5:28 pm EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels