DataGrid Highlight Bar goes gray

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

DataGrid Highlight Bar goes gray

Post by townsend » Sat Jun 04, 2011 12:16 am

Why does the Highligh Bar sometimes goes gray, like this:
106 highlight1.JPG
106 highlight1.JPG (17.85 KiB) Viewed 5618 times
When it is usually a dark blue, like this:
106 highlight2.JPG
106 highlight2.JPG (20.5 KiB) Viewed 5618 times
It works fine, either way, but if possible,
I'd like to keep this from happening.

jesse
Posts: 205
Joined: Thu Nov 11, 2010 6:32 pm

Re: DataGrid Highlight Bar goes gray

Post by jesse » Sat Jun 04, 2011 12:23 am

No answer to this but I do notice that only happens when you click outside the dg into say a text field.
Is that when it happens for you?
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: DataGrid Highlight Bar goes gray

Post by dglass » Sat Jun 04, 2011 12:47 am

If that's the case, then it is the 'selection maintained, but control not active' highlight, rather than the 'control active' highlight.

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: DataGrid Highlight Bar goes gray

Post by Klaus » Sat Jun 04, 2011 11:47 am

Yep, one is hilited and datagrid has focus,
the other one hilited but no focus on the datagrid.

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: DataGrid Highlight Bar goes gray

Post by townsend » Sat Jun 04, 2011 8:00 pm

The thing is, it's not just when the DataGrid doesn't have focus.
Clicking from line to line, the highlight bar moves fine. It just
stays gray. I think this is a minor bug in the DataGrid.

I had another problem with the DataGrid a while back. I tried
deleting it and creating a new DataGrid with the same name.
Problem solved. Seems here too, it has corrected the problem.

I did get this far. It happens after this line of code:

Code: Select all

dispatch deleteLIne to group "myGrid" with theline
This is from my v4.0 of my CRUD SQLite Example. And-- just in case
anyone wants to mess with this, I did make a backup before deleting
and recreating the DataGrid. I'll post it here, but it's not important.

Thanks four your input guys!
Attachments
CRUD_SQLite_example_v4.0.zip
Incomplete v4 w/ highlight bar bug
(11.28 KiB) Downloaded 261 times

jharris
Posts: 84
Joined: Wed Jan 26, 2011 3:28 am

Re: DataGrid Highlight Bar goes gray

Post by jharris » Sun Jun 05, 2011 1:51 am

townsend wrote: Clicking from line to line, the highlight bar moves fine. It just
stays gray. I think this is a minor bug in the DataGrid.
I have experienced this also. I am using Windows 7, don't know if it is a Windows OS thing only or not.
Operating System: macOS Monterey Version 12.5
LiveCode Version: 9.6.8

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: DataGrid Highlight Bar goes gray

Post by townsend » Tue Jun 07, 2011 8:02 pm

I think I have an good clue here. It looks like a minor bug.
I commented out this line of code, thinking maybe I didn't need it.

Code: Select all

set the dgfocus  of group myGrid to true
Then the persistent gray Highlight Bar problem returned.
So I removed the comment on that line of code. And the strange
thing was, the persistent gray Highlight Bar problem remained.

Of course, when I deleted the DataGrid and recreated a new one
by the same name, the problem was corrected.

Post Reply