Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Columns in TGrid in 2.0
Tue, Aug 25 2015 9:43 AMPermanent Link

Ronald

Hi,

TGrid used to have a property called Columns, where did it go? It always was a handy way to edit the columns.

Greetings,
Ronald
Tue, Aug 25 2015 12:14 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

I don't know the old version, but EWB2 has a Columns property for sure.
I'm using it, eg :

clickedText:=Grid1.Columns.Column[1].Text

Is there something specific missing?
Tue, Aug 25 2015 12:21 PMPermanent Link

Ronald

Yes, you are right, but that is not what I mean. In 1.0 you could edit the
columns in the editor (designtime).

"squiffy" schreef in bericht
news:DD563423-4EFB-465F-AB8E-BA5B047EF4D2@news.elevatesoft.com...

I don't know the old version, but EWB2 has a Columns property for sure.
I'm using it, eg :

clickedText:=Grid1.Columns.Column[1].Text

Is there something specific missing?
Tue, Aug 25 2015 12:24 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Ah sorry. Misunderstood.

But if you click the + in the designer on the blank grid it adds a column, then that can be selected by clicking it and the properties edited in the properties window.

If that's also not what you meant, then I shall bow out gracefully Smile
Tue, Aug 25 2015 2:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< TGrid used to have a property called Columns, where did it go? It always was a handy way to edit the columns.  >>

The columns aren't a collection anymore, but rather a set of controls in their own right.  In EWB 2, most nested controls like this are selectable in the designer and don't require the collection editor anymore.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Aug 25 2015 3:42 PMPermanent Link

Ronald

I understand why it was more logical to make separate controls for the
columns, but it will take some time to get used to it, the collection had
many advantages for instance in selecting the fields.


"Tim Young [Elevate Software]"  schreef in bericht
news:DC54EDF7-EAD5-4A95-945D-CB3B4E258226@news.elevatesoft.com...

Ronald,

<< TGrid used to have a property called Columns, where did it go? It always
was a handy way to edit the columns.  >>

The columns aren't a collection anymore, but rather a set of controls in
their own right.  In EWB 2, most nested controls like this are selectable in
the designer and don't require the collection editor anymore.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Aug 26 2015 1:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I understand why it was more logical to make separate controls for the columns, but it will take some time to get used to it, the collection had many advantages for instance in selecting the fields. >>

I'm going to be making some improvements to keyboard selection in the form designer, most notably being able to use the arrow keys to move from one control to the next in layout order, as well as being able to select multiple controls by doing the same with the shift key down.

Tim Young
Elevate Software
www.elevatesoft.com
Image