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 

Edit a chunk of text in cdpui

 
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: Tue 22 Apr 14:50:58 2008    Post subject: Edit a chunk of text in cdpui Reply with quote

Is this possible? Getting a window/page/dialog, edit some text and send to a component/save to a file...?
Back to top
View user's profile Send private message
Rune



Joined: 14 Mar 2007
Posts: 25
Location: Norway

PostPosted: Wed 23 Apr 10:25:33 2008    Post subject: Reply with quote

You can use the UIControlText object to send a CM_TEXTSTING to a component.

The component can then handle the textstring:

int UIControlManager::ReceiveMessage(void *message)
{
switch(MESSAGE_COMMAND(message))
{
case CM_TEXTSTRING:
{
MessageTextString *m=(MessageTextString*)message; // get correct message format...
// todo, check origin if multiple senders to this component....
....



Please note that the max textstring length is MESSAGEINTERFACE_NAME_MAXSTRINGSIZE (256 characters) INCLUDING nullterminator.
_________________
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