Re: [fltk.general] Using Fltk in Visual Studio 2008

2010-04-08 Thread Albrecht Schlosser
On 09.04.2010, at 00:02, Rafael wrote: > I download fltk-1.3.x-r7398, and run the fltk.sln for VC2005, it was > converted. But when I tried to run it, VC couldnt find some Fltk headers. > > This, is some sort of bug? Or I need to do something? Hmm, guessing, ... probably related to Cairo? You co

Re: [fltk.general] Menu Item w/ submenu, click response

2010-04-08 Thread Albrecht Schlosser
On 07.04.2010, at 19:17, K.C. Babb wrote: > This is probably not new, but a couple of forum searches didn't yield a > definitive answer... > > FLTK Version: 1.1.9 > Environment: Exceed on Windows > > If I have a set of Fl_Menu_Item's which contain, among other things, > selections which have subm

Re: [fltk.general] Trouble Upgrading From 1.0.11 to 1.1.10

2010-04-09 Thread Albrecht Schlosser
Mike, I read that you solved the linking problem, but... On 09.04.2010, at 02:26, Mike Werner wrote: > Someone asked why I was trying to include 'config.h' in my apps. It's because > my apps are based on the CubeView demo (FLTK-OpenGL). This was how I got > started with FLTK 1.0.xx years ago. T

