Hi Jeremy, On Sun, Dec 16, 2007 at 05:20:42PM +0000, Jeremy Henty wrote:
On Sun, Dec 16, 2007 at 04:58:38PM +0000, Jeremy Henty (ie. *me*) wrote:
OK, I'm looking at adding the rows and columns parameters. It should be easy, except that I'm not sure which class to add the extra members to. Options are:
1) dw::core::ui::MultiLineTextResource 2) dw::fltk::ui::FltkMultiLineTextResource
I'm inclined to say 2), since I don't like the idea of hardwiring this API into the base class. Do you agree?
On second thoughts, if I add members to 2) I still have to add an abstract version of the API to 1) so that the HTML parser can set the parameters in a platform-independent way. It still looks like the right way to go, though.
I would do it as it is done for the maxLength and password members of FltkEntryResource: Add parameters to createMultiLineTextResource() and store the values in private members of FltkMultiLineTextResource. Cheers, Johannes