Posted 21 August 2016 - 01:04 AM
Hello guys,
I have following problem:
I want to create processes, where every process have his own Frame.
My idea is, that every process get mouse_xxxx events relative to his own Frame.
A Frame is a term object created by window.create.
My first idea was, to create a table, with 19 tables, containing 51 tables, pointing to the process (coroutine), which is on top and
the program looks up by every mouse_xxxx event, which process is meant and resume it with modified coordinates, relative to the Frame.
The problem is the performance:
I have following problem:
I want to create processes, where every process have his own Frame.
My idea is, that every process get mouse_xxxx events relative to his own Frame.
A Frame is a term object created by window.create.
My first idea was, to create a table, with 19 tables, containing 51 tables, pointing to the process (coroutine), which is on top and
the program looks up by every mouse_xxxx event, which process is meant and resume it with modified coordinates, relative to the Frame.
The problem is the performance:
- Every time, when a click event was fired, the program has to iterate through 2 big tables: first through the lines, and then through the line.
- Every time, when a Frame was moved, the program has to move the process to his correct position in the screen table.
- Every time, after a Frame was moved, the program has to point the old pointers to the new process under the old Frame.
Edited on 20 August 2016 - 11:07 PM