Help reqd for creating HTML help viewer control using CEGUI

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
krithigal
Not too shy to talk
Not too shy to talk
Posts: 40
Joined: Wed Jan 12, 2005 12:06

Help reqd for creating HTML help viewer control using CEGUI

Postby krithigal » Wed Mar 16, 2005 04:51

WE need to create a HTML help viewer using CEGUI lib. We have found that we need to create a .chm file, parse it to display in the viewer.

At the back end it should have a map and an alias file to define the ID and to associate the ID's with the html file.


Regarding creating of the front end control using CEGUI lib can you provide a few guidelines?


Looking forward towards your help.


regards
krithiga

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Help reqd for creating HTML help viewer control using CE

Postby CrazyEddie » Wed Mar 16, 2005 09:43

If you're talking about how to go about rendering the HTML content, then I would suggest parsing the HTML and constructing a list of items to be drawn; like text segments, images, and so on. Each item would need to store the position of the item and any other information to draw what is required for the item. When you need to render, just iterate through the list drawing the required items.

You're bound to want a scroll bar, so set this up so that the document size is the vertical pixel extent of the entire HTML output, and the page size is the vertical pixel height of the view area. Then when you draw, subtract the current scroll position from every item.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests