Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Where has GetRowWidget gone to?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
keesp
Guest





PostPosted: Mon Aug 15, 2005 7:58 am    Post subject: Where has GetRowWidget gone to? Reply with quote

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

PostPosted: Mon Aug 15, 2005 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
keesp
Guest





PostPosted: Tue Aug 16, 2005 6:59 am    Post subject: using row widget Reply with quote

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

PostPosted: Tue Aug 16, 2005 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
keesp
Guest





PostPosted: Wed Aug 17, 2005 7:07 am    Post subject: Using cell widget Reply with quote

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





PostPosted: Mon Aug 22, 2005 6:30 am    Post subject: where has rowwidget gone to? Reply with quote

Hi,

Am...is there an answer to my previous question...?

Thanks,

Kees
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Aug 22, 2005 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
keesp
Guest





PostPosted: Tue Aug 23, 2005 6:45 am    Post subject: Reply with quote

Works fine!

Thanks! Razz
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group