CDP Forum Forum Index CDP Forum
NOTE: The forum is being replaced by support.icd.no
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Custom CDPUI controls

 
Post new topic   Reply to topic    CDP Forum Forum Index -> CDPUI
View previous topic :: View next topic  
Author Message
Imbrondir



Joined: 07 Jun 2007
Posts: 44

PostPosted: Wed 3 Dec 10:42:30 2008    Post subject: Custom CDPUI controls Reply with quote

Is it possible to create new CDPUI controls? Not as in an xml template, but in a draw-it-myself c++ class with messenger send/receive options?[/img]
Back to top
View user's profile Send private message
Rune



Joined: 14 Mar 2007
Posts: 25
Location: Norway

PostPosted: Wed 3 Dec 11:30:46 2008    Post subject: Reply with quote

Yes, you can create new UIObjects from the CreateNewObject(); function.
In other words, make a library, override

virtual CDPObject* CreateNewObject(const std::string& type);

in that function do:
if(type=="UIObjectSpecial")
return new UIObjectSpecial;
_________________
Best Regards,
Rune Espeseth
Industrial Control Design AS
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CDP Forum Forum Index -> CDPUI 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