user interface - <table>-like UI element for wxHaskell/wxWidgets -
i working on writing gui in haskell (and ur/web, story), , have several development branches using different libraries , approaches working on contemporaneously. in trying migrate of code had browser-backed ui libraries html elements (threepenny-gui, precise) native gui applets using wx graphical backend (wxhaskell, reactive-banana), encountered trouble figuring out how migrate code had based on constructing <table>
element equivalent wxwidgets construct. seemed me there no easy way implement such thing on own, , no native equivalent. looking implementation suggestions, pointers extant implementations, suitable alternatives, , forth. can provide more in-depth specifics of design looking for, should required.
the html table merely used aligning , displaying data, 1 cell in every row reactive control, , number of rows displayed @ given time can vary reactively.
html table can contain in cells it's rich represented native control. it's hard make recommendation without knowing have in table, different possibilities are:
wxhtmlwindow
: can used reuse html provided it's simple enough (html4 basically) , can embed native controls if needed.wxgrid
: flexible widget, it's not native.wxdataviewctrl
: native control under gtk , os x (but not msw you'd need usewxlistctrl
100% native approach) it's pretty limited compared either of above solutions.
Comments
Post a Comment