[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

some columns of stringgrid cant be seen because of the screen resolution

Asked by terlik in Delphi Programming

Hi,
If I can't see all the columns of the stringgrid because of the screen resolution, How can I move on the stringgrid columns, too see the other columns, without losing the focus on the stringgrid? I did something like the code below, but in that the focus on the grid is being lost.

Shortly, I want to scroll in the stringgrid, to the right by tab key, without losinf the focus of cursor.

Thanks for the answer,
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure StringGrid1KeyPress(Sender: TObject; var Key: Char);
begin
      if ((key = #9) or
        (key = #13)) then
    begin
      With Sender As TStringGrid Do
      begin
 
         if Col < (ColCount-1) Then
         begin
            Col := Col+1;
         end
         else
         begin
           Col := FixedCols;
 
         end;
      end;
      Key := #0;
    end;
end;
 
Related Solutions
Keywords: some columns of stringgrid cant be se…
 
Loading Advertisement...
 
[+][-]09/05/09 11:40 AM, ID: 25267276Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/09 03:06 PM, ID: 25267924Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/09 06:06 PM, ID: 25268451Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/06/09 06:14 AM, ID: 25269675Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/07/09 08:25 AM, ID: 25275661Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/30/09 07:49 AM, ID: 25459514Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/30/09 08:08 AM, ID: 25459716Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625