Re: [fltk.general] Minimize fltk app to system tray

2012-08-07 Thread MacArthur, Ian (SELEX GALILEO, UK)
 
 Ian MacArthur imacart...@gmail.com schrieb:
 
 
 On 5 Aug 2012, at 16:58, Coder wrote:
 
 If you want some platform specific code to do this for Windows, try:
 
 http://www.9edgedown.talktalk.net/fl_tray_icon.html
 
 Which is the response I posted last time this came up (circa 2007) and
 has some working code.
 
 Here the Linux/X11 spec:
 http://standards.freedesktop.org/systemtray-spec/systemtray-spec-
 latest.html

Oh, I didn’t know that existed - and looks reasonably straightforward to do; 
though I can't be bothered myself!

Does anyone have a feel for how widely supported that spec is? I assume (since 
it derives from KDE circa 200x) that KDE will support it, but what about other 
WM systems?





SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England  Wales.  Company no. 02426132

This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.


___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] ipad?

2012-08-07 Thread chris warren-smith
The simplest way to get FLTK working on modern day mobile devices would be to 
write a new back-end for MoSync (see: http://www.mosync.com/). The MoSync C/C++ 
API has everything FLTK needs - basic drawing primatives, event handling etc. 
I'm currently using it to make SmallBASIC run on android.

Cheers,
Chris


 On 4 Aug 2012, at 14:06, Matthias Melcher wrote:

 =20
  On 04.08.2012, at 14:15, Ian MacArthur imacart...@gmail.com wrote:
 =20
  Oh yes - me too! I'd love that.
  Not sure Apple will go for it though
 =20
 =20
  App Store Review Guidelines from 2010, excerpt. I believe they went =
 more strict, but I don;t have dev access anymore... .


 Nor I... I guess things like phoneGap and os forth get away with it =
 because they are just html, whereas we'd be drawing widgets ourselves, =
 so that would not be accepted...
 =20

  My example would be running on Android. Android requires apps to be in =
 Java (up until Android 4, IIRC), but Java can call native libraries. A =
 minimal Java app would provide the four interfaces discussed above, and =
 the FLTK app would be wrapped together with FLTK itself inside a native =
 library, called from Java.=20
 =20
  In true FLTK fashion, the app programmer would never touch a single =
 line of Java code. The same would work for  iOS, or PalmOS, or =
 PocketWindows, or whatever else is out there.

 OK... Though I imagine Apple would still reject it anyway.

 On the webOs front, I guess the PDK could be leveraged to build fltk =
 native on the phone, maybe...


  OT
  In other news - I recently acquired a brand new, still in the retail =
 packaging, been sitting in a warehouse for over a year, Palm (aka HP) =
 Pre3:
 =20
  Matt, any chance of an Einstein port, then? ;-)
 =20
  If you can run FLTK on it, you can run Einstein ;-P .

 Sure, if I can run FLTK... the crunch here being whether or not I can be =
 bothered to do the porting work, rather than just having it magically =
 appear...

 I'm thinking maybe not, not right now...


 Cheers to all,
 --=20
 Ian




___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


[fltk.general] How to set an icon to the main window that appear top left corner with the title?

2012-08-07 Thread Furqan
I want to set an icon of my application to the top bar of the main window (top 
left corner above menu). How can I set... ?

// is it that function ? if not then how and what this function means ?
MainWindow-icon();

thanks.
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] How to set an icon to the main window that appear top left corner with the title?

2012-08-07 Thread MacArthur, Ian (SELEX GALILEO, UK)

 I want to set an icon of my application to the top bar of the main window
 (top left corner above menu). How can I set... ?
 
 // is it that function ? if not then how and what this function means ?
 MainWindow-icon();

This is described in the docs, but the easiest way might be to look at what the 
sudoku example does and just copy that.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England  Wales.  Company no. 02426132

This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.


___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] How to set an icon to the main window thatappear top left corner with the title?

2012-08-07 Thread Herman
Make sure you read the topic about Operating Issues carefully.

http://www.fltk.org/doc-1.3/osissues.html

It says there there that you must make any calls to icon _before_ you 
call your MainWindow-show(). If you don't follow this, you will be in a 
lot of despair :-)

Cheers, Herman



