Datagrid change the fixed row height

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Datagrid change the fixed row height

Post by JosepM » Mon Sep 22, 2014 2:58 pm

I'm experimenting something strange and I'm blocked. The datagrid change the fixed row height to 20 the first time.
I add rows to a datagrid and the text of the rows appear at the fixed row height of 20. If I delete or empty the datagrid then the news rows are show correct to 44. Attach screen capture to see the effect.

The code to add is:
dispatch "addLine" to group "dg_pedido" of this stack with tLinea
send "DGHiOS_DefineScroller" to group "dg_pedido" of card "pedidos" -- This line resizes the scroller to fit it to the datagrid size

The reset code is:
set the dgdata of control "dg_pedido" of card "pedidos" to empty
dispatch "RefreshList" to group "dg_pedido" of card "pedidos"

Any idea?
Captura de pantalla 2014-09-22 15.53.16.png

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”