[Demos] Expanding-collapsing
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
[Demos] Expanding-collapsing
This demo hides/shows certain paragraphs when user clicks hyperlinks
http://www.trichview.com/support/files/ ... psible.zip
Multilevel collapsible paragraphs
In addition to collapsible.zip , we've created a new demo:
http://www.trichview.com/support/files/ ... psible.zip
The previous demo shows/hides paragraph between the heading paragraphs.
This demo has multilevel numbered paragraphs, and higher level paragraph hides/shows deeper paragraphs.
Numbering is implemented by LabelItem type. It's possible to use "real"
numbering, but "real" numbering cannot have plus/minus pictures before it.
Multilevel collapsible paragraphs - 2
And one more demo on the same topic:
http://www.trichview.com/support/files/ ... sible2.zip
It's visually like the previous one, but plus/minus pictures are after numbering.
This demo uses real (autocalculated) paragraph numbering, so it does not
need labelitems and special paragraph styles.
Expand/collapse using hidden text
http://www.trichview.com/support/files/ ... entext.zip
Visually, this demo is like the first one.
But unlike all the demos above, it does not need a second TRichView containing a full document.
Instead of deleting collapsed paragraphs, this demo hides them.
See also:
- contact list demo with collapsible user groups http://www.trichview.com/forums/viewtopic.php?p=12608
http://www.trichview.com/support/files/ ... psible.zip
Multilevel collapsible paragraphs
In addition to collapsible.zip , we've created a new demo:
http://www.trichview.com/support/files/ ... psible.zip
The previous demo shows/hides paragraph between the heading paragraphs.
This demo has multilevel numbered paragraphs, and higher level paragraph hides/shows deeper paragraphs.
Numbering is implemented by LabelItem type. It's possible to use "real"
numbering, but "real" numbering cannot have plus/minus pictures before it.
Multilevel collapsible paragraphs - 2
And one more demo on the same topic:
http://www.trichview.com/support/files/ ... sible2.zip
It's visually like the previous one, but plus/minus pictures are after numbering.
This demo uses real (autocalculated) paragraph numbering, so it does not
need labelitems and special paragraph styles.
Expand/collapse using hidden text
http://www.trichview.com/support/files/ ... entext.zip
Visually, this demo is like the first one.
But unlike all the demos above, it does not need a second TRichView containing a full document.
Instead of deleting collapsed paragraphs, this demo hides them.
See also:
- contact list demo with collapsible user groups http://www.trichview.com/forums/viewtopic.php?p=12608
Last edited by Sergey Tkachenko on Fri Jun 28, 2013 6:44 pm, edited 2 times in total.
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
There is no way to detect hidden text in your rvActions demo. You select text, press hide and it hides. After that pressing hide again does nothing.Sergey Tkachenko wrote:There are no known bugs for this feature. If you know a bug, please explain how to reproduce it.
A demo for collapse/expand with [+] sign and hidden text will be useful. Thanks.
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Hidden text becomes visible if you press "Show special characters" button (displayed as Pi-character), so you can unhide it.
I'll try to make a demo in this weekend. Actually, it is simple. All content that must be hidden when collapsing is added using "hidden text" options.
Expanding/collapsing is made by including/excluding rvoShowHiddenText (and, may be, changing +/- button)
I'll try to make a demo in this weekend. Actually, it is simple. All content that must be hidden when collapsing is added using "hidden text" options.
Expanding/collapsing is made by including/excluding rvoShowHiddenText (and, may be, changing +/- button)
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Sorry for the delay, I created the requested demo:
http://www.trichview.com/support/files/ ... entext.zip
Of course, I was wrong by expanding/collapsing using rvoShowHiddenText option. This option could be useful if you need only "expand all" and "collapse all" commands, it cannot be used to expand/collapse only the desired parts.
The correct solution is making collapsed fragments hidden.
http://www.trichview.com/support/files/ ... entext.zip
Of course, I was wrong by expanding/collapsing using rvoShowHiddenText option. This option could be useful if you need only "expand all" and "collapse all" commands, it cannot be used to expand/collapse only the desired parts.
The correct solution is making collapsed fragments hidden.
Re: [Demos] Expanding-collapsing
Can this be done in a TRichViewEdit by the end-user ? If so, how should it be done ?
Thanks.
Thanks.
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: [Demos] Expanding-collapsing
Sorry about that. Here is a better explanation:
- The user selects some content and marks it as collapsible
- The user creates a link to expand / collapse this content
I believe that this would require some hidden items to mark the collapsible content with a specific ID, and be able to show / hide this section. Or perhaps add some tags to the selected items... ?
I was wondering if that is possible and how it could be implemented ?
Thank you.
- The user selects some content and marks it as collapsible
- The user creates a link to expand / collapse this content
I believe that this would require some hidden items to mark the collapsible content with a specific ID, and be able to show / hide this section. Or perhaps add some tags to the selected items... ?
I was wondering if that is possible and how it could be implemented ?
Thank you.
-
- Site Admin
- Posts: 17520
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: [Demos] Expanding-collapsing
I suggest to place collapsible text in a table, and implement a link that hide/show a table (by assigning rvepHidden item property to 1 or 0).
A similar feature is implemented in Help&Manual that uses TRichViewEdit as a topic editor.
Here are examples of collapsible tables:
https://www.trichview.com/help-actions/history.htm (changes in each major update)
https://www.trichview.com/help-actions/actions.htm (groups of actions)
https://www.trichview.com/help-actions/ ... fileio.htm (class hierarchy).
Help&Manual does not collapse content in TRichViewEdit itself, only when saving to HTML. But it's not difficult to implement it directly in TRichView.
A similar feature is implemented in Help&Manual that uses TRichViewEdit as a topic editor.
Here are examples of collapsible tables:
https://www.trichview.com/help-actions/history.htm (changes in each major update)
https://www.trichview.com/help-actions/actions.htm (groups of actions)
https://www.trichview.com/help-actions/ ... fileio.htm (class hierarchy).
Help&Manual does not collapse content in TRichViewEdit itself, only when saving to HTML. But it's not difficult to implement it directly in TRichView.
Re: [Demos] Expanding-collapsing
OK thank you.