Questions regarding StaticImage, WordWrap


09-04-2009 19:12:43


I'm building some of the user interface for my game. One of the elements is a book, depicted below:

Right now I am using a StaticImage as the parent widget, with two WordWrap sub-widgets for displaying text, two Buttons for navigating pages, and two StaticTexts for displaying the page numbers.

A couple of questions:
1) I would like the entire book UI to be mouse-draggable (except for the buttons). Is there a better method of designing this UI element? (E.g. using a Window, and hiding the parent title bar/client area.) What is the best method of handling this?
2) Is there a way that I can easily determine the number of lines that will appear in a WordWrap, given its Caption length? e.g. in the Lorem Ipsum text above, I have no easy way of telling where Page 2 should end and Page 3 should start. Is mVRange what I need to use?
3) I want to use fonts different than in the editor, but there seems to be no way to control these inside the editor; must I iterate through child widgets and set fonts manually in code? What is the best way to handle this?

Thanks for reading!