[fltk.general] Licens question [was: [RFE] STR #2336: How to set a backgroundimage for Fl_Text_Display or Fl_Text_Editor?]

2010-04-11 Thread Albrecht Schlosser
DISCLAIMER: I'm not a license specialist, and my reply is in no way authoritative, but I hope it may help... Sparkaround wrote: > If I create a widget Test_Text_Display which is subclassed from > Fl_Text_Display, will it constitute a derivative work as fltk's Software > License? Subclassing, as

Re: [fltk.general] Hide widget focus rectangle?

2010-04-14 Thread Albrecht Schlosser
On 14.04.2010, at 07:14, Matthias Melcher wrote: > > On 14.04.2010, at 04:07, SebHoll wrote: > >> Is it possible to hide the focus rectangle for a particular widget using >> FLTK 1.3's standard API? > > Yes. IIRC, it is Fl::visible_focus(0); That would disable the focus box for all widgets, but

Re: [fltk.general] Hide widget focus rectangle?

2010-04-14 Thread Albrecht Schlosser
Albrecht Schlosser wrote: > Fl_Widget::visible_focus(0); > > will do the job for single widgets. Addition: please note that this will also exclude the widget from normal (and arrow key) navigation. Albrecht ___ fltk mailing list fltk@easysw

Re: [fltk.general] How to get the 'correct' key from Fl_Input with FL_INPUT_READONLYset

2010-04-14 Thread Albrecht Schlosser
Michael Schmid wrote: > FLTK version: 1.1.9 > > I use 'Fl_Input' with 'FL_INPUT_READONLY' set. > How can I get the character which was really intended to press? With > event_key() I get only the key pushed on the keyboard (So if I press the > keys 'Shift & 1' I get '1' by event_key() and not '+' a

Re: [fltk.general] PNG JPEG Image Size - Limit to 100kbytes ?

2010-04-26 Thread Albrecht Schlosser
On 26.04.2010, at 09:07, Jean-Pierre Lefebvre wrote: > Maybe I am wrong, but it seems that the size of the box where the picture > will be loaded determines the size of the allocated memory. > By increasing the size of the box, we managed to solve this bug. This is an interesting observation, al

Re: [fltk.general] PNG JPEG Image Size - Limit to 100kbytes ?

2010-04-28 Thread Albrecht Schlosser
On 28.04.2010, at 08:09, Jean-Pierre Lefebvre wrote: > I will provide you with more details about my observation, and with this > picture in a couple of days, as soon as my deadline will be over. I'd also be interested whether my test program crashes with your image and window dimensions. Pleas

Re: [fltk.general] Why is Fl_Double_Window slow than Fl_Window?

2010-04-28 Thread Albrecht Schlosser
On 28.04.2010, at 11:50, Sparkaround wrote: > It seemed that this example code make the problem more clear. No, sorry, not really. > The program will never exit if I press 'a' ! That's true, but due to the fact that the widget doesn't have the input focus and thus doesn't get the keydown event.

Re: [fltk.general] Why is Fl_Double_Window slow than Fl_Window?

2010-04-28 Thread Albrecht Schlosser
Sparkaround wrote: > But it is strange that Fl::get_key can still detect the input correctly when > DELAY is 0.001. That's maybe not as strange as you think. I'm not an X11 expert, but this is probably some out-of-band handling of a special function. FLTK is (as all GUI's) event driven, and th

Re: [fltk.general] Vertical text?

2010-05-07 Thread Albrecht Schlosser
On 06.05.2010, at 20:55, imacarthur wrote: > You mean rotate the text? > > I don't know if fltk2 has that ability or not (though it is feasible on > many modern systems). Neither do I. > There are hooks to support text rotation in the fltk-1.3 tree, at least > on some platforms, though probably

Re: [fltk.general] Fl_Input loses focus when cursor goes out of range

2010-05-17 Thread Albrecht Schlosser
On 17.05.2010, at 06:20, Greg Ercolano wrote: > Greg Ercolano wrote: >> dronten wrote: >>> When text cursor moves past the end or beginning, using the left and right >>> arrow keys, the input widget will lose focus to the next/previous widget. >>> Should it do that? I have tried a few application

Re: [fltk.general] Change widget hierarchy

2010-05-19 Thread Albrecht Schlosser
On 19.05.2010, at 10:22, Lakshmi wrote: > Thanks for that detailed explanation :)..I had gotten really confused with > the concepts... > > What I'm doing now is I'm not creating subwindows, but instead I'm creating > windows outside the begin(); - end(); of the main window. I was almost able > t

Re: [fltk.general] Howto get RGB out of Fl_Color forchangingbackground color?

2010-05-27 Thread Albrecht Schlosser
On 27.05.2010, at 11:05, MacArthur, Ian (SELEX GALILEO, UK) wrote: > The fltk code seems to test for this by masking the colour value with > 0xff00 and if that is non-zero, it treats it as RGB. > > If that is zero, it masks with 0x00FF and then looks up the related > RGB values by doing a

Re: [fltk.general] Howto get RGB out of Fl_Colorforchangingbackground color?

2010-05-27 Thread Albrecht Schlosser
On 27.05.2010 at 12:33, MacArthur, Ian (SELEX GALILEO, UK) wrote: > Does seem like there ought to be a more direct method though, I think - > what do others feel about this? Agreed. > Some sort of (caution, more untested psuedo-code...) > > void fl_get_rgb_from_color(Fl_Color c, uchar&r, uchar&g

Re: [fltk.general] fltk-1.3.x-r7626.tar.bz2 Trojan?!!

2010-05-31 Thread Albrecht Schlosser
Nikolas wrote: > Hi, I just downloaded the fltk-1.3.x-r7626.tar.bz2 file. Then with MSYS tried > /configure > and I got a message from AVG antivirus saying that it contains a trojan in > /fltk-1.3.x-r7626/a.exe > > Any idea if I see a real problem or what? Disclaimer: NO WARRANTIES ! This should

Re: [fltk.general] fltk 1.3 w/ Xcode 3.2

2010-06-02 Thread Albrecht Schlosser
On 02.06.2010, at 08:51, Daniel Kavaldjiev wrote: > I've tried compiling the Xcode 3.1 project included in the distribution, but > got linker error for "AudioServicesPlayAlertSound". Can't complain since I'm > trying Xcode 3.2, but perhaps that's a clue? > > Thank you so much in advance for any

Re: [fltk.general] ubuntu 10.04 + libfltk2.0

2010-06-03 Thread Albrecht Schlosser
On 03.06.2010, at 20:41, newgen wrote: > I tried to install fltk 2.0 from .tar.gz file since the stupid ubuntu can > still only install version 1.1 of libfltk. since I need the table functions > of fltk, I thought I should give it a try. Result after ./configure/make/make > install when I try to

Re: [fltk.general] compile

2010-06-10 Thread Albrecht Schlosser
On 10.06.2010, at 02:26, Greg Ercolano wrote: > Hmm, is there a way to link to the result of a forum search? > It appears forum searches are done with a form posting, so the URL > can't be used, since it has no context info about the search. > > Is there a way to get a "URL ver

Re: [fltk.general] Question concerning Fl_Menu_Bar

2010-06-21 Thread Albrecht Schlosser
Pablo Stickar wrote: > I would like to ask you for help using the Fl_Menu_Bar class. > > More specifically, my problem is that the code: > > Fl_Menu_Bar* _menuBar = new Fl_Menu_Bar( 0, 0, _mainWindowWidth, 30 ); > _menuBar->add( "&File", 0, 0, 0, FL_SUBMENU ); > _menuBar->add( "File/&Open sequence

Re: [fltk.general] Question concerning Fl_Menu_Bar

2010-06-21 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: > >> for( int t = 0; t < _menuBar->size(); ++t ) >> { Fl_Menu_Item *m = (Fl_Menu_Item*)&(_menuBar->menu()[t]); >> std::cout << m->label() << std::endl; >> } > > I think your for loop is wrong - you are dereferencing NULL values. Good po

Re: [fltk.general] fltk.dsw

2010-06-21 Thread Albrecht Schlosser
Rhythm Suren Wadhwa wrote: > Kindly guide me. I just bought your book, There's no "your book" that I would know of. The FLTK team doesn't sell a book. Which book do you mean? > and fltk-1.1.9 from your website. You should try FLTK 1.1.10 instead, it's newer, has some bug fixes, and is the curre

Re: [fltk.general] bool(ean) cruft?

2010-06-22 Thread Albrecht Schlosser
On 21.06.2010, at 19:14, Jim Wilson wrote: > I'm trying to resurrect an FLTK app, cross compiled with MINGW, the compiler > is > based on a newer version of GCC: (4.4.2). The newer compiler barfs on > Fl_JPEG_Image.cxx, line 158: > >dinfo.quantize_colors = (boolean)FALSE; > > Which I bel

Re: [fltk.general] bool(ean) cruft?

2010-06-22 Thread Albrecht Schlosser
On 22.06.2010, at 09:23, Albrecht Schlosser wrote: Sorry, I must correct myself. > And here we may have a problem since we're still using jpeglib 7. FLTK's bundled version is 6b, whereas the current version is 8b. Albrecht ___ fltk mail

Re: [fltk.general] bool(ean) cruft?

2010-06-22 Thread Albrecht Schlosser
On 21.06.2010, at 19:14, Jim Wilson wrote: > I'm trying to resurrect an FLTK app, cross compiled with MINGW, the compiler > is > based on a newer version of GCC: (4.4.2). The newer compiler barfs on > Fl_JPEG_Image.cxx, line 158: > >dinfo.quantize_colors = (boolean)FALSE; What is the ex

Re: [fltk.general] bool(ean) cruft?

2010-06-22 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: > Slight tangent: I just diffed the jmorecfg.h from the jpeg-6b that we > distribute, against the jmorecfg.h from jpeg-8a that is the latest I > have here, and I notice that, whilst they are broadly the same, that 6b > typedefs "boolean" as char, whilst 8a

Re: [fltk.general] bool(ean) cruft?

2010-06-22 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: >>> Slight tangent: I just diffed the jmorecfg.h from the >> jpeg-6b that we >>> distribute, against the jmorecfg.h from jpeg-8a that is the latest I >>> have here, and I notice that, whilst they are broadly the >> same, that 6b >>> typedefs "boolean" as

Re: [fltk.general] bool(ean) cruft?

2010-06-23 Thread Albrecht Schlosser
On 22.06.2010, at 21:51, imacarthur wrote: > > On 22 Jun 2010, at 19:17, Jim Wilson wrote: > > >> OK. I got it. after "mingw-configure" (without "--enable-localjpeg) >> and another bout of hand editing, after "rm src/Fl_JPEG_Image.o": >> >> $ mingw32-make >> === making src === >> Compiling Fl_JPEG_

Re: [fltk.general] bool(ean) cruft?

2010-06-24 Thread Albrecht Schlosser
On 23.06.2010, at 20:43, imacarthur wrote: > On 23 Jun 2010, at 17:24, Jim Wilson wrote: > >> (assuming that a wumpus is a numeric type). > > I don't think it is though, is it? > > >> dinfo.quantize_colors = FALSE; > > Oh yes. That'll work. Hmm, I'm not so sure about that. It will probably fix Jim

Re: [fltk.general] bool(ean) cruft?

2010-06-24 Thread Albrecht Schlosser
On 24.06.2010, at 10:36, Albrecht Schlosser wrote: > The (boolean) cast makes the right hand side (FALSE) the same type > as quantize_colors, no matter how FALSE is defined. There may be > different definitions and picky compilers out there that are not > compatible otherwise... :-(

Re: [fltk.general] All download/mirror links are invalid

2010-06-25 Thread Albrecht Schlosser
On 25.06.2010, at 12:31, al apex wrote: > Whenever I try to download fltk from your website, I get redirected to > another site - ALL download links are invalid and I **cannot** download fltk. I can't help you with this directly, it works for me. I'm located in Europe (Germany), I'm redirected t

Re: [fltk.general] All download/mirror links are invalid

2010-06-25 Thread Albrecht Schlosser
On 25.06.2010, at 13:28, al apex wrote: >> On 25.06.2010, at 12:31, al apex wrote: >> Where are you located (this determines the server), and what server> is >> shown when you start downloading? This might help us to fix this. > Karachi/Pakistan/Asia - doesn't work for me at all. I am being redi

Re: [fltk.general] fl_offscreen problems under windows (eg whencalledfrom menu)

2010-06-26 Thread Albrecht Schlosser
On 26.06.2010, at 00:53, Roman Kantor wrote: > Anyway, I have written much faster fl_read_image() for windows based on > GetDIBits() function (original one is bloody slow as it reads data on > per-pixel basis) so I will submit that as an STR - but it should be > revised by somebody more familiar

Re: [fltk.general] How to output strings in realtime ?

2010-07-04 Thread Albrecht Schlosser
On 04.07.2010, at 13:48, Alexander Walz wrote: > Dear FLTK community, > > I would like to integrate the test/editor.cxx editor shipped with FLTK 1.1 > with a > programming language based on Lua 5.1. which exact FLTK version (e.g. 1.1.10) ? which OS ? > I would like to display strings generated b

Re: [fltk.general] FLTK libharu for pdf ceation anyone have done something ?

2010-07-07 Thread Albrecht Schlosser
Domingo Alvarez Duarte wrote: > I'm trying to make a bind betwen FLTK and libharu to genrate pdf I'm > starting by copying Fl_Postscript.H/.cxx and translating ps calls to > libharyu calls. > > But I'm getting some time to understand the coordinate system and how to > obtain the expected results w

Re: [fltk.general] How to output strings in realtime ?

2010-07-08 Thread Albrecht Schlosser
On 08.07.2010, at 01:20, Alexander Walz wrote: > I noticed that when compiling FLTK 1.1.10 in Solaris and Mac OS X 10.5, the > ./configure file issues THREADS=NO. Did you use ./configure --enable-threads ? FLTK 1.1's default is --disable-threads. If you did, then you might be missing some libra

Re: [fltk.general] FLTK libharu for pdf ceation anyone have done something ?

2010-07-08 Thread Albrecht Schlosser
Domingo Alvarez Duarte wrote: > It's getting a bit better Wow, that's great, great progress! What you implemented looks already pretty good. > but there is some details pending, and I'll > appreciate any help ! As I wrote, I'm interested in this project, but currently I don't know libharu, I don

Re: [fltk.general] 1.1.10 for Cygwin

2010-07-09 Thread Albrecht Schlosser
Steve Underwood wrote: > The cygwin folk have made the rather odd choice to move their fltk package to > use X11 instead of native Windows GDI. Therefore, I have had to build fltk > myself. I found two issues which seem worth reporting. Thanks for the report. As Ian wrote I'm using Cygwin, and

Re: [fltk.general] 1.1.10 for Cygwin

2010-07-12 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: >>> You should be able to use the GDI version, but I can't help with >>> this. >> I should have mentioned the GDI package. They only have a >> runtime GDI package. There is not -devel package to go with >> it. When I asked about this on the cygwin mailing

Re: [fltk.general] flt1.3 under osx

2010-07-13 Thread Albrecht Schlosser
newgen wrote: > I try to compile fltk 1.3 under osx snow leopard. however I fail due to > several reasons: ... snipped ... >> make > > It builds nice until I get: > > [ 64%] Building CXX object fluid/CMakeFiles/fluid.dir/undo.cxx.o > [ 64%] Building CXX object fluid/CMakeFiles/fluid.dir/widget_p

Re: [fltk.general] Fltk on mac

2010-07-13 Thread Albrecht Schlosser
aridam wrote: > hey > I am using ccmake to compile fltk on release mode and i am running into > problems. > when i configure it gives me > > CMake Warning (dev) at png/CMakeLists.txt:21 (ADD_LIBRARY): > Policy CMP0003 should be set before this line. Add code such as You can ignore this warn

Re: [fltk.general] New link error under Cygwin

2010-07-14 Thread Albrecht Schlosser
On 14.07.2010, at 01:25, Shane.Hill.dsto.defence.gov wrote: > G'day All, > > I just did a usual update to my Cygwin distribution and now I can't seem to > be able to link any of my Fltk code and the Fltk source itself. I have > compiled Fltk in the default mode, which uses the -mno-cygwin switch

Re: [fltk.general] New link error under Cygwin

2010-07-14 Thread Albrecht Schlosser
On 14.07.2010, at 13:35, Matthias Melcher wrote: > > On 14.07.2010, at 10:21, Albrecht Schlosser wrote: > >> >> Please report this to the Cygwin mailing list. As Ian wrote already, >> the Cygwin folks decided to switch the FLTK mode to X11, and that >> pulle

Re: [fltk.general] New link error under Cygwin -- Got it all working.

2010-07-15 Thread Albrecht Schlosser
On 15.07.2010, at 08:30, Shane.Hill.dsto.defence.gov wrote: > With all the help about the wrong uuid library being linked, I managed to get > Fltk compiled under Cygwin (as well as my own Fltk apps). This is what I had > to do: > > Note that /usr/local/mingw below is where I keep my local versio

Re: [fltk.general] Fl_File_Icon how to use?

2010-07-20 Thread Albrecht Schlosser
Am 20.07.2010 00:21, Duncan Gibson wrote: >> md houssy wrote: >> snip > > Ian: >> snip > > Is it just me or is there something slightly weird going on? > AFAICT, the original post from md houssy did not show up in > the forum [yet?], but Ian's reply did. I will need to check > the ML when I get to

Re: [fltk.general] Fl_File_Icon how to use?

2010-07-20 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> what I try to do is to change the labeltype of a button by an >> "icon". I like to have an icon in stead of having an ordinary button. >> In fact it is said in the FLTK 1.1.10 Programming Manual >> (Revision 10) that this class manages icon images that

Re: [fltk.general] Fl_File_Icon how to use?

2010-07-20 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> Ian, did you get it via PM and posted the reply to the >> forum/news/mailing list > > I don't recall - I replied late last night, to a post that came in via > my gmail account, then deleted all the bits... > I have the ML pointed to that gmail account,

Re: [fltk.general] Building FLTK 1.3.x on Microsoft Visual C++

2010-07-20 Thread Albrecht Schlosser
Zoltán Lengyel wrote: > Hi, > so far I've been using FLTK v1.1.10 (Windows7, Microsoft VC++ 2008 Express), > but now I need Fl_Tree, so I switched to the latest release of FLTK 1.3.x > (r7677). > The first thing I am unsure about, is wich project should I build. > ide\vc2005 is the one I found like

Re: [fltk.general] displaying image on box

2010-07-20 Thread Albrecht Schlosser
Slick Dealer wrote: > All, > I am having problems with my simple code to display an image on a window. The > code compiles fine but I don't see the image ! > I'll appreciate your inputs on making it work & display a jpg image :) > > #include > #include > #include #include > > using namespa

Re: [fltk.general] Problem with virtual function in the callback

2010-07-22 Thread Albrecht Schlosser
On 22.07.2010, at 15:47, Zoltán Lengyel wrote: > Hi, > I have an access violation problem in my project, I made a small example for > demonstration: > http://paste-bin.com/view/38d8960c > > So there's class A, subclassed from Fl_Group, it has a button, thats > callback is using a virtual function,

Re: [fltk.general] Problem with virtual function in the callback

2010-07-22 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> The fact that it "worked" in your 2nd example appears just to be >> good luck or something like this... ;-) > > I didn't check, but the OP said the case that worked derived from > Fl_Button, so I assume that works because the "Fl_Widget*" and the > "thi

Re: [fltk.general] Fl_Help_View & printing

2010-07-24 Thread Albrecht Schlosser
> But the point is, even if the widget itself will display non-ASCII characters > using UTF-8 encoding, the Fl_Postscript_Printer won't print them :( If I'm > not mistaken, I saw it in the 1.3.x docs: by now only Latin chars are > supported... > > I just wonder, is there a way (no matter how str

Re: [fltk.general] Missing messages in fltk.general [was: Re:hadling events ]

2010-07-26 Thread Albrecht Schlosser
On 24.07.2010, at 21:47, imacart...@gmail.com wrote: > Unregistered FLTK User wrote: > >> If this message shows up in the mailing list, please reply to >> it in fltk.general, so that we (I) can see it (one reply >> would suffice, of course). > > Hi Albrecht - I saw this message on the 24th - you po

Re: [fltk.general] Missing messages in fltk.general [was: Re: hadlingevents ]

2010-07-26 Thread Albrecht Schlosser
On 24.07.2010 18:21, Duncan Gibson wrote: > Albrecht, > some more weirdness coming up... > > I can see your message in the fltk.general forum as url: > http://www.fltk.org/newsgroups.php?s22035+gfltk.general+v22084+T0 > and I am currently replying to that specific message. > > However, before this

Re: [fltk.general] Fl_Help_View & printing

2010-07-28 Thread Albrecht Schlosser
On 27.07.2010, at 21:47, Roman Kantor wrote: > Another possibility to generate postscript or pdf through CAIRO as a backend. > > I have quite a lot of of working code (all fltk drawing primitives except/but > images only partially) using CAIRO implementation. The implementation used > #idfef(s) an

Re: [fltk.general] really forcing a redraw

2010-08-08 Thread Albrecht Schlosser
Shai Ayal wrote: > I want to force an unconditional redraw, which does not depend on any > external events (e.g. it should work even if the window is hidden) the > next time fl::flush is called. I understand this is not exactly > consistent with fltk's philosophy, but is there a way? The consiste

Re: [fltk.general] Code not working on Mac OS 10.6 64 bits using CMake

2010-08-08 Thread Albrecht Schlosser
Anton Deguet wrote: > I am using fltk 1.3.x-r7677. I wanted to try FLTK on Mac OS (10.6) compiled > for x86_64. I used "configure" (not CMake) to compile fltk itself with a > modified configure.in (replaced i386 by x86_64, a temporary hack). fltk > compiles and the tests run well as far as I

Re: [fltk.general] really forcing a redraw

2010-08-08 Thread Albrecht Schlosser
On 08.08.2010, at 17:55, Shai Ayal wrote: >>> I'm using fltk to draw figures for GNU Octave, using OpenGL. I also >>> need to produce "hardcopy" (i.e. a postscript file) of the figure. I >>> do this by using the gl2ps library. I need to redraw to get the file, >>> and this has to be done even if f

Re: [fltk.general] drawing things inside a button

2010-08-17 Thread Albrecht Schlosser
dirac wrote: > [...] > Hi Greg, thank you for your helpfulness! Checking button::value() for > both event and drawing routines is a good idea. > Today I've tested your code and it works very well but I've found a > little glitch if you add another widget outside MyButtonGroup, let's say > a basic F

Re: [fltk.general] Animated GIFs?

2010-08-18 Thread Albrecht Schlosser
On 18.08.2010, at 12:44, MacArthur, Ian (SELEX GALILEO, UK) wrote: > >> Would there be any issues to be expected with setting >> up a timer callback inside the draw() event? This would >> allow the GIF object to 'damage' itself for redrawing >> whenever it's time for the next frame to be displayed.

Re: [fltk.general] Animated GIFs?

2010-08-18 Thread Albrecht Schlosser
Marc R.J. Brevoort wrote: > each GIF frame can have a different duration. This is easier to > implement by setting up single add_timeouts as needed rather than > repeat_timeouts, but probably run less efficiently. As Ian wrote already, each time you call add/repeat_timeout, you have to specify th

Re: [fltk.general] Animated GIFs- getting closer

2010-08-25 Thread Albrecht Schlosser
On 25.08.2010, at 08:51, chris wrote: >> First of all- I can't call redraw() from Fl_GIF_Image- >> this method does not seem to be available for any of its >> parent classes, > > This is certainly THE major problem. > The only way I see to trigger a redraw from a class not inherited from > Fl_Widg

Re: [fltk.general] Animated GIFs- getting closer

2010-08-25 Thread Albrecht Schlosser
On 25.08.2010, at 12:38, Marc R.J. Brevoort wrote: > I have yet to fully comprehend what Fl_Shared_Image > actually does- I see it's some sort of cache, but > its name also seems to imply that memory is allocated > only once if an image is used multiple times or > something? Yes, that's both true

Re: [fltk.general] Current version not on server

2010-08-27 Thread Albrecht Schlosser
On 27.08.2010, at 16:42, Ben Rogall wrote: > 1.3.x-r7692 does not seem to be available from the download page. You need to wait some time until the newest version propagates to all mirrors. The version you mention has been uploaded to the FLTK main server only about 8 hours ago. Depending on the s

Re: [fltk.general] Scrolling Fl_Help_View?

2010-09-01 Thread Albrecht Schlosser
On 01.09.2010, at 01:18, Marc R.J. Brevoort wrote: > is there any way to programmatically scroll an > Fl_Help_View all the way down? void Fl_Help_View::topline (int top) I didn't test/use it, but the docs sa

Re: [fltk.general] Q: solved? Re: need help: tooltip & popup is outside window

2010-09-03 Thread Albrecht Schlosser
On 03.09.2010, at 08:58, mark olesen wrote: > The problem I am trying to overcome is the flurry FLTK messages that call a > resize() method -- it is a flurry of superfluous events. It does not make > sense to go through a bunch of code when in fact only the position changed > was an x or y coord

Re: [fltk.general] Q: solved? Re: need help: tooltip & popup is outside window

2010-09-03 Thread Albrecht Schlosser
On 03.09.2010, at 10:19, Albrecht Schlosser wrote: > The real problem is probably that you don't call > Fl_Widget::resize() at all, if w() and h() didn't change. > This would technically result in *rejecting* the request. > However, since your widget is derived from Fl_Doubl

Re: [fltk.general] Q: solved? Re: need help: tooltip & popup is outside window

2010-09-03 Thread Albrecht Schlosser
[I apologize for replying to my own message a 2nd time] On 03.09.2010, at 10:19, Albrecht Schlosser wrote: > The real problem is probably that you don't call > Fl_Widget::resize() at all, if w() and h() didn't change. This should actually be Fl_Double_Window::resize(). Oth

Re: [fltk.general] Different icons for different windows (win32)

2010-09-09 Thread Albrecht Schlosser
On 09.09.2010, at 01:00, Roman Kantor wrote: > I am trying to use different icons for different windows in my app under > windows - using Fl_Window::icon() method. > However all the windows get the icon set by the first one no matter what I > pass to the others. > > Maybe to have different icons

Re: [fltk.general] Different icons for different windows (win32)

2010-09-09 Thread Albrecht Schlosser
On 09.09.2010, at 14:40, Roman Kantor wrote: > On 09/09/2010 10:50, Albrecht Schlosser wrote: > >> >> IMHO you don't need a workaround. It should be perfectly legal to use >> more than one window class with the same WndProc function, and that's >> what FL

Re: [fltk.general] installation on Windows XP

2010-09-17 Thread Albrecht Schlosser
On 17.09.2010, at 08:19, pratvik.roy wrote: > can any one please guide me with the installation steps of FLTK. > like which version best suits for windows XP , what has to be done after > downloading the setup file and things like that. As Ian wrote already, that depends on the tools you are usi

Re: [fltk.general] displaying data variables dynamically

2010-09-19 Thread Albrecht Schlosser
On 19.09.2010, at 13:19, paul wrote: > hi can anyone suggest a way to output fast changing data, float percentages, > counter integers etc? do i have to use an output box and mess with string > conversion and clearing box all time or is there a native printf style > formatted call? If it's for

Re: [fltk.general] displaying data variables dynamically

2010-09-20 Thread Albrecht Schlosser
On 20.09.2010, at 13:51, paul schrieb: ... in the FLTK it looks like the program reaches an end when it hits the return(Fl::run()); as it is the last accesible statement in Main, where is F1 run() executing? so there is an event handling loop running 'somewhere' That's exactly what it is doi

Re: [fltk.general] displaying data variables dynamically

2010-09-20 Thread Albrecht Schlosser
On 20.09.2010, at 16:39, paul wrote: Given what i've read today and how it differs from my traditional idea of event handling, i think this be accomplished just with the native event structures as descirbed and a single thread. but, given this CPU usage issue (i may block or warn users at cer

Re: [fltk.general] displaying data variables dynamically

2010-09-22 Thread Albrecht Schlosser
On 21.09.2010, at 12:32, paul wrote: > Thanks Albrecht, I have copied this to a file and will review later, at first > glance it seems to be an evolved version of your earlier button example which > I found useful working last night. Yep, that's true. It simulates a long-running callback (by us

Re: [fltk.general] displaying data variables dynamically

2010-09-22 Thread Albrecht Schlosser
On 22.09.2010, at 14:19, paul wrote: > But like Colombo...'just one more thing..'> > > button->callback(button_cb); > > why only one argument in this? Just as you like and need it, the 2nd arg. is optional. If you don't use it, this call doesn't touch the user_data variable. > when below: > > vo

Re: [fltk.general] compiling fltk-1.1.10 on windows 7 64bitwithgcc-4.5.1 from mingw64

2010-09-23 Thread Albrecht Schlosser
On 23.09.2010, at 10:37, MacArthur, Ian (SELEX GALILEO, UK) wrote: > >> This ugly hack might sufficiently fool the compiler, at least >> for another 10 years, LOL: >> >> long argument() const {return *((long*)user_data_);} >> >> I'm not sure what the 'right' solution is,

Re: [fltk.general] compiling fltk-1.1.10 on windows 764bitwithgcc-4.5.1 from mingw64

2010-09-29 Thread Albrecht Schlosser
On 28.09.2010, at 23:22, Ian MacArthur wrote: > ... Here, at this point in the > code, what we are trying to do is form a UUID on a WinXX system that > does not have the UuidCreate() function available (probably because it > does not have the Rpcrt4.dll available for some reason...) ... > So, wi

Re: [fltk.general] compiling fltk-1.1.10 on windows 764bitwithgcc-4.5.1 from mingw64

2010-09-29 Thread Albrecht Schlosser
On 29.09.2010, at 10:24, MacArthur, Ian (SELEX GALILEO, UK) wrote: > More worryingly, I notice that the "unix" branch of that conditional > section has the same error in its implementation, so we need to fix that > too, I think. Are you going to do that? I'd appreciate it, since it's your code an

Re: [fltk.general] integrating gstreamer into an FLTK application?

2010-09-29 Thread Albrecht Schlosser
On 28.09.2010, at 23:27, Paul E. Rybski wrote: > I've recently started using gstreamer as a mechanism for transmitting > audio (ALSA) and video (V4L) from one Linux machine to another. I've > put together a couple of nice gst-launch scripts that do the job for me. > However, I'd now like

Re: [fltk.general] integrating gstreamer into an FLTK application?

2010-09-30 Thread Albrecht Schlosser
On 29.09.2010, at 16:02, Paul E. Rybski wrote: > Now, I'm still learning what gstreamer can and can't do and I've only > explored the command-line usage of it rather than the C API that appears > to be heavily embedded into the GTK framework. As far as I can tell, > what I need to try to do is to

Re: [fltk.general] compiling fltk-1.1.10 on windows 764bitwithgcc-4.5.1 from mingw64

2010-09-30 Thread Albrecht Schlosser
On 30.09.2010, at 10:30, MacArthur, Ian (SELEX GALILEO, UK) wrote: >>> More worryingly, I notice that the "unix" branch of that conditional >>> section has the same error in its implementation, so we >> need to fix that >>> too, I think. >> >> Are you going to do that? I'd appreciate it, since it'

Re: [fltk.general] GlWindow cursor problem (FLTK 2.0)

2010-10-07 Thread Albrecht Schlosser
On 07.10.2010, at 02:38, Ben Stott wrote: > >> Hmmm...that's interesting. Ben: I built a minimal project using only the >> code you provided and the cursor worked correctly. However, when I add the >> GlWindow to a parent Window, I get the aforementioned cursor error. > > So I'm not currently abl

Re: [fltk.general] Printing in FLTK 1.1.10

2010-10-08 Thread Albrecht Schlosser
On 08.10.2010, at 18:04, David Lopez wrote: > What method or patch would you suggest nowadays for printing in version > 1.1.10 on WIN32? Switch to 1.3.0 ;-) FLTK 1.3 is API-compatible with FLTK 1.1, so that you can run most apps simply by compiling with 1.3.0. However, 1.3.0 is still beta (not

Re: [fltk.general] Undefined reference to fl_graphics_driver

2010-10-09 Thread Albrecht Schlosser
On 09.10.2010, at 11:29, Marc R.J. Brevoort wrote: > When linking an fltk app, I'm getting an Undefined reference to > fl_graphics_driver. FLTK version is FLTK 1.1.10. I'm linking > using the following flags: > > -lstdc++ -lgcc `fltk-config --ldstaticflags --libs --use-images > --use-gl` -lm -laso

Re: [fltk.general] Undefined reference to fl_graphics_driver

2010-10-10 Thread Albrecht Schlosser
On 10.10.2010, at 10:02, Marc R.J. Brevoort wrote: > The tabs weirdness I've been experiencing went away when I removed FLTK > 1.3.x entirely and reinstalled 1.1.7 (the version I'd previously been > building with). I'm not sure yet what to make of this- I'd rather keep > working with an up-to-date

Re: [fltk.general] Fluid: What do the shell menu items do

2010-10-11 Thread Albrecht Schlosser
On 11.10.2010, at 09:30, Steven Borley wrote: > In Fluid (from fltk-1.3.x-r7709) the Shell menu has four items that I can't > find documentation for, and although their names haven't helped me. > > They are... > --fltkdb > --dbxcode3 > --dbvisualc6 > --dbmake > > They all crash Fluid on Windows Vi

Re: [fltk.general] I can't compile FLTK!

2010-10-18 Thread Albrecht Schlosser
On 18.10.2010, at 11:02, Stewart wrote: >>> I'm using windows xp and trying to compile with=20 >>> gcc (my ide is code::blocks). When I compilied the library, I=20 >>> actually used MSYS, but am about to try with Visual Studio in=20 >>> case there is something wrong with using MSYS >> >> There

Re: [fltk.general] Curious Callbacks

2010-10-18 Thread Albrecht Schlosser
On 18.10.2010, at 12:49, Paul R wrote: I first got the seg fault calling activate() on the input fields directly within the callback for the button., i only added the reset function to try and get around the issue or simply see if any difference. will this seg fault be heirarchy related also d

Re: [fltk.general] Curious Callbacks

2010-10-18 Thread Albrecht Schlosser
Paul R wrote: > ... that 3D thing still needs to be looked at by me though, ... s/=3D/=/ (i.e. replace "=3D" with "="). That's because of: "Content-Transfer-Encoding: quoted-printable" is used. I don't see the 3D in my mail client, though (only if I look at the "source view"). Albrecht __

Re: [fltk.general] Curious Callbacks

2010-10-18 Thread Albrecht Schlosser
Paul R wrote: >> That "=3D3D" is just stupid outlook being stupid about escaping the "=3D" >> symbol... It's a pain... And, as I would add, it's a *recursive* pain ;-) Albrecht ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listi

Re: [fltk.general] Scrolling a text file

2010-10-21 Thread Albrecht Schlosser
On 21.10.2010, at 15:14, Paul R wrote: > Hi all, i am scratching around looking for the appropriate method to have > scroll bars that will move text up and down in a display window. > > i was messing about with a scroll group and then saw in 2.0 docs that it is > for panning around an image reall

Re: [fltk.general] fltk-1.x : parsing command line arguments

2010-10-22 Thread Albrecht Schlosser
On 22.10.2010, at 10:17, Duncan Gibson wrote: > I've never really needed to handle command line arguments in FLTK > before because there's always been some menu option or config file. > I was pleasantly surprised at how easy it is once you've managed > to grok the docs, and decided to post this sim

Re: [fltk.general] Comments not working for certain articles

2010-10-22 Thread Albrecht Schlosser
On 22.10.2010, at 19:35, Greg Ercolano wrote: > Matthias Melcher wrote: >> On 22.10.2010, at 15:48, Greg Ercolano wrote: >> >>> I wanted to add some comments to this article: >>> http://fltk.org/applications/articles.php?L449+I0+T+P3+Q#_USER_COMMENTS >>> .but when I click on the "Submit Comment" bu

Re: [fltk.general] error on make 1.1.9, plz help

2010-11-02 Thread Albrecht Schlosser
On 02.11.2010, at 04:08, eric wrote: > I follow Greg's suggestion, download that zip file and goto FLTK, then > autoconf > make > but here is the trouble/errors I meet. > - > filename_list.cxx: In function �int fl_filename_list(const

Re: [fltk.general] fluid can't find shared libraries

2010-11-03 Thread Albrecht Schlosser
On 02.11.2010, at 21:26, Darren wrote in fltk.bugs: [reply posted to fltk.general] > I am building fltk-1.1.10 with shared libraries enabled so it links properly > with InsightApplications. The build works find and fluid runs fine as long as > it is in the build/bin directory. Okay so far, alt

Re: [fltk.general] undefined reference to `fl_graphics_driver' of make error, plz help

2010-11-06 Thread Albrecht Schlosser
On 06.11.2010, at 07:22, eric wrote: > Dear Fltk programers: > >I find a lot fl_graphics_driver in "fl_draw.H" but not in "fl_draw.cxx" > my current link version of fltk used to compile my chapter.12.3 program(of > book of Mr. Bjarne Stroustrup-"Programming-Principle and practice using c++" >

Re: [fltk.general] Set window icon in Windows

2010-11-11 Thread Albrecht Schlosser
On 11.11.2010, at 13:16, Shuiling wrote: > Hi FLTK users, > > I want to change the window icon in Windows and the compiler I use is VS2008. > According the tip in FLTK documentation - "Setting the Icon of a > Window"(link: http://www.fltk.org/doc-1.1/osissues.html), but it does not > work. > > T

Re: [fltk.general] Is Cups printing support planned for fltk-1.3 ?

2010-11-15 Thread Albrecht Schlosser
Per Grahn wrote: > I need advanced printing on all platforms in an application and found that on > the win32 and apple platforms, but not on unix. I think what cups printing > could be implemented relatively easily, but it require that the class > Fl_PostScript_Driver will be updated to support

  1   2   3   4   5   6   7   8   9   >