bizarre DG problem
revdev at pdslabs.net
Tue Oct 9 15:51:01 EDT 2018
My client just called me to report one of his customers' data grids in a
very weird state. I've never seen this before and thought I should ask
if anyone else has, and how to prevent it if possible.
macOS 10.13.x - High Sierra
LC 8.1.9 Community
This DG is automatically redefined regularly to display different sets
of columns for Orders data, Clients data, Purchases data, etc., and is
then loaded with data of that type. The redefinition/reloading happens
when the customer clicks a button for that type of data. This has worked
flawlessly for many years and I don't suspect it as the source of the
The DG is in a window that is not resizable. so it's rect is constant.
vScrollbar = true
hScrollbar = auto
Inside the customer's DG, grp "dgList" is horizontally out of alignment
with the hScroll of the DG. When the hScroll is 0, the left of grp
"dgList" should be the left of the DG, but instead it's left is near the
center of the DG. This prevents the display of all whole or partial
columns that are to the left of the group's left edge.
(realign the 'dgList' group with the hScroll of the DG)
set the hScroll of the DG to 0
set the left of grp "dgList" of DG to the left of the DG
refresh the DG
I'm trying to understand what caused it so I can prevent it in the future.
Any ideas are welcome.
More information about the use-livecode