Author |
Topic: Numeric entry into a textbox (Read 2326 times) |
|
RNBW
Full Member
member is offline


Gender: 
Posts: 106
|
 |
Re: Numeric entry into a textbox
« Reply #27 on: May 25th, 2016, 8:44pm » |
|
on May 25th, 2016, 7:39pm, Richard Russell wrote:I'm afraid I don't know what you mean; I don't see anything unexpected. As you're outputting a large number of lines (one for every cell in the grid) every 300 milliseconds or so, the mainwin is pretty much constantly scrolling. There's no 'flashing' as such (here) but the scrolling means nothing stays still long enough to read! |
|
Perhaps flash was not the correct description. As I said, I reduced the number of textboxes to a 3 row x 4 col grid. This was printed several times in mainwin.
I thought with the for..next loop in the GET DATA section, it would print out the data from 12 textboxes, starting with cell 1/1 through to cell 3/4. It prints it out several times, which accounts for the scrolling.
Thanks for the code for printing out in grid form.
At the end of the day, on LBB given the choice of this method or creating a grid as previous postings some time ago, I will stick with the latter. It is easier to create and edit and does all that I could ask for. Once again, I thank you for your help with that.
With regards to LB, I shall post the code I produced on the LB site, and hopefully someone there will come up with a solution for LB.
Richard, as usual, you come up with the goods!
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Numeric entry into a textbox
« Reply #28 on: May 25th, 2016, 9:11pm » |
|
on May 25th, 2016, 8:44pm, RNBW wrote:| As I said, I reduced the number of textboxes to a 3 row x 4 col grid. This was printed several times in mainwin. |
|
I am still not really understanding. What difference did you expect reducing to "a 3 row x 4 col grid" to make? It's still outputting 12 lines every 300ms, that's more than 36 lines every second, which is far too fast for anybody to read and of course will mean it starts to scroll almost immediately!
Quote:| I thought with the for..next loop in the GET DATA section, it would print out the data from 12 textboxes, starting with cell 1/1 through to cell 3/4. It prints it out several times, which accounts for the scrolling. |
|
Again you say "it prints out several times" as if this was a surprise. Did you not mean to put the printing routine in your TIMER handler? Having done so of course it prints out "several times": it prints out every 300ms!
Quote:| hopefully someone there will come up with a solution for LB. |
|
But surely (until I modified it) your solution was for LB! I thought that was the whole point of you using the 'cundo' method of creating the boxes initially as separate windows.
Richard.
|
|
Logged
|
|
|
|
RNBW
Full Member
member is offline


Gender: 
Posts: 106
|
 |
Re: Numeric entry into a textbox
« Reply #29 on: May 25th, 2016, 9:44pm » |
|
I thought I had put the print routine outside the timer handler. So this is where I went wrong.
Your final solution is for LBB only. So there code I had produced up to then I shall post on LB, because I don't have time to take it any further.
As I said in my last post, I'll use the textbox grid system developed some weeks ago for LBB. It would be nice though if someone on LB could produce the relevant code to let Cundo's methods be used on LB. I don't know when I will be able to get back to it.
|
|
Logged
|
|
|
|
|