Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions > Development Help

Development Help For help from coding to error finding to that one thing you just can't get right

Reply
 
LinkBack Thread Tools
Old 11-26-2008, 05:21 PM   #1 (permalink)
Squirt
 
ikofthetoids's Avatar
 
Join Date: Aug 2008
Posts: 20
ikofthetoids is on a distinguished road
Default Storing long blocks of letters

Trying to make a notepad app.
Don't know what to store the entered text as.
Could store it as a really long string.
Don't think that would be a good idea.
I want to include stuff like italics and indentations in the text.
is there anything like rich text format i could store it in?
Any help?

I'm a minimalist writer...




ikofthetoids is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 11-26-2008, 05:59 PM   #2 (permalink)
Jr. Member
 
Join Date: Jun 2007
Location: Mass
Posts: 332
shutout5591 will become famous soon enough
Default

As far as variable declaration goes, the entire text should be stored as a string, there is no rich text format string. For displaying this data, you would need to parse the italics and underlines your self, which could be messy.
__________________
~Shutout5591~

[FINAL] Asteroids 1.0
If you like me work or I have helped you, + Rep me!




shutout5591 is offline   Reply With Quote
Old 11-26-2008, 07:25 PM   #3 (permalink)
you lost the game.
zB Programmer
Moderator
Elite Zuner
 
itsnotabigtruck's Avatar
 
Join Date: May 2008
Posts: 2,434
itsnotabigtruck has much to be proud ofitsnotabigtruck has much to be proud ofitsnotabigtruck has much to be proud ofitsnotabigtruck has much to be proud ofitsnotabigtruck has much to be proud ofitsnotabigtruck has much to be proud ofitsnotabigtruck has much to be proud of
Default

There isn't any out-of-the-box solution for that, so you're going to need to roll your own. I'd assume you'd store the text as a series of objects each containing a string with a block of text plus the formatting properties for that text.
__________________

signature by vettexl




itsnotabigtruck is offline   Reply With Quote
Old 11-26-2008, 07:51 PM   #4 (permalink)
Squirt
 
ikofthetoids's Avatar
 
Join Date: Aug 2008
Posts: 20
ikofthetoids is on a distinguished road
Default

Quote:
Originally Posted by itsnotabigtruck View Post
I'd assume you'd store the text as a series of objects each containing a string with a block of text plus the formatting properties for that text.
Good idea.
Didn't think about that.
Cudos...


+rep both of you.




ikofthetoids is offline   Reply With Quote
Reply

Bookmarks

Thread Tools