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 

Whats with Widgets

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



Joined: 12 Dec 2007
Posts: 78

PostPosted: Thu Feb 21, 2008 5:51 pm    Post subject: Whats with Widgets Reply with quote

It is interesting that you use the name Widgets in the Virtual Tree. The thing I don't understand is that typically a widget refers to a GUI element, but in your case, it refers to a windowless element.

I really like that you use a Widget for much of the code so that it can be subclassed without the overhead of subclassing the entire control to modify a part of the behavior.

Is there any more information this pattern that you would care to share? I use a similiar pattern wherein any logic for a Windows Form is contained is a seperate class, but I usually call that a Manager for lack of a better name. But I think the principle is along the same lines.

Just curious!

Greg
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Feb 21, 2008 9:21 pm    Post subject: Reply with quote

You can think of a Widget as just a windowless (or lightweight) control. It supports many of the same methods as a control but instead of having its own window it renders to its parent WidgetControls window. Most windowing frameworks have support for something like this - but Windows Forms doesn't.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
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