From: Dr I. R. <iai...@gp...> - 2003-06-17 23:22:43
|
I've been playing around with wxPerl and tree controls under W2K Pro. So far everything works as expected but some of the constants listed in the docs don't seem to be defined. For example, wxTR_LINES_AT_ROOT isn't recognised and as far I can see, isn't listed in the source. EDais's API search (http://www20.brinkster.com/edais/ConstSearch.asp) defines the underlying Win32 API constant as TVS_LINESATROOT (0x4). This doesn't work however a little experimentation shows that 0x8 does e.g. my $tree = MyTreeCtrl->new( $splitter, -1, [0,0], [800,600], wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS | wxSIMPLE_BORDER | wxTR_HIDE_ROOT | 0x8); Can anyone offer any guidance on values for other missing constants and degree of portability to other platforms? Iain |