Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread Bug In Grid
Wed, Apr 13 2016 2:31 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

If you set ShowLines to False no data gets displayed.

Tried it in a simple project with just a grid bound to a dataset and some data inserted.
With the lines, data shows. Without the lines the grid is blank.
Wed, Apr 13 2016 6:05 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 4/13/2016 2:31 PM, squiffy wrote:
> If you set ShowLines to False no data gets displayed.
>
> Tried it in a simple project with just a grid bound to a dataset and some data inserted.
> With the lines, data shows. Without the lines the grid is blank.

Not able to duplicate it here - seeing data even without lines
(Shwolines = false)

2.04 Build 1

Raul

Thu, Apr 14 2016 2:21 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

>> 2.04 Build 1

same build here, just rebooted everything and it still happens.

erm....

attached is my example project. I suppose it's possible I've messed up my installation of EWB somehow, but I can't see how.



Attachments: gridexample1.zip
Thu, Apr 14 2016 4:12 AMPermanent Link

Matthew Jones

squiffy wrote:

> I suppose it's possible I've messed up my installation of EWB
> somehow, but I can't see how.

Just tried a quick test here, and I too see it working okay. 2.04b1

The relevant code appears to be this:

WITHLINES_CLASS_NAME = 'WithLines';

function TGridTextCell.GetInterfaceClassName: String;
begin
 Result:=TGridTextCell.ClassName;
 if (not Assigned(TGridColumn(Owner).ParentGrid)) or
TGridColumn(Owner).ParentGrid.ShowLines then
    Result:=(Result+WITHLINES_CLASS_NAME);
end;

I assume that this means that there is an interface without the lines,
and that yours is broken somehow. Check it is in the original state
(change date?).

--

Matthew Jones
Thu, Apr 14 2016 4:54 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

They look the same to me.

This is mine :

function TGridTextCell.GetInterfaceClassName: String;
begin
  Result:=TGridTextCell.ClassName;
  if (not Assigned(TGridColumn(Owner).ParentGrid)) or TGridColumn(Owner).ParentGrid.ShowLines then
     Result:=(Result+WITHLINES_CLASS_NAME);
end;

compared to yours :

function TGridTextCell.GetInterfaceClassName: String;
begin
Result:=TGridTextCell.ClassName;
if (not Assigned(TGridColumn(Owner).ParentGrid)) or TGridColumn(Owner).ParentGrid.ShowLines then
   Result:=(Result+WITHLINES_CLASS_NAME);
end;

Might have to do a fresh install unless anyone has any other ideas?
Thu, Apr 14 2016 4:55 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Sorry,
that's not what I mean to post (the error wouldn't be there, that was a WIP post where i forgot to delete that code).
Thu, Apr 14 2016 5:28 AMPermanent Link

Matthew Jones

squiffy wrote:

> Sorry,
> that's not what I mean to post (the error wouldn't be there, that was
> a WIP post where i forgot to delete that code).


Indeed, it is the interface (.wbi file) that you need to be looking at.
That code tells it which to load.

--

Matthew Jones
Fri, Apr 15 2016 10:16 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Ok, a reinstall of EWB fixed this issue.
Fri, Apr 15 2016 10:27 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

>> Ok, a reinstall of EWB fixed this issue.

...and lost all my custom icons...

Note to self ....
Image