Muhammad Idris Posted October 20, 2022 Share Posted October 20, 2022 why is it that when there are many components in the form such as memos, panels, etc., the form takes a long time to open Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 20, 2022 Share Posted October 20, 2022 38 minutes ago, Muhammad Idris said: why is it that when there are many components in the form such as memos, panels, etc., the form takes a long time to open Hello As now you are creating web apps, you need to consider your design. http://www.unigui.com/doc/online_help/index.html?application-design-considerati.htm Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 20, 2022 Share Posted October 20, 2022 37 minutes ago, Muhammad Idris said: why is it that when there are many components in the form such as memos, panels, etc., the form takes a long time to open Did You use of SuspendLayouts and ResumeLayouts ? https://stackoverflow.com/questions/25229639/suspendlayouts-resumelayouts-and-grid-columns Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 20, 2022 Share Posted October 20, 2022 Just now, irigsoft said: Did You use of SuspendLayouts and ResumeLayouts ? https://stackoverflow.com/questions/25229639/suspendlayouts-resumelayouts-and-grid-columns SuspendLayouts and ResumeLayouts will work if you are creating dynamically. In this case I believe the form is already there. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 20, 2022 Share Posted October 20, 2022 6 minutes ago, Hayri ASLAN said: SuspendLayouts and ResumeLayouts will work if you are creating dynamically. In this case I believe the form is already there. then, is it possible to not render non visible components and how ? If I hide more components in some tabs, how to speed up formShow? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 20, 2022 Share Posted October 20, 2022 17 minutes ago, irigsoft said: then, is it possible to not render non visible components and how ? If I hide more components in some tabs, how to speed up formShow? You should use pagecontrol and frames. You should load the frame onBeforeFirstActivate event of tabsheet. Quote Link to comment Share on other sites More sharing options...
Muhammad Idris Posted October 20, 2022 Author Share Posted October 20, 2022 what do SuspendLayouts and ResumeLayouts mean? 38 minutes ago, irigsoft said: Did You use of SuspendLayouts and ResumeLayouts ? https://stackoverflow.com/questions/25229639/suspendlayouts-resumelayouts-and-grid-columns Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 20, 2022 Share Posted October 20, 2022 1 hour ago, Muhammad Idris said: what do SuspendLayouts and ResumeLayouts mean? https://www.sencha.com/blog/performance-optimization-for-layout-runs/ https://docs.sencha.com/extjs/6.2.1/guides/core_concepts/layouts.html Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 20, 2022 Share Posted October 20, 2022 1 hour ago, Hayri ASLAN said: You should use pagecontrol and frames. You should load the frame onBeforeFirstActivate event of tabsheet. thanks, is any solution possible to this working principle 1. I have 100 components in one form and 10 of them are tuniPanel with components like uniDBGrid, uniButtons, uniLabels. 2. When the form is created, all components are created dynamically, but only 3 uniPanel with components in form are visible and the other components are not visible. How to reduce loading time, is it possible? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 20, 2022 Share Posted October 20, 2022 20 minutes ago, irigsoft said: thanks, is any solution possible to this working principle 1. I have 100 components in one form and 10 of them are tuniPanel with components like uniDBGrid, uniButtons, uniLabels. 2. When the form is created, all components are created dynamically, but only 3 uniPanel with components in form are visible and the other components are not visible. How to reduce loading time, is it possible? Hi Can you make a test case so I can work on it? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 20, 2022 Share Posted October 20, 2022 6 minutes ago, Hayri ASLAN said: Hi Can you make a test case so I can work on it? I am sorry, I can not. I use simple components : uniPanel, uniDBGrid, uniButton, uniBitBtn, uniLabel, uniScrollBox All data for components is saved in XML file. I read this file, create components, apply for every component settings from file, apply OnClick event on every component from file, show form (wsMaximized). Form.AligmentControl = uniAlignmentServer, some of panels (and components) are with align = alClient. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.