Hello fellow FLTK users,

I was wondering if there was already a desktop widget engine based on FLTK. If 
there is not, I would like to write one and contribute it to the FLTK-Apps 
project. It would use the FLTK GUI and widgets would be written in a 
combination of Lua, XML and various resource files (i.e. images) stored in 
PK-ZIP archives. My choice of those tools are as follows:

* FLTK: because it is fast and light, which is very nice for widgets
* Lua: for the same reasons as FLTK, along with newbie-friendly syntax
* XML: it is very good for declarative creation of GUIs
* PK-ZIP: because it is very common and there are many tools to work with it

Here is an example widget: the files would be stored in "HELLO.FLW" (for Fast 
Light Widget).

----- layout/layout.xml

<?xml version="1.0" encoding="UTF-8"?>
<widget width="400" height="400">
  <button name="button1" width="400" height="400" />
</widget>

----- script/main.lua

function button1.on_click ()
  alert "Hello World!"
end

-----------------------------------------

What do you guys think? If you guys like it all, I will start working on it in 
my spare time.

Thanks for your time,
- Luiji
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to