View previous topic :: View next topic |
Author |
Message |
keesp Guest
|
Posted: Mon Aug 15, 2005 7:58 am Post subject: Where has GetRowWidget gone to? |
|
|
Hi,
I have just installed the new 2.0 release of virtual tree, but the GetRowWidget() method seems to have been removed. Can you tell me how to retrieve the widget of a certain row in the new situation?
Thanks,
Kees |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Aug 15, 2005 10:56 am Post subject: |
|
|
With the addition of pinned columns there are now possibly two RowWidgets for each row (see the new section in the Help on Using Widgets) - one for the PinnedPanel and another for ScrollablePanel. The PanelWidget has a GetRowWidget method that you can access via the PinnedPanel or ScrollablePanel properties.
What are you doing that requires you to find the RowWidget? _________________ Infralution Support |
|
Back to top |
|
|
keesp Guest
|
Posted: Tue Aug 16, 2005 6:59 am Post subject: using row widget |
|
|
Hi,
Actually I am only using the row widget to get the cell widget of a column, in which I manage an icon
Kees |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Aug 16, 2005 9:13 am Post subject: |
|
|
Ok - but what are you doing with the CellWidget?
I'm only asking because possibly some of the new features added in version 2 may help you achieve what you want in an easier way. _________________ Infralution Support |
|
Back to top |
|
|
keesp Guest
|
Posted: Wed Aug 17, 2005 7:07 am Post subject: Using cell widget |
|
|
I am using cell widget to manage an icon in a cell. When I select a row and press a certain key, an icon is displayed in a column, which designates the start of a select operation. In the future I intend to expand this with warining / info / error icons.
In a previous discussion I was told to use cellWidget.Icon for this kind of operation (which works fine)
Kees |
|
Back to top |
|
|
keesp Guest
|
Posted: Mon Aug 22, 2005 6:30 am Post subject: where has rowwidget gone to? |
|
|
Hi,
Am...is there an answer to my previous question...?
Thanks,
Kees |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Aug 22, 2005 6:44 am Post subject: |
|
|
To find the CellWidget you would need to check the appropriate PanelWidget that contains the column. Something like:
Code: |
CellWidget FindCellWidget(Row row, Column column)
{
RowWidget rowWidget = (column.Pinned) ?
PinnedPanel.GetRowWidget(row) : ScrollablePanel.GetRowWidget(row);
return (rowWidget == null) ? null : rowWidget.GetCellWidget(column);
}
|
_________________ Infralution Support |
|
Back to top |
|
|
keesp Guest
|
Posted: Tue Aug 23, 2005 6:45 am Post subject: |
|
|
Works fine!
Thanks! |
|
Back to top |
|
|
|