Page 1 of 1

Datagrid does not make new line

Posted: Sat Dec 03, 2016 12:03 pm
by mrcoollion
I am trying to build a chat screen with a datagrid.
The problem is that now I managed to get the the chat line setup right (chat type: text and file) it does not make a new line for each new chatline I simulate.
This did work in earlier version but I am afraid that I accidentally removed something resulting in not generating new lines.

I hereby post a very rough version of the stack I am prototyping with.
(Only chat type text and file work, other options are work in progress.)

How to:
First 'Select MugShot' then select 'Fill Line With Data'
The From me and To me switch determines the direction and balloon colour of the chat.
Chat Type determines if it only a text chat or a file share with text chat.


Anybody know what goes wrong?

(ps. tips on how to do things easier/better are also welcome :) )

Re: Datagrid does not make new line

Posted: Sat Dec 03, 2016 3:21 pm
by Klaus
You are overwriting the whole datagrid every time!

Store the current DGDATA in a variable, then ADD a new key to that array
and finally set the DGDATA to the new array. Know what I mean?

Re: Datagrid does not make new line

Posted: Sat Dec 03, 2016 9:05 pm
by mrcoollion
Hi Klaus,

Thanks for the info. I know what you ment
After doing some tests and changing some code I now update the table with

Code: Select all

dispatch "AddData" to group "DataGridForm" with theDataB, linenbr
and it works as expected :D



Thanks,

Paul