Jump to content


Thrawn123

Member Since 04 Jun 2007
Offline Last Active Jun 06 2009 08:23 AM
-----

Posts I've Made

In Topic: Putting focus back on selected row?

07 November 2008 - 12:22 AM

QUOTE (littlebigfred @ Oct 27 2008, 02:09 PM) <{POST_SNAPBACK}>
Hello

After the user has double-clicked on a row in a NextGrid object, I display fields in a two-column grid in a modal form to let him make changes, and then go back to to the main form.

I'd like to display the original row selected, so that the user sees which row he selected before. This doesn't work:

CODE
procedure TForm1.Button2Click(Sender: TObject);
begin
  for i := 0 to NextGrid1.RowCount - 1 do begin
    if NextGrid1.Selected[i] then begin
        Form2.ShowModal;

        //Put focus back on selected row
        //Doesn't work NextGrid1.Selected[i] := True;

        Break;
    end;
  end;
end;


Thank you.



After doing the selection in code, I've found that I've had to do NextGrid1.Repaint;
What seems to be happening (in my case anyway) is that the row is getting selected in code, but not being shown as selected on screen until you force a repaint of the grid.
Hope that helps...

In Topic: delphi 2009 support

26 September 2008 - 08:01 PM

QUOTE (Boki (Berg) @ Sep 11 2008, 09:01 AM) <{POST_SNAPBACK}>
Hello Spongebob,

As soon I get copy of D2009 I will follow your instructions to compile NextSuite in it.

Best regards


Do you have any updates on Delphi 2009 support? I am anxious to use it, but I have a lot of projects using NextSuite (which I absolutely LOVE) so I haven't been able to use it. I am not trying to rush you, as I would prefer a solid working release, but am just curious if you have a time frame? Thank you in advance smile.gif

;)

In Topic: Disable grid selection on right click

25 September 2008 - 07:47 PM

QUOTE (Boki (Berg) @ Sep 25 2008, 07:20 AM) <{POST_SNAPBACK}>
Hello Thrawn,

Unfortunatelly unles using Bertrods quck fix there is no other way.

Durring time users more wanted having selection moved.

Best regards


I can use this fix for now: if (Button = mbRight) then Exit;

But are there plans to add this as an option? Maybe goDisableRightClickSelect

In Topic: delphi 2009 support

20 September 2008 - 03:18 AM

I am also waiting for Delphi 2009 support rolleyes.gif