Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » WithDropChoice Serialization?
WithDropChoice Serialization? [message #25116] Thu, 11 February 2010 09:56 Go to next message
cbpporter is currently offline  cbpporter
Messages: 1400
Registered: September 2007
Ultimate Contributor
I have some WithDropChoice<EditStrings> that I need to Serialize. I was using s % edit. This has the problem that while it does serialize the content of the EditString, it also serializes the contents of the DropChoice. I use the serialized data for cross application profiles, so only the EditString content should go in the stream, the content to DropChoice should be unique for every application.

If I use s % ~edit, the EditString remains empty. Is there a simple way to serialize only the EditString?

PS: Also, WithDropChoice is a little poor on features. I don't need these features right now, but at least minimal QTF support for bold/color text and index selection would be nice.
Re: WithDropChoice Serialization? [message #25307 is a reply to message #25116] Tue, 16 February 2010 21:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
That is a little bit weird, what do you mean by "DropChoice content"?

There is a special method to serialize the choice-list (SerializeList), but Serialize itself is not overrridden in WithDropChoice (so it should be base class Serialize).

Mirek
Re: WithDropChoice Serialization? [message #25311 is a reply to message #25307] Tue, 16 February 2010 22:17 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1400
Registered: September 2007
Ultimate Contributor
luzr wrote on Tue, 16 February 2010 22:00

That is a little bit weird, what do you mean by "DropChoice content"?


I mean only the EditString.
Re: WithDropChoice Serialization? [message #25312 is a reply to message #25311] Tue, 16 February 2010 22:47 Go to previous message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
cbpporter wrote on Tue, 16 February 2010 16:17

luzr wrote on Tue, 16 February 2010 22:00

That is a little bit weird, what do you mean by "DropChoice content"?


I mean only the EditString.



Ops, you are right. The problem is that DropChoice became child of EditFiels, so that its Serialize method gets used.

Fixed.

Mirek
Previous Topic: Get enter key in EditString
Next Topic: Ctrl-C and read only EditString
Goto Forum:
  


Current Time: Fri Oct 22 22:32:47 CEST 2021

Total time taken to generate the page: 0.00847 seconds