Jump to content


ag74

Member Since 04 Nov 2013
Offline Last Active Feb 24 2015 12:14 PM
-----

Topics I've Started

Hiding rows make TNextGrid to display a scroll bar

12 December 2013 - 11:35 AM

Hello,

I'm using a TNextGrid to display data, see attached screenshot 'Untitled.jpg'.
The user can hide some rows according to a filter's settings, see attached screenshot 'Untitled2.jpg'.

As you can see on 'Untitled.jpg' all of the rows are visible and there is no vertical scroll bar but when I hide some rows which means there are less visible rows a vertical scrollbar is shown 'untitled2.jpg'.

Could you please tell me how to fix this issue ?

Thanks.

TNxTreeColumn: Display an icon next to the caption

04 December 2013 - 12:11 PM

Hello,

I use a TNextGrid with a TNxTreeColumn to display items in a tree style and everything works fine but I can't display an icon next to the caption.
I set the NxTreeColumn.Images property to an existing TImageList but I don't know how to specify which image index each cells are associated to.
The NextGrid draws a white rectangle instead of the icon, as when ImageIndex = -1.

I tried to set the image index using Cell[ Col ][ Row ]->AsInterger = 1 but it replaces the caption with the string "1".

Could you please tell me how to display an icon next to the caption of a TNxTreeColumn.

Browse children of a node

14 November 2013 - 04:44 PM

Hello,

I use a TNextInspector to display project's properties that user can edit.
Here is how it looks like:

Group
-> SubGroup
-> Property #1
-> Property #2
-> Property #3

I would like to parse each property in the SubGroup node. So I tried this.

for( i = 0; i < tSbuGroup->ItemCount; i++ )
{
tSbuGroup->Item[ i ]
}

But ItemCount is greater than the real number of children contained in SubGroup so I tried tSbuGroup->Items->Count but it is equal to ItemCount.

How can I know how many children are present in a group and how can I access them ?

Thanks.
Alex.

TNxButtonColumn buttons don't look like a button but a simple blue rectangle

04 November 2013 - 11:54 AM

Hello,

I'm new with the TNextGrid component and I would like to use it in slide mode. I'm working with C++ Builder XE3.
I added a TNxButtonColumn column to display a button but when I run the app the button looks like a simple blue rectangle (see the attached file).
If it possible to make it look like a real button ?

Here's my code.
void __fastcall TMainForm::Button1Click(TObject *Sender)
{
tTranslationGrid->AddRow(1);
tTranslationGrid->Cell[2][0]->AsString = "lll";
}

I also tried to affect the ObjectReference member to a TButton but it doesn't work.
tTranslationGrid->Cell[2][0]->ObjectReference = Button2;

How do I affect the onclick event of this button ?

Thanks for your help.