[fltk.general] pack.cxx example: resizing contents

2012-05-04 Thread Jim Jozwiak
If I take the pack.cxx example from the fltk test subdirectory and mark the Fl_Pack resizable to itself with the expectation that the buttons inside the pack will now resize, I find the buttons don't resize. How would one achieve this functionality in fltk, that widgets inside a pack inside a s

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Greg Ercolano
On 05/04/12 02:36, MacArthur, Ian (SELEX GALILEO, UK) wrote: > >> Hmpf - the default is text and I know this, but forgot to take care >> about. Very stupid, of course it works now... > > For what it's worth, I just use "rb" and "wb" regardless of > platform since the *nix versions ignore the "b"

Re: [fltk.general] 1.3.0 very slow on X11 with Unicode locale

2012-05-04 Thread Albrecht Schlosser
On 04.05.2012 15:06, Albrecht Schlosser wrote: > Looking at the commit logs ... and svn blame ... okay, found it. If you > have svn access, please try FLTK 1.3 before svn rev. 8097 (from Dec. 22, > 2011). Is this any better? FWIW, this has been done to fix STR #2474, if anybody is interested in mo

Re: [fltk.general] 1.3.0 very slow on X11 with Unicode locale

2012-05-04 Thread Albrecht Schlosser
On 04.05.2012 14:21, Michael Baeuerle wrote: > Unfortunately I don't know how XIM works in detail, but my X server > seems to support it. The X server logfile list "XInputExtension" as > available: > -- > $ grep XInputExtension /v

Re: [fltk.general] delete all subwindows

2012-05-04 Thread dirac
Firstly, thank you all for your support. @ Ian: > if you mean another separate window, yes, I mean another window which pops up when I click on the button. Fl::first_window() is great for closing *all* windows, when the app quits. Anyway I agree with both of you: I should mantain my own list, be

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread MacArthur, Ian (SELEX GALILEO, UK)
> > For what it's worth, I just use "rb" and "wb" regardless of platform > > since the *nix versions ignore the "b" anyway... > > This doesn't seem to work for me. I'm writing scientific software for > 1,5 years now and all the files had been textfiles. So normally the same > code works for Linux

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Edzard Egberts
MacArthur, Ian (SELEX GALILEO, UK) schrieb: > >> Hmpf - the default is text and I know this, but forgot to take >> care about. Very stupid, of course it works now... > > For what it's worth, I just use "rb" and "wb" regardless of platform > since the *nix versions ignore the "b" anyway... This doe

Re: [fltk.general] 1.3.0 very slow on X11 with Unicode locale

2012-05-04 Thread Michael Baeuerle
"MacArthur, Ian (SELEX GALILEO, UK)" wrote: > Michael Baeuerle wrote: > > > > FLTK runs an order of magnitude slower if I change my locale from > > ISO8859-1 to UTF-8. This is most annoying in the Fl_Menu_Bar widget. > > Hmm, that's odd - I haven't noticed that myself. > > If I get a chance, I'l

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread MacArthur, Ian (SELEX GALILEO, UK)
> Hmpf - the default is text and I know this, but forgot to take care > about. Very stupid, of course it works now... For what it's worth, I just use "rb" and "wb" regardless of platform since the *nix versions ignore the "b" anyway... SELEX Galileo Ltd Registered Office: Sigma House, Christo

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Edzard Egberts
Albrecht Schlosser schrieb: > On 04.05.2012 09:53, Edzard Egberts wrote: >> I'm not sure, whether this problem comes from fltk, but maybe someone >> knows it: >> Where could the problem come from? Maybe related to utf8? How to go on? > > How did you open the file? On Windows you must open a file ex

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Albrecht Schlosser
On 04.05.2012 09:53, Edzard Egberts wrote: > I'm not sure, whether this problem comes from fltk, but maybe someone > knows it: > > I'm using a write_png() function and it works under Linux. But after > compiling it for MS-Windows, the software also writes png-files, but > it's not possible to open

[fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Edzard Egberts
I'm not sure, whether this problem comes from fltk, but maybe someone knows it: I'm using a write_png() function and it works under Linux. But after compiling it for MS-Windows, the software also writes png-files, but it's not possible to open them - "PNG file corrupted...". The only differenc