K
Keith
I'm writing an application that is somewhat similar to Visual Studios
GUI Designer.
Now my problem lies in that sometimes when there is a large number of
forms read in from file, that there seems to be a serious lag in
painting the controls. This doesn't always happen, but once the lag
happens it won't happen again when the file is loaded. It seems to be
some delay in loading the controls.
Now most of the controls are .NET drawn (although a few are owner
drawn).
The application uses a treeview to show all the different controls,
dialogs, etc. The code to show the controls is done in the AfterExpand
( ) and AfterSelect ( ) event functions. Now there is a fair bit of
code in these functions, but there doesn't seem to be any other way to
cut them down, and make them more efficent.
I have been thinking about perhaps threading the UI code that appears
in these function as it seems to cause a bit of lag. However I'm
making absolutely no progress at all, does anyone have any ideas on how
to progress? It's really starting to do my head in.
Thanks in advance,
Keith
GUI Designer.
Now my problem lies in that sometimes when there is a large number of
forms read in from file, that there seems to be a serious lag in
painting the controls. This doesn't always happen, but once the lag
happens it won't happen again when the file is loaded. It seems to be
some delay in loading the controls.
Now most of the controls are .NET drawn (although a few are owner
drawn).
The application uses a treeview to show all the different controls,
dialogs, etc. The code to show the controls is done in the AfterExpand
( ) and AfterSelect ( ) event functions. Now there is a fair bit of
code in these functions, but there doesn't seem to be any other way to
cut them down, and make them more efficent.
I have been thinking about perhaps threading the UI code that appears
in these function as it seems to cause a bit of lag. However I'm
making absolutely no progress at all, does anyone have any ideas on how
to progress? It's really starting to do my head in.
Thanks in advance,
Keith