Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Bug on XE6 StringGrid event. How to fix?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Jul 17, 2014 3:20 AM Last Post By: giancarlo alban...
giancarlo alban...

Posts: 54
Registered: 12/15/02
Bug on XE6 StringGrid event. How to fix?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 7, 2014 8:57 AM
I have a StringGrid composed of 2 columns.
I added a protection to trigger a function only of cells valorised.

This code:
procedure TFrmMain.StringGrid1Click(Sender: TObject);
begin
  if(StringGrid1.ColumnIndex > 1) and (StringGrid1.Cells[StringGrid1.ColumnIndex, StringGrid1.Selected] <> '0') then begin
....
  end;
end;

On win32 works fine, but not on iPhone and Android.

When I click on the column 2,
on Win32, StringGrid1.ColumnIndex is 2,
while on Android is 0

If I click a second time,
then even on Android,
StringGrid1.ColumnIndex worth 2

How can I fix this bug?
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Bug on XE6 StringGrid event. How to fix?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 9, 2014 6:19 AM   in response to: giancarlo alban... in response to: giancarlo alban...
Is the value being set after the event you are checking for it in on Android or does the value not change at all? Is there a OnMouseUp you can check for the value in?
giancarlo alban...

Posts: 54
Registered: 12/15/02
Re: Bug on XE6 StringGrid event. How to fix?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 17, 2014 3:20 AM   in response to: Eli M in response to: Eli M
The problem persists, even on mouseUp
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02