Jump to content

open a form that contains many components


Muhammad Idris

Recommended Posts

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

image.thumb.png.c1c5eec0e111de735ed7043c784ee6e2.png

image.thumb.png.b904444ad6bb457d173ed904feb8561b.png

image.thumb.png.72f4c663028ec6bf0caf1519cc4d32f5.png

image.thumb.png.f3a1da41d526679d9a15f906bba2a520.png

image.thumb.png.aded253ae86749592343139a95a1299e.png

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...