Drawing huge Views
-
Hi everybody :) in my application i open a view to display the "products information" In this view i have a TabControl within 3 Views. Each of these Views has more than 100 controls (labels with textboxes) So over 350 controls totally. If i open this window i freeze the Desktop-Screen and at the last execution point of my code, i release the Screen and redraw. I measured the elapsed time for all the work to show this window. It takes 0,3 seconds. If i remove all controls from the views, i get a time less than 0,1 seconds. Is there a possibility to speed up the traitment ( < 0,3seconds ) If not, why does it take exactly so long? Big thanks for any information. :thumbsup::)
-
Hi everybody :) in my application i open a view to display the "products information" In this view i have a TabControl within 3 Views. Each of these Views has more than 100 controls (labels with textboxes) So over 350 controls totally. If i open this window i freeze the Desktop-Screen and at the last execution point of my code, i release the Screen and redraw. I measured the elapsed time for all the work to show this window. It takes 0,3 seconds. If i remove all controls from the views, i get a time less than 0,1 seconds. Is there a possibility to speed up the traitment ( < 0,3seconds ) If not, why does it take exactly so long? Big thanks for any information. :thumbsup::)
You could try to put the 100 controls into a dialog and add the dialog into the view instead of the controls.
«_Superman_»
-
You could try to put the 100 controls into a dialog and add the dialog into the view instead of the controls.
«_Superman_»
-
I dont exactly know what you mean. But i use a CFormView as View. There is a Ressource Dialog with the textboxes. So i create the view with the dialog ressource. Thanks for your help :)
I'm not sure if this will improve the speed, but what I'm saying is that, instead of placing the 100 odd controls in the form view directly, place them in a new dialog and then place this dialog in the form view as a child dialog. The child dialog will need its border set to none.
«_Superman_»