Datagrid clicking problem

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, asayd

Post Reply
Rob van der Sloot
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 49
Joined: Sat Apr 17, 2010 9:21 am

Datagrid clicking problem

Post by Rob van der Sloot » Mon Jul 13, 2015 3:58 pm

I have set up a nice working app. where I use quite a lot of datagrids as lists.
From these datagrids the user can select a record by clicking on it and then gets a screen with all details about that record.
If I set the clicking on 1 click (on mouseUp), I get a problem with the scrollbar.
Everytime I click on the scrollbar to scroll down, the datagrid automatically selects a record, sometimes even giving an error.
I can solve this by choosing "on mouseDoubleUp" in stead of "on mouseUp", but that I find very user unfriendly.
How can this problem be solved?

Rob van der Sloot

Posts: 207
Joined: Thu May 23, 2013 11:15 pm
Location: Greece

Re: Datagrid clicking problem

Post by zaxos » Mon Jul 13, 2015 4:09 pm

Code: Select all

on mouseUp
if the short name of the mouseControl is not "dgScrollbar" then
end if
end mouseUp
Knowledge is ment to be shared.

Post Reply

Return to “LiveCode University”