|
| [WD19] Slow Response of Main Window |
| Iniciado por guest, 18,mar. 2015 15:36 - 8 respuestas |
| |
| | | |
|
| |
| Publicado el 18,marzo 2015 - 15:36 |
tl:dr - Slow response of Main window concerning redrawing and record switching.
I'm writing a program that opens to a Main window. It consists of a file menu, an icon toolbar, a sidebar, and various panes. The panes contain either dashboard controls or table/form combos.
When enlarging the Main window everything redraws very slowly. It's not smooth at all. Also when switching between the records of a table it takes a second or two for the linked form to catch up. The table is a memory table.
Any ideas or thoughts? I'm still looking through to try and find the culprit, but so far everything is clean. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 18,marzo 2015 - 16:46 |
Hi Curtis
one thing that you can try: - stop the window display (it's a window's property) - do your data change - restart the window display
This will greatly diminish the number of drawing operation, and therefore should help quite a bit
best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 18,marzo 2015 - 17:02 |
Hi Curtis,
If you want to see what's going on while your app is running, something I use from time-2-time is the Performance Profiler. It can be turned on/off at runtime in your code or you can use win/shift F10 & F11 to turn on/off when you need to. It dumps a file to your HDD which can be interrogated later.
Anyhow, take a look here - it might be useful? <a class="ExternalLink" rel="nofollow" target="_blank" href="http://help.windev.com/en-US/?2030035&name=Performance_profiler">http://help.windev.com/en-US/…</a> |
| |
| |
| | | |
|
| | |
| |
| Publicado el 18,marzo 2015 - 22:25 |
Yourwindow....DisplayEnabled = false
Run your code then
Yourwindow....DisplayEnabled = true
This will stop the flickering
DW |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,marzo 2015 - 15:24 |
Quote DW
Yourwindow....DisplayEnabled = false
Run your code then
Yourwindow....DisplayEnabled = true
This will stop the flickering
DW
On a simple resize? I have no code running on resize... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,marzo 2015 - 16:04 |
Maybe it's the 'row display code' in one of your tables?
Joris. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,marzo 2015 - 16:58 |
Hi Curtis,
Which version of WD do you have and which skin template are you using? (I ask because under WD17/18 using the iStyle template was causing in itself a lot of problems. The reason was because there was a png file completely transparent. Once the file was replaced with a clear gif (for example) the speed was back. It was doing so when using the "Tab Page" control.
Aside that, make sure that you do not have too many processes that are run on a size change. Like Joris said, if you have tables with "row display" code, for example, this can slow things up quite a lot.
As Darren suggested, run the performance profiler, it could show who is the culprit, if there are any.
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,marzo 2015 - 17:19 |
| Even running the code through in debug mode can sometimes show window events being triggered that you don't expect. In some cases these window events are repeatedly triggered. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,marzo 2015 - 19:47 |
Hi Curtis,
Quote Curtis
On a simple resize? I have no code running on resize...
yes... Exactly... In the window resize code, deactivate the display stop the timer then restart a timer for 1/10 of a second... In the timer code, deactivate the timer and activate the window display
This way, no display during resizing
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|