Suggestion - AutoSize for InputPanel

Posted by: mike on 4 November 2019, 5:03 am EST

    • Post Options:
    • Link

    Posted 4 November 2019, 5:03 am EST

    InputPanels should really have that property. Would make it a lot easier especially when dealing with non-standard DPI and windows’ font size settings.

  • Posted 4 November 2019, 1:27 pm EST

    I see you have an AutoSize property that is hidden from Intellisense but you can’t set it to true and it doesn’t seem to be doing anything.

  • Posted 4 November 2019, 10:20 pm EST

    Hello,

    I have escalated the concern to the team (Internal Tacking ID: 404430). If found feasible, it will be added to the API in the future builds. I shall get back to you in case I receive any information.

    >>I see you have an AutoSize property that is hidden from Intellisense but you can’t set it to true and it doesn’t seem to be doing anything.

    Which class’ property are you referring to? Please elaborate on the same.

    Regards,

    Esha

  • Posted 5 November 2019, 4:34 am EST

    C1InputPanel class has an AutoSize property. It is Boolean public, but is hidden from Intellisense. Doesn’t do anything when set (reverts to false).

  • Posted 5 November 2019, 4:36 pm EST

    Oh, and as long as we’re on the topic: each Item inside a C1InputPanel has a Bounds property. Right after initialization, each item’s Bounds is zeroes. At some point, those Bounds get initialized to their proper values, but for the life of me I cannot figure out when that happens.

    That is, at what point during the form’s initialization or loading can I count on those Bounds values to be correct?

  • Posted 5 November 2019, 8:56 pm EST

    Hello,

    I could observe the Bounds getting randomly set. I am investigating on the same and will get back to you once it is done.

    Regards.

  • Posted 16 March 2020, 10:38 pm EST

    Hi Mike,

    We are happy to inform you that the issue has been fixed and the AutoSize property of C1InputPanel is working perfectly from the 2020V1 release. You are requested to upgrade your control to the latest version to use this property.

    Regards,

    Prabhat Sharma.

  • Posted 18 May 2020, 7:03 pm EST

    Hi Prabhat

    You mention the AutoSize property of the C1InputPanel is working perfectly in the 2020V1 release, but I believe I may have found an issue. If you set AutoSize to true, it does not appear to change size if you adjust the Items via code.

    For Example:

    1. add a bunch of items to the InputPanel
    2. set AutoSize to true

    3. add some items via code to the InputPanel

      stays the same size.

      I have found a way around this, by changing AutoSize to false in code after adding the items, and then changing AutoSize back to true code, which will change the size.

    Also, I seem to have found another issue where it does not work on initial load if adding the initial items through code not through the GUI, and you have to do the same trick of flicking on and off.

    Thanks

    James

  • Posted 20 May 2020, 3:25 pm EST

    Hi James,

    Thank you for the detailed explanation.

    I too can observe the issue with the AutoSize property when adding items via code. If this property is already set to True so after adding items via code it is not working as it should and we have to follow the workaround as suggested by you to make it work as expected.

    I have escalated this to the developers and will let you know once we get any updates on this from their end.

    [Internal Tracking ID: 436735]

    Regards,

    Prabhat Sharma.

  • Posted 8 August 2020, 2:48 pm EST

    Hi James,

    The issue has been fixed in the latest version of controls i.e. 2020V2.438. You can upgrade your controls using the latest ComponentOneControlPanel utility.

    https://www.grapecity.com/componentone/download

    Regards,

    Prabhat Sharma.

  • Posted 9 August 2020, 12:02 pm EST

    Hi Prabhat

    Thank you. I will upgrade to the new version over the next couple of weeks.

    Kind Regards

    James

Need extra support?

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

Learn More

Forum Channels