On 08/07/2012 05:26 PM, MacArthur, Ian (SELEX GALILEO, UK) wrote:

 I want to set an icon of my application to the top bar of the main window
 (top left corner above menu). How can I set... ?

 // is it that function ? if not then how and what this function means ?
 MainWindow-icon();

 This is described in the docs, but the easiest way might be to look at what 
 the sudoku example does and just copy that.



 SELEX Galileo Ltd
 Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
 3EL
 A company registered in England  Wales.  Company no. 02426132
 
 This email and any attachments are confidential to the intended
 recipient and may also be privileged. If you are not the intended
 recipient please delete it from your system and notify the sender.
 You should not copy it or use it for any purpose nor disclose or
 distribute its contents to any other person.
 


___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] ipad?

2012-08-07 Thread Matthias Melcher

On 07.08.2012, at 13:49, MacArthur, Ian (SELEX GALILEO, UK) 
ian.macart...@selexgalileo.com wrote:

 
 The simplest way to get FLTK working on modern day mobile devices would be
 to write a new back-end for MoSync (see: http://www.mosync.com/). The
 MoSync C/C++ API has everything FLTK needs - basic drawing primatives,
 event handling etc. I'm currently using it to make SmallBASIC run on
 android.
 
 Harking back to MoSync, I wonder if fltk's modified LGPL would be compatible 
 with their GPLv2 requirement for free use?

MoSync really does look interesting. The license is no problem at all since we 
would only use MoSync as a tool and use their API as a socket. I will look 
further into that.
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] ipad?

2012-08-07 Thread Ian MacArthur

On 7 Aug 2012, at 18:21, Matthias Melcher wrote:

 Harking back to MoSync, I wonder if fltk's modified LGPL would be compatible 
 with their GPLv2 requirement for free use?
 
 MoSync really does look interesting.

Yes, I think so.

 The license is no problem at all since we would only use MoSync as a tool and 
 use their API as a socket. I will look further into that.


Sure; I think our (the fltk lib) use of the library would be ok, since it is 
all open source: my worry would be that our users might be inconvenienced, if 
they want to use fltk in a non-open app, and we bring in a dependency on a 
GPL'd code base that does not have our static linking exemptions and so forth. 
Then if they wanted to go ahead they'd be forced into buying a MoSync 
commercial license...

Or maybe it's OK, I'm not at all clear on how the codebase would link to 
MoSync, though since it is GPL rather than LGPL I guess it would be tricky in 
some usage cases.



___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] New HTML Widget

2012-08-07 Thread Cliff Yapp
Just curious - has anyone been doing any work recently on an improved FLTK html 
widget?

A quick trial of the existing help viewer widget indicates it's not likely to 
support enough HTML for my proposed uses, which raises the same general 
question already posed in this thread.

Tkhtml3 is indeed a self-contained HTML rendering widget that has no external 
dependencies to speak of (beyond Tcl/Tk itself, obviously.)  Converting it to 
FLTK is almost certainly a lot of work - one first has to understand what 
Tkhtml is doing (it's about 40,000 lines of code, and more than 2000 of them 
call things prefixed with Tcl_ or Tk_).  It does have the considerable 
advantage of being license compatible with FLTK.

Amaya - the W3C browser/editor is also licensed in a compatible fashion (I 
think - not sure where the actual rendering parts live), but it isn't 
immediately clear how much its dependencies are hooked into its core HTML 
renderer.  Amaya has changed GUI toolkits at least once in its history that I 
can remember (it's currently using wxWidgets) so it's presumably possible to 
retarget it, but I have no real idea how much work it would be.  My guess would 
be it's at least as much work as tkhtml would be.

Webkit is certainly full featured, but it's sheer size and (probable) list of 
requirements on various platforms makes it a rather daunting prospect.  It also 
uses LGPLv2 with (AFAIK) no static linking exception, which may also pose a 
problem.

Dillo would in some ways be nearly ideal, since they already use FLTK, but they 
are GPL licensed and thus not currently a candidate.  Has anyone ever 
approached the Dillo devs and asked if they would be willing to support 
relicensing the parts of their codebase necessary to create a CSS supporting 
Fl_Html rendering widget so it could become part of FLTK proper?  They may or 
may not be interested in that possibility (it usually depends on the project 
and the goals of its devs) but if someone who could represent FLTK were willing 
to ask that would be a great first step.

Cheers,
CY




___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk