-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does fltkhs support Tables from fuild? #76
Comments
Hi! |
Hi! Actually I would like to use in my application that two widgets - Tree and Table :) + some menus. dixie |
I read the documentation for fltkhs again, and I understood. So it is possible to combine fluid generated code with manually written. I'll try to do that. |
minor update related to the topic: in the end I'm using fltkhs without fluid. I was little bit afraid of writting UI-layout directly into code, but it seems to be quite simple with FLTK. Finally I have in the toolbox a GUI library, which is soooooo simple to build on Windows :) Thanks a lot! |
Glad it's working out for you. Thanks for the feedback! |
Could we paramaterise the makeWindow (or whatever name) function by the required callbacks? e.g. instead of makeWindow :: IO () -- define helper types like these in Graphics.UI.FLTK.Fluid or something
data TableParams = TableParams
{ drawCell :: Ref Table -> TableContext -> TableCoordinate -> Rectangle -> IO ()
, widgetOverrides :: CustomWidgetFuncs Table
, tableFuncs :: CustomTableFuncs Table
}
-- then maybe define some helper-helpers like `showCells :: Show a => Array (Int, Int) a -> TableParams` etc
-- "foo" being the name given to the table in fluid
data WindowInfo = WindowInfo
{ foo :: TableParams
}
makeWindow :: WindowInfo -> IO () |
Hello!
Thank you for very nice GUI library, which is easy to compile both on Linux and Windows.
Does fltkhs support Tables from fuild? I included simple table in fltkhs-fluid-hello-world (see attached HelloWorld.fl) but it produces not-working code, something like:
HelloWorld.zip
The text was updated successfully, but these errors were encountered: