Page 1 of 1
DataGrid Highlight Bar goes gray
Posted: Sat Jun 04, 2011 12:16 am
by townsend
Why does the Highligh Bar sometimes goes gray, like this:

- 106 highlight1.JPG (17.85 KiB) Viewed 5613 times
When it is usually a dark blue, like this:

- 106 highlight2.JPG (20.5 KiB) Viewed 5613 times
It works fine, either way, but if possible,
I'd like to keep this from happening.
Re: DataGrid Highlight Bar goes gray
Posted: Sat Jun 04, 2011 12:23 am
by jesse
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?
Re: DataGrid Highlight Bar goes gray
Posted: Sat Jun 04, 2011 12:47 am
by dglass
If that's the case, then it is the 'selection maintained, but control not active' highlight, rather than the 'control active' highlight.
Re: DataGrid Highlight Bar goes gray
Posted: Sat Jun 04, 2011 11:47 am
by Klaus
Yep, one is hilited and datagrid has focus,
the other one hilited but no focus on the datagrid.
Re: DataGrid Highlight Bar goes gray
Posted: Sat Jun 04, 2011 8:00 pm
by townsend
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!
Re: DataGrid Highlight Bar goes gray
Posted: Sun Jun 05, 2011 1:51 am
by jharris
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.
Re: DataGrid Highlight Bar goes gray
Posted: Tue Jun 07, 2011 8:02 pm
by townsend
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.