Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
CSS
Dear All, the questions puzzled us for a long time.
Question 1:How to store the data which comprises pictures , tables, formatted text and hyperlink text in VC? That is to say, in which format or through which technique to achieve this goal. Refer to the MFC example programme Wordpad, we can save it as .doc document. But we don’t want to do so.
Above-mentioned pictures, tables, formatted text are the same as those in Word. But hyperlink text is about this mentioned as follow:


SQL
In the picture above(coming from MSDN), blue strings are hyperlink format. When click on the strings, the text which notes the strings is shown within a yellow rectangle. So, to implement the hyperlink, information including the strings, the notes, and the link info is needed to be stored.

Question 2:How to implement the effect as the same as the Collapse/Expand shown in codeproject.com in CrichEditView?(pictures coming from www.codeproject.com) Explained as follow:when click on the hyperlink text Collapse(shown as the picture 1), the yellow region is hidden. And the Collapse is converted to string Expand synchronously(shown as the picture 2). The text in the yellow region of picutre 1 can be edited. So, my question is: how to implement the effects of Collapse and Expand?



Picture 1

Picture 2
Thanks, my best regards to you.
Posted
Updated 2-Jun-13 0:03am
v2
Comments
Sergey Alexandrovich Kryukov 2-Jun-13 12:10pm    
What do you mean by "store data… in VC"?! Store where? And the question on formats does not make any sense. This is you who chooses the formats. If you want an advice on particular formats, you need to explain your goal, requirements, etc...
—SA
aspir_zhaoqi 3-Jun-13 5:45am    
Thanks,i mean that how to store a type of data with multiple formats information. it can be pictures , tables, formatted text and hyperlink text. And I am coding in VC. Thank you for your reply.

1 solution

If you don't want to store compound documents in Microsoft's format then you could try Open Document Format used by Open/Libre Office or make up your own XML + UUEncoded image data format.

Implementing a Collapse/Expand control is really like implementing a very simple animation with only 2 states. You have the same information in the same control but two ways to draw the view corresponding to the collapsed or expanded appearance. A general Collapse/Expand panel with the appearance similar to a collapsible DIV on Code Project would be a nice MFC Custom Control project. Some research into Custom Controls would be needed if you haven't created one before.
 
Share this answer
 
Comments
aspir_zhaoqi 3-Jun-13 6:01am    
Thanks for your enthusiastic guidance. I haven't grasp such advanced programming topics. Your timely proposal is very helpful to me. I will refer to the Internet for detailed materials and notice to everyone my latest progress. Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900