Recent

Author Topic: Don't cringe, It's just a question?  (Read 2437 times)

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Don't cringe, It's just a question?
« on: January 18, 2019, 07:40:06 am »
The fixed row at the top I know how to place titles into.

It's the fixed column on the left I can't figure out how to populate with data. I'm thinking there must be a way but can't find it.
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

HeavyUser

  • Sr. Member
  • ****
  • Posts: 397
Re: Don't cringe, It's just a question?
« Reply #1 on: January 18, 2019, 07:56:35 am »
The fixed row at the top I know how to place titles into.

It's the fixed column on the left I can't figure out how to populate with data. I'm thinking there must be a way but can't find it.
that's not a question its a riddle. You failed to provide the base framework of interpretation, ee fixed row and column of what? 

If that is for a TstringGrid control then all the data can be set using the cell property of the grid.
Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender :TObject);
  2. begin
  3.   StringGrid1.Cells[0,0]:='0,0';
  4.   StringGrid1.Cells[0,1]:='0,1';
  5.   StringGrid1.Cells[1,0]:='1,0';
  6.   StringGrid1.Cells[1,1]:='1,1';
  7. end;                
  8.  
attached is the image of the result of the code above.

Keep in mind that TStringgrid has 2 different way to define columns which are incompatible with each other you should never mix them.
The code above tested and works with the colcount and rowcount properties only not the columns properties.
« Last Edit: January 18, 2019, 08:04:49 am by HeavyUser »

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Don't cringe, It's just a question?
« Reply #2 on: January 18, 2019, 06:29:48 pm »
@HeavyUser

Your right I didn't provide a clearly defined question and I should have.

Yes, it is for a TstringGrid.

"Keep in mind that TStringgrid has 2 different way to define columns which are incompatible with each other you should never mix them."

This is the part that is very confusing and due to the documentation it is difficult to determine, or at least for me. I actually copied down an example from this site put it in a demo program and got a compiler error. And I think that's what was wrong.

Thanks



 
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Don't cringe, It's just a question?
« Reply #3 on: January 18, 2019, 08:13:39 pm »
You should ask this question these questions in Programming->LCL.

EDITED.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

creaothceann

  • Full Member
  • ***
  • Posts: 117
Re: Don't cringe, It's just a question?
« Reply #4 on: January 19, 2019, 12:25:30 pm »
Also, your thread titles don't make any sense.

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Don't cringe, It's just a question?
« Reply #5 on: January 19, 2019, 02:50:12 pm »
Also, your thread titles don't make any sense.

Well I'm am sorry my thread titles don't meet your standards. You don't seem to be very happy with my post. Are you suggesting that I quit posting or try to meet some esoteric standard?

You know I looked at the "Don't cringe, It's just a question?" That what it was" "A Question."

No code invoked, no getting a strange error. Just a question.

 
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Don't cringe, It's just a question?
« Reply #6 on: January 19, 2019, 07:14:18 pm »
Don't worry about then, they most likely didn't have their corn flakes this morning... !

 Most of your questions are based on the LCL( GUI) code, you can get much larger audience
if you were in the Programming/General or LCL room.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018