Hello everyone
My application uses a wxHTML window to display the results of some
analysis. We are using HTML because a) it's rich text b) it allows
interaction, c) it's very easy to generate, and d) it's extremely
portable (we may have a remote capability added so analysis can be
viewed through a browser).
However, the code needs to be modified in-place. For example, the user
gets a table of results and the column headings (which are variables)
are hyperlinked. If the user right-clicks on a hyperlink, they get a
context-menu of choices which will allow them to remove the variable.
This means that the analysis is re-done and the new results
re-displayed.
But we can't just append a table on the end (we did consider it but
decided against it for usability reasons - we desparetely need to
reduce the amount of information presented to the user to the minimum
possible and that is non-negotiable after testing). This means that we
need to change the table by replacing it with the new one.
Currently, the HTML code is stored in MemoryFSHandler and LoadPage is
used (so that the correct table can be located by using the time-stamp
as a name tag in the HTML code). This works really well as does the
right-click menu etc.
What would be the best way to alter the code? Would it be to mess
around with HTMLContainerCells? Or would it be to just take the HTML
code, remove the old table and insert the new one in its place and
recall LoadPage?
All the best,
Alan
ยทยทยท
--
Alan James Salmoni