Datagrid clicking problem

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, asayd

Datagrid clicking problem

Postby 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?

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

Re: Datagrid clicking problem

Postby zaxos » Mon Jul 13, 2015 4:09 pm

Code: Select all
on mouseUp
if the short name of the mouseControl is not "dgScrollbar" then
YourCode
end if
end mouseUp
Knowledge is ment to be shared.
zaxos
 
Posts: 207
Joined: Thu May 23, 2013 11:15 pm
Location: Greece


Return to LiveCode University

Who is online

Users browsing this forum: No registered users and 1 guest