Re: [fltk.development] [RFE] STR #2951: DoubleSlider for selecting low and high values within min/max range

2013-04-21 Thread Ian MacArthur
On 14 Apr 2013, at 13:57, Duncan Gibson wrote: I have an application with a colour bar type legend which does not give the required resolution, so I needed to be able to adjust the low and high values in an intuitive but minimally invasive way on screen. I hacked together the following

Re: [fltk.general] Fl_tile: don't shrink, just shift

2013-04-21 Thread Ian MacArthur
On 20 Apr 2013, at 22:04, dirac wrote: I'm building a stack of horizontal widgets, like that (I hope the ASCII art works): +---Fl_tile---+ | +-+ | | | widget 0| | | +-+ | | +-+ | | |

Re: [fltk.bugs] [MOD] STR #2935: Fl_File_Browser::load() improvements for Unix

2013-04-16 Thread Ian MacArthur
[STR Closed w/Resolution] Link: http://www.fltk.org/str.php?L2935 Version: 1.3-current Fix Version: 1.3-current (r9884) STR 2935 applied in svn. Thanks to Michael Baeuerle for the patch. Link: http://www.fltk.org/str.php?L2935 Version: 1.3-current Fix Version: 1.3-current (r9884)

Re: [fltk.development] fluid - Adding win32 icon

2013-04-16 Thread Ian MacArthur
On 16 Apr 2013, at 19:03, Greg Ercolano wrote: So I imagine most folks would be managing the resource files by hand now, I honestly don't know: I've been using the mingw tools in preference to the MS tools for so long now, that I'm not sure what would be deemed normal any more! I

Re: [fltk.general] [FLTK 1.3] FilesystemlistinFl_File_Browser(STR#2935)

2013-04-16 Thread Ian MacArthur
On 16 Apr 2013, at 23:03, Michael Baeuerle wrote: MacArthur, Ian (Selex ES, UK) wrote: OK - pushed at #9884 I have checked out and tested the final version from SVN again on all relevant platforms and it still works as expected. Excellent: thanks for checking!

Re: [fltk.development] fluid - Adding win32 icon

2013-04-15 Thread Ian MacArthur
On 15 Apr 2013, at 17:53, David FLEURY wrote: Le 25/03/2013 22:07, David FLEURY a écrit : I found an easy tool (VarilconsRevolve) Here a new patch. I remove all unnecessary lines from the rc file and fluid_resource.h I just remove cygwin (I have no cygwin installed, I can't not test).

Re: [fltk.development] fluid - Adding win32 icon

2013-04-15 Thread Ian MacArthur
On 15 Apr 2013, at 21:28, David FLEURY wrote: Le 15/04/2013 21:57, Ian MacArthur a écrit : Is there an STR for this somewhere? I can't find it... so I can't find the patch. I am not used to create a STR. I did not create one. Ah. That's gong to make it very hard for us to view

Re: [fltk.development] fluid - Adding win32 icon

2013-04-15 Thread Ian MacArthur
On 15 Apr 2013, at 22:13, Greg Ercolano wrote: On 04/15/13 13:28, David FLEURY wrote: Le 15/04/2013 21:57, Ian MacArthur a écrit : Is there an STR for this somewhere? I can't find it... so I can't find the patch. I am not used to create a STR. I did not create one. Ian; he

Re: [fltk.development] [RFE] STR #2948: Add a method to Fl_Widgetthat returns its top-level window

2013-04-12 Thread Ian MacArthur
On 12 Apr 2013, at 18:44, Albrecht Schlosser wrote: Using const_cast is only another way to write it, but means the same essentially, doesn't it? However, if some compilers wouldn't flag a warning for const_cast but would for the old-style cast, then we could maybe use it, but according to

Re: [fltk.development] [RFE] STR #2948: Add a method toFl_Widgetthat returns its top-level window

2013-04-12 Thread Ian MacArthur
On 13 Apr 2013, at 00:07, Greg Ercolano wrote: On 04/12/13 13:19, Ian MacArthur wrote: I'm in favour of allowing the C++ style casts. I expect that it probably works with all the extant compilers now? Does anyone know for sure? The static_cast mod flew in all my tests on redhat9

Re: [fltk.general] Caps Lock detection

2013-04-11 Thread Ian MacArthur
On 11 Apr 2013, at 18:34, Greg Ercolano wrote: I guess we should see how Win32 and OSX behave, and if they're reliable as well, we should either: 1) Document the OS specific behavior, whether different or same, and leave the code alone 2) Pick one

Re: [fltk.general] Caps Lock detection

2013-04-10 Thread Ian MacArthur
On 10 Apr 2013, at 17:25, Howard Rubin wrote: I don't agree. Most login screens warn immediately if capslock is on because their password fields don't echo input. Though it does appear that, at least if there is any prospect that your users will be running Linux in a VBox VM, that we may

Re: [fltk.general] Dynamic linking with fltk 1.3 ?

2013-04-09 Thread Ian MacArthur
On 9 Apr 2013, at 17:34, Nikita Zlobin wrote: Hello. I determined, that fltk 1.1 by default proposes shared versions of its libraries, when 1.3 - static. All fltk variants will support either dynamic or static linking. The default in the configure scripts is static linking, but if you

Re: [fltk.general] Caps Lock detection

2013-04-09 Thread Ian MacArthur
On 9 Apr 2013, at 20:18, Howard Rubin wrote: On Mon, 08 Apr 2013 20:17:31 -0700, Greg Ercolano e...@seriss.com wrote: unsigned n; XkbGetIndicatorState(d, XkbUseCoreKbd, n); caps_state = (n 0x01) == 1; That works perfectly, and even better, needs no

Re: [fltk.general] Caps Lock detection

2013-04-09 Thread Ian MacArthur
On 9 Apr 2013, at 22:02, Greg Ercolano wrote: On 04/09/13 12:29, Greg Ercolano wrote: we could perhaps provide a wrapper to get the state of the keyboard LEDs (for operating systems that provide this) e.g. fl_get_indicators() or some such that returns flags. Maybe

Re: [fltk.general] FLTK-1.3 group button menus in wrong placewherearranged

2013-04-08 Thread Ian MacArthur
Yep, this was suggested as a workaround only, either to see how it can be done (just for learning), or if one really wants to use Fl_Pack. Deriving from Fl_Pack (as I assume you meant above) for another container widget and do the polling makes things even worse, but I assume that you only

Re: [fltk.development] [RFE] STR #2945: Virus is detected when being compiled in MSVS 2010

2013-04-06 Thread Ian MacArthur
Actually, I suspect it is more likely to be a false positive than anything else.At various times in the past I have had AVG, Norton or McAfee all throw warnings when configure was running; and not just on fltk builds but on other packages too.I suspect that the AV authors aren't particularly

Re: [fltk.development] [RFE] STR #2945: Virus is detected when being compiled in MSVS 2010

2013-04-06 Thread Ian MacArthur
Oh, and it's probably worth saying that I've run a variety of virus scanners over my current stock of fltk builds, with no warnings flagged.That said, I can't reproduce the OP's environment since I have neither VS2010 nor Avira readily to hand.Does look a lot like a false positive... Or maybe the

Re: [fltk.general] fltk3 compile error

2013-04-03 Thread Ian MacArthur
dXRlIGl0cyBjb250ZW50cyB0byBhbnkgb3RoZXIgcGVyc29uLgoqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgo= Thanks for the reply but would you mind translating it? It's unreadable. Marty Sigh... Sorry about that, I thought that was fixed...

Re: [fltk.general] best way to get an int from Fl_Menu_Item user data

2013-04-03 Thread Ian MacArthur
Assuming this is readable this time... (and not more B64 nonsense...) I'm looking at storing an enum as user data in an Fl_Menu_Item user data. In the callback, I want to access the enum. I know that I can put the enum into user data as a string: enum eop { task0=200, task2, task3};

Re: [fltk.general] best way to get an int from Fl_Menu_Item user data

2013-04-03 Thread Ian MacArthur
On 3 Apr 2013, at 17:34, Greg Ercolano wrote: On 04/03/13 08:44, marty moore wrote: I notice that old examples used int i = (int)v; but that won't work with gcc-4.4.5 Right -- probably a precision loss error during the void* - int, since sizeof(void*)==8 and sizeof(int)==4.

Re: [fltk.general] best way to get an int from Fl_Menu_Item user data

2013-04-03 Thread Ian MacArthur
On 3 Apr 2013, at 19:38, Richard Sanders wrote: When I first compiled with 64 bit linux the compiler complained about int i = (int)(v); but was happy with long i = (long)(v); Greg's suggestion of using fl_intptr_t seems like the most portable option, should work *everywhere* I

Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): support multiple lines

2013-03-28 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2941 Version: 1.3-feature This may be possible, but I didn't do it (thinking about it was making my head hurt...) I guess the idea is to use the typographical height of

Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): supportmultiplelines

2013-03-27 Thread Ian MacArthur
On 27 Mar 2013, at 20:16, chris wrote: Ah, I think I understand the difference now, will have a look at the test tomorrow... Though at now cannot imagine a use case for knowing the inking area. Ah, but it turns out that there are quite a lot of uses for knowing the inked area of a

Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): support multiple lines

2013-03-27 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2941 Version: 1.3-feature Yes, I thought about that at the time, but chose not to do it. The problem is, it is not obvious what the right answer is, for a string that

Re: [fltk.general] docking windows

2013-03-21 Thread Ian MacArthur
On 21 Mar 2013, at 13:12, asif saeed wrote: Hi, I have turned to FLTK after a very long time. Almost a new user. I just wanna know if you have support available for docking windows? Or do you have to make do it in order to achieve it? There's no built-in support, though there are a few

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-16 Thread Ian MacArthur
On 16 Mar 2013, at 02:21, Chris Russ wrote: I've been working on a widget that can show images zoomed in and out at arbitrary percentages, and that part works. Now, in the middle of my ::draw() function I want to overlay some RGBA PNG images -- these have transparency where I'd like the

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-16 Thread Ian MacArthur
Correction: I hinted that the unittest_images demo did not work right on X11, but I just fired up a VM to check and it worked fine for me (Ubuntu-12.10 VM) with fltk-1.3.x-r9835 ___ fltk mailing list fltk@easysw.com

Re: [fltk.general] R: Bargraph object with Fl_Group

2013-03-16 Thread Ian MacArthur
On 16 Mar 2013, at 06:28, memoryl...@tin.it wrote: Now a plant is smaller and has only two stations: the remote machine will put some visible booleans to zero... and the graphics app will show only the installed stations. So one can think: I create a group with image, bargraph, boxes and

Re: [fltk.general] R: Re: R: Bargraph object with Fl_Group

2013-03-15 Thread Ian MacArthur
On 15 Mar 2013, at 15:02, memoryl...@tin.it wrote: In general I do not know what there will be under my bargraph : maybe a picture, maybe a filled background. The situation is more similar to the desktop you mentioned. So long as the background is drawn by your app, then it is feasible to

Re: [fltk.general] Webkit as FLTK subwindow?

2013-03-12 Thread Ian MacArthur
On 12 Mar 2013, at 16:28, Roman Kantor wrote: Just asking if there is somebody who tried that (on any platform) or tried to embed other QT widget (as subwindow, that is probably easier as QT widget could use its own event delivery upon that window) for that matter. I don't think I have

Re: [fltk.general] updating style buffer after text change

2013-03-12 Thread Ian MacArthur
On 12 Mar 2013, at 21:14, Steve Maas wrote: I'm stuck with a project and would appreciate some help. I have a Fl_Text_Editor class that uses a style buffer for highlighting keywords in a xml formatted text. Can anyone suggest an efficient way to keep the style buffer updated after the

Re: [fltk.general] Displaying non-english sumbols in OS Windows

2013-03-10 Thread Ian MacArthur
On 10 Mar 2013, at 15:04, Albrecht Schlosser wrote: On 10.03.2013 15:15, Anton Petrov wrote: The problem is that in the windows operating system cyrillic text is incorrectly displaying. How it could be fixed? We need to know which FLTK version you're using. To be able to render cyrillic

Re: [fltk.development] Vote request: addition of two new schemesgrad and gleam

2013-03-09 Thread Ian MacArthur
On 9 Mar 2013, at 01:57, Greg Ercolano wrote: I added a chooser for the different schemes, and squeezed in Edmanuel's widget panel that shows how the schemes look with different widgets. Here's a thought (I haven't checked the latest svn!) do we need to also tweak the test/demo

Re: [fltk.development] Vote request: addition of two new schemes grad and gleam

2013-03-08 Thread Ian MacArthur
On 8 Mar 2013, at 17:31, Greg Ercolano wrote: A request to vote on the addition of the gleam and grad patches to FLTK. There's two STRs for this: http://www.fltk.org/str.php?L2672 http://www.fltk.org/str.php?L2675 Would like to combine and apply. Code seems OK, looking for consensus

Re: [fltk.bugs] [MOD] STR #2931: Re-implement fl_scandir for *nix systems that do not provide a native version

2013-03-06 Thread Ian MacArthur
[STR Closed w/Resolution] Link: http://www.fltk.org/str.php?L2931 Version: 1.3-current Fix Version: 1.3-current (r9833) Applied the simplified version of Michael Baeuerle's scandir_posix patch. Note that this patch does not have all the const correct goodness from the earlier patches, but

Re: [fltk.general] Question about Fl_Input

2013-03-06 Thread Ian MacArthur
On 6 Mar 2013, at 04:35, edgar wrote: I am using Ubuntu 12.10 but eventually I would like to compile this for Windows7 and OSX. By the way, the code you sent compiled right away and runs nicely. Most of it makes sense to me but I need to check out the draw functions more carefully to

Re: [fltk.general] Duplicating a widget on multiple pages

2013-03-06 Thread Ian MacArthur
On 6 Mar 2013, at 16:36, Greg Ercolano wrote: On 03/06/13 08:09, Doug Parks wrote: I am using a Slider Input widget, created from the example on Erco's FLTK Cheat page. I am trying to duplicate the widget on multiple pages such that when I change it on one it is changed on the other page.

Re: [fltk.general] applications, themes, lsb and porting

2013-03-06 Thread Ian MacArthur
On 6 Mar 2013, at 13:46, L Michaels wrote: I've been checking out what Open Source applications run on FLTK 1.3 (currently 1.3.2). There are some nice ones listed on the FLTK Wiki in the Software section. However, I've run across some that aren't listed. Should I submit listings for

Re: [fltk.general] applications, themes, lsb and porting

2013-03-06 Thread Ian MacArthur
On 6 Mar 2013, at 18:18, L Michaels wrote: There were STR's open for some of these theme's, so if you have revised = patches, feel free to add them to the STR's, that way others might be = able to find them! Not to familiar with FLTK's STRs. I think the related STRs are:

Re: [fltk.general] Missing scandir() (STR #2687) - now STR #2931

2013-03-06 Thread Ian MacArthur
On 1 Mar 2013, at 16:27, Michael Baeuerle wrote: Minimally invasive patch: http://micha.freeshell.org/tmp/str_2931_r9827_simple.patch Applied to fltk-1.3 branch at r9833. Michael, can you test on your machines to make sure I have not messed up, please?

Re: [fltk.general] Question about Fl_Input

2013-03-03 Thread Ian MacArthur
On 3 Mar 2013, at 04:36, edgar wrote: I am starting with a simple program to show a whole note on a staff with a treble clef. The user is asked to enter the note name. The program should let the user know if their input was correct and display a running score in the window. OK - that

Re: [fltk.development] FLTK version number update and releaseprocess [WAS: Re: [fltk.bugs] [MOD] STR #2932: 1.3.2 tarball not packagedproperly]

2013-03-01 Thread Ian MacArthur
On 1 Mar 2013, at 15:39, Greg Ercolano wrote: On 03/01/13 01:33, MacArthur, Ian (Selex ES, UK) wrote: What Mike said: As soon as *anything* in SVN changes after a release, we need to bump the version numbers in some way. Or, just change it immediately after release. Changing

Re: [fltk.development] C API experiment

2013-02-22 Thread Ian MacArthur
Hi Patrick,Sounds like you are working your way through the history of language development, but in reverse order!;-)C++ - Ada - Cobol ...!Cheers,-- IanSent, much to my surprise, from my Palm Pre3On 22 Feb 2013 14:46, Patrick patr...@spellingbeewinnars.org wrote: Hi Sanel Thanks for responding to

Re: [fltk.general] change labelfont and labelize in fltk 1.3.2

2013-02-22 Thread Ian MacArthur
On 22 Feb 2013, at 22:16, edgar wrote: Thanks so much for all of the terrific advice. You're welcome: we're happy to help! I have a lot of experience using Finale and ProTools, but I am new to programming. Take a look at Musescore and Rosegarden then - they cover a lot of the same

Re: [fltk.development] C API experiment

2013-02-21 Thread Ian MacArthur
On 21 Feb 2013, at 14:36, Patrick wrote: I've only been using Fltk in pure C++ applications so far. Fltk is worth programming in C++ but I am not crazy about it. I don't like C either actually but it's easier to work with from other languages. I have read some other posts in the past

Re: [fltk.general] change labelfont and labelize in fltk 1.3.2

2013-02-21 Thread Ian MacArthur
On 21 Feb 2013, at 02:35, edgar wrote: I copied hello.cxx from the docs and compiled but the font comes up tiny- definitely not 36 - and does not change when other values are given as arguments. Nor do the fonts change. If you send me an email address I will send a screenshot with code

Re: [fltk.general] change labelfont and labelsize in fltk 1.3.2

2013-02-21 Thread Ian MacArthur
On 21 Feb 2013, at 03:09, edgar wrote: I just installed Xext lib and compiled hello.cxx with -lXext. It compiled but still no change in labelfont and label size. :( See my earlier post - I suspect you are missing more dev packs than just Xext... Also, once you have installed the missing

Re: [fltk.general] change labelfont and labelize in fltk 1.3.2

2013-02-21 Thread Ian MacArthur
On 21 Feb 2013, at 20:33, edgar wrote: I installed the packages above as mentioned. One note according to Ubuntu support: libglut3-dev has been replaced. This package has been replaced by ``freeglut3-dev''. Could this be affecting the fonts? No, that would only affect use of GL and GLUT,

Re: [fltk.bugs] [MOD] STR #2931: Re-implement fl_scandir for *nix systems that do not provide a native version

2013-02-20 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2931 Version: 1.3-current ALbrecht queried whether there are any ABI issues: Micha reports that it looks like there are. In particular, the change of the prototypes of

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-20 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature A thought: Should Fl_X11_File_Chooser maybe be called Fl_Fltk_File_Chooser or some such thing? In that, it is not really X11 specific, it is

[fltk.bugs] [MOD] STR #2931: Re-implement fl_scandir for *nix systems that do not provide a native version

2013-02-19 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2931 Version: 1.3-current Upload Michael Baeuerle's patches to implement a scandir() function that we can use on *nix systems that is free of any potential license

Re: [fltk.bugs] [MOD] STR #2931: Re-implement fl_scandir for *nix systems that do not provide a native version

2013-02-19 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2931 Version: 1.3-current Currently tested on the following systems: -- Windows: - WinXP with mingw32

Re: [fltk.general] change labelfont and labelsize?

2013-02-18 Thread Ian MacArthur
On 18 Feb 2013, at 22:38, edgar wrote: Hi. I am not able to change labelfont() and labelsize() in fltk-1.3.2 I am using the g++ compiler and Ubuntu 12.10. Here is an example of the code with Hello World: #include FL/Fl.H #include FL/Fl_Window.H #include FL/Fl_Box.H int main(int

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-17 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Cool tweaks: very good stuff. But, addressing Sanel's observations: Do we want to do this? I wrote the code more as a proof of concept in

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn'texactly native on linux

2013-02-17 Thread Ian MacArthur
On 16 Feb 2013, at 07:07, Bill Spitzak wrote: Has anybody looked at exec'ing zenity or kdialog, etc? I'd never even heard of zenity until Greg mentioned that JUCE used it... It certainly looks like it could work for us; we'd want zenity --file-chooser zenity --file-chooser --multiple

Re: [fltk.development] RFC: decision on license to use for fltk/examples source code

2013-02-17 Thread Ian MacArthur
On 16 Feb 2013, at 02:19, Greg Ercolano wrote: I guess I kinda like Zlib (#2) or MIT(#3). #4(GPL2) if we can settle on exceptions. I would vote for zlib (#2) but suggest we add an explicit statement that is is OK to take these code examples and incorporate them into your own modules. I'm

Re: [fltk.general] Ubuntu vs Fedora performance GMorgan0.58

2013-02-17 Thread Ian MacArthur
On 14 Feb 2013, at 17:22, Robert Vogel wrote: Thank you for your note. I think you are correct...I DO have an Nvidia card. But, since it was not too straightforward to install the drivers, I didn't prove it. The nVidia driver bundle from their website is pretty easy to install, you just

Re: [fltk.general] Missing scandir() (STR #2687)

2013-02-17 Thread Ian MacArthur
On 16 Feb 2013, at 18:11, Michael Baeuerle wrote: Here it is: http://micha.freeshell.org/tmp/2013-02-16_scandir.tar.gz The archive contains the new implementation, the old implementation and some test programs to compare the new, the old and the native implementation of the system. The

Re: [fltk.general] Ubuntu vs Fedora performance GMorgan0.58

2013-02-12 Thread Ian MacArthur
On 12 Feb 2013, at 21:15, Robert Vogel wrote: Originally the UI was generated using Fluid, but lately I have been hand-coding it. Just to be sure there is no misunderstanding the formerly generated code is now an element called NotGenerated.cxx. It contains a small routine, LightIt, which

Re: [fltk.general] Building code examples using FLTK on recent Linux, and Raspberry Pi

2013-02-11 Thread Ian MacArthur
On 11 Feb 2013, at 20:14, Alec Ross wrote: Thanks Ian, No worries... FWIW, I have built the PPP demo code on Ubuntu-12.10 and OSX now, for a look, linked against 1.3.2... Some comments appended below... 2) A few simple, compilation problems in the example code that were easy to

Re: [fltk.general] FLTK pronunciation [was: EDE/FLTK talks onFOSDEM]

2013-02-11 Thread Ian MacArthur
On 11 Feb 2013, at 22:05, Greg Ercolano wrote: On 02/11/13 01:26, MacArthur, Ian (Selex ES, UK) wrote: If it's a unanimous thing, we should probably change the docs.. or just leave it as one of those odd cultural things? Sure. Like: How do you pronounce OSX? Lol, I

Re: [fltk.general] FL_LEAVE in Fl_Menu_Bar

2013-02-09 Thread Ian MacArthur
On 9 Feb 2013, at 00:06, Howard Rubin wrote: In this program, I've derived from Fl_Menu_Bar and overridden the handle(int) function. That's because I need the submenu to pop up when the mouse enters the the menu, without the user having to press a mouse button. I'm not really clear on

Re: [fltk.general] Fl_Sys_Menu_Bar not honouring programmatic updates to check boxes

2013-02-07 Thread Ian MacArthur
On 7 Feb 2013, at 11:03, MacArthur, Ian (Selex ES, UK) wrote: I have an app that, in its menu structure, has some FL_MENU_TOGGLE entries that show a check mark... Now, depending on various happenings within the code, these check marks may be set or cleared programmatically at runtime,

[fltk.general] Fl_Sys_Menu_Bar not honouring programmatic updates to check boxes

2013-02-06 Thread Ian MacArthur
(Maybe one for Manolo?) I have an app that, in its menu structure, has some FL_MENU_TOGGLE entries that show a check mark... Now, depending on various happenings within the code, these check marks may be set or cleared programmatically at runtime, using e.g. item-set(); and item-clear(); All

Re: [fltk.general] Moving symbol on Fl_Menu_Bar Fl_Menu_Item

2013-02-01 Thread Ian MacArthur
On 1 Feb 2013, at 21:54, Howard Rubin wrote: I'm adding a symbol to an Fl_Menu_Item on an Fl_Menu_Bar using set_labeltype(). It's mostly working but when the menu is dropped down, the symbol moves to the left by about 12 units. (BTW, this approach solves the Changing an Fl_Menu_Bar item

Re: [fltk.general] Changing an Fl_Menu_Bar item colors

2013-01-31 Thread Ian MacArthur
On 31 Jan 2013, at 19:40, David Allen wrote: Posts from Ian come up as a big block of letters in my browser. Is this some kind of compressed file or is there a problem somewhere? I use Opera on Ubuntu. Urgh! I had not seen that, they get delivered here OK... But looking on the forum view,

Re: [fltk.general] Changing an Fl_Menu_Bar item colors

2013-01-31 Thread Ian MacArthur
On 31 Jan 2013, at 19:40, David Allen wrote: Posts from Ian come up as a big block of letters in my browser. Is = this some kind of compressed file or is there a problem somewhere? I use = Opera on Ubuntu. Urgh! I had not seen that, they get delivered here OK... But looking on the forum

Re: [fltk.development] [RFC] a new class to support Internationalization

2013-01-29 Thread Ian MacArthur
On 29 Jan 2013, at 17:35, Sanel Zukan wrote: Maybe question is why FLTK does not support (GNU) gettext across whole library? This way translation strings could be handled in more standard way and you will get for free a bunch of tools or services like Transifex. Hi Sanel, I'm not clear what

Re: [fltk.development] [RFE] STR #2925: Inherit Fl_Menu_Window from Fl_Double_Window to avoid flickering

2013-01-28 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2925 Version: 1.3-feature I'm not sure what's being reported/requested here, or the context in which it is needed, can the OP please expand or clarify the situation? In

Re: [fltk.development] [RFE] STR #2926: Remove hardcoded extra pixels from menu window size

2013-01-28 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2926 Version: 1.3-feature Can you mock up some expamples of how you'd expect it to look, and post these here too, for reference? Link: http://www.fltk.org/str.php?L2926

Re: [fltk.development] [RFE] STR #2927: Please replace LEADING constant in FL_Menu.cxx to something changeable

2013-01-28 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2927 Version: 1.3-feature Not sure what's being asked for here - the menu's look OK to my eyes... Can you post a mock-up of how you expected it to look? Link:

Re: [fltk.development] [RFE] STR #2925: Inherit Fl_Menu_Window from Fl_Double_Window to avoid flickering

2013-01-28 Thread Ian MacArthur
[STR Closed w/o Resolution] Link: http://www.fltk.org/str.php?L2925 Version: 1.3-feature Closed at the request of the OP Link: http://www.fltk.org/str.php?L2925 Version: 1.3-feature ___ fltk-dev mailing list fltk-dev@easysw.com

Re: [fltk.development] [RFE] STR #2929: New Fl_I18n class to support internationalization of FLTK apps

2013-01-28 Thread Ian MacArthur
On 28 Jan 2013, at 21:49, Manolo Gouy wrote: Link: http://www.fltk.org/str.php?L2929 Version: 1.3-feature A major issue: Fluid support for i18n is missing. I thought fluid could help with i18n... Yes, if you go Edit-Project Settings then you can select catgets or gettext support, and

Re: [fltk.general] Segmentation fault when calling Fl_Output-value()

2013-01-25 Thread Ian MacArthur
On 25 Jan 2013, at 04:56, Moses McKnight wrote: I'm using the latest svn of fltk 1.3, and I have a simple window with an Fl_Output. When I call the value(const char*) function with a string I get a segmentation fault, and running it in the debugger shows it happens in the

Re: [fltk.development] [RFE] STR #2816: Add ability to set proper window icons

2013-01-21 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2816 Version: 1.3-feature This being so (the ABI safety of said patch) then I think this would be good to add... What do others think? Link:

Re: [fltk.development] [RFE] STR #2636: notification of clipboard changes

2013-01-21 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2636 Version: 1.4-feature Great - if this is indeed ABI-neutral then I am in favour... What do others think? Link: http://www.fltk.org/str.php?L2636 Version:

Re: [fltk.general] GIF Image

2013-01-21 Thread Ian MacArthur
Hi Marc, On 21 Jan 2013, at 17:21, Marc R.J. Brevoort wrote: On Thu, 17 Jan 2013, Ian MacArthur wrote: Somebody (maybe Albrecht? Can't recall now, it was a while ago...) did post patches to implement animated GIF's, but that was some time (years) ago, and there seemed to be no demand

Re: [fltk.general] Open a menu with Mouse hover

2013-01-21 Thread Ian MacArthur
On 21 Jan 2013, at 17:39, Howard Rubin wrote: How can I get a menu item to drop down by hovering the mouse? In this program, clicking on the File menu will drop it down, and then I can just move the mouse over the Edit menu to drop it down. I need the File menu to drop down when I move

Re: [fltk.general] Abstract platform driver layer

2013-01-21 Thread Ian MacArthur
On 21 Jan 2013, at 15:28, Christopher James Huff wrote: There seems to be little in the way of an organized abstraction of the underlying platform, with platform-specific code instead being scattered here and there through the codebase. Has it been considered to take the approach used for

Re: [fltk.development] [RFE] STR #829: Support for animated GIFs in Fl_GIF_Image

2013-01-19 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L829 Version: 2.0-feature Yes, I agree with Greg, this looks do-able now, with the ABI guards and so forth in place, and Marc's code looks decent, though might need poking

Re: [fltk.development] [RFE] STR #829: Support for animated GIFs in Fl_GIF_Image

2013-01-19 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L829 Version: 3.0-feature For now, I'm moving this to 3.0 (as it seems more appropriate there than 2.0) but I think we should consider putting onto 1.3.x with a suitable

Re: [fltk.general] Activate buttons - was: GIF Image

2013-01-19 Thread Ian MacArthur
On 19 Jan 2013, at 15:39, Ian MacArthur wrote: On 18 Jan 2013, at 23:49, George wrote: Now i have another question I'm kind of a beginner in fltk. I have a window with some input widgets and a button which is deactiveted initially. I want to activate the button when i insert text

Re: [fltk.general] Activate buttons - was: GIF Image

2013-01-19 Thread Ian MacArthur
Urgh - that's irritating. I just saw my own post, and it looks like the mail server has mangled it somewhat. I thought that only happened when I was using MS Outlook, not with Apple Mail, but apparently Apple Mail gets mangled now too. Oh well... Is this any better (re-posting, sorry!) //

Re: [fltk.development] [RFE] STR #2918: fltk-config adds unneeded libraries

2013-01-17 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2918 Version: 1.3-feature I can't see how this patch can be correct for the general case where the linked libs refferd to are needed... In the general case, XFT et al

Re: [fltk.general] GIF Image

2013-01-17 Thread Ian MacArthur
On 17 Jan 2013, at 22:54, George wrote: I am trying to insert a gif into a window but even though i use FL_GIF_Image and even the picture is .gif , it' s still looking just like a normal static picture in the window. Fltk's built-in GIF handling does not support animated GIF's, only

Re: [fltk.development] [RFE] STR #2816: Add ability to set proper window icons

2013-01-16 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2816 Version: 1.3-feature The patch looks OK to me, but I worry it may be ABI breaking? If so, we'll need to put ABI guards around it to stop it breaking any builds that

Re: [fltk.development] [RFE] STR #2860: Multi-head full screen support

2013-01-16 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2860 Version: 1.3-feature I quite like the idea of this patch, but do we need ABI guards around the new bits to prevent it breaking builds for folk using dynamic linking?

Re: [fltk.development] [RFE] STR #2636: notification of clipboard changes

2013-01-16 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2636 Version: 1.4-feature I think this would be useful - but it looks like an ABI-breaker to me (but what do I know!?) so maybe we need to defer it...? Thoughts? Link:

Re: [fltk.development] [RFE] STR #2816: Add ability to set proper window icons

2013-01-16 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2816 Version: 1.3-feature @Greg: Quite probably - I'm quite happy to be wrong about ABI issues here, which is really why I flagged it up, so that someone who knows what

Re: [fltk.general] Nedit using fltk - Experimentation

2013-01-16 Thread Ian MacArthur
On 16 Jan 2013, at 17:33, David FLEURY wrote: Hi, during my last vacation, I have tried to learn FLTK, so I decided to work on porting NEdit to FLTK. After my third attempt, I made this thing (I call it NEdit++). This is quite ugly - and buggy , my aim was just to see how to write GUI

Re: [fltk.general] Remove X11 dependency

2013-01-16 Thread Ian MacArthur
On 16 Jan 2013, at 18:26, Lyubomyr wrote: Hello, I'm developing a program that should be able to run in environments that don't have X11 available. The program at start should check if x11 is available and if so then start FLTK based UI and CLI version otherwise. I was going to do

Re: [fltk.general] OpenGL + widgets

2013-01-15 Thread Ian MacArthur
On 15 Jan 2013, at 01:20, Christopher James Huff wrote: On 2013-01-14 16:32:03 -0500, Ian MacArthur said: Is there an easy way to render a standard window to an image? It'd greatly streamline testing if I could do comparisons in the app itself. It's pretty easy to make a group that just

Re: [fltk.general] OpenGL + widgets

2013-01-14 Thread Ian MacArthur
On 14 Jan 2013, at 20:10, Christopher James Huff wrote: On 2013-01-13 17:32:52 -0500, Ian MacArthur said: But I think an actual GL driver layer would work better... Though handling of fonts might always be problematic - drawing TT fonts in Windows GL is actually easier. MS did do some

Re: [fltk.general] Manage focus with Suggestions popup/win/menu

2013-01-13 Thread Ian MacArthur
On 12 Jan 2013, at 03:17, Denton Thomas wrote: Using Fl_Window (Fl_Double_Window) + set_non_modal() is definitely easier, and does not hog input. Thanks for mentioning that, Ian. New problem, though. Test code is below. Regardless of what group/win type I use, mouse input will pass

Re: [fltk.general] OpenGL + widgets

2013-01-13 Thread Ian MacArthur
On 13 Jan 2013, at 20:59, Christopher James Huff wrote: Is there a recommended approach to drawing FLTK widgets inside or on top of an OpenGL window? Not as such... I see a few ways to approach this. The simplest way to get quick results seems to be to subclass widgets to provide OpenGL

Re: [fltk.development] Amalgamation

2013-01-02 Thread Ian MacArthur
On 2 Jan 2013, at 11:08, superbem wrote: Happy new year! Another very nice feature regarding amalgamation, to the Fluid, would be a feature to have an generate code option to produce an amalgamation with the widgets used, then it includes the code on 3 files, the 2 as it are already

Re: [fltk.general] Time out Reentrance on Windows

2013-01-02 Thread Ian MacArthur
On 2 Jan 2013, at 11:12, claude roux wrote: Hello, The way I use FLTK encompasses some level of re-entrance. However, I discovered a little problem in the way add_timeout is used on Windows. If I initialize a first timeout, it works like a charm... If I try to relaunch a new timeout

Re: [fltk.general] scroll to focus in Fl_Scroll

2013-01-02 Thread Ian MacArthur
On 2 Jan 2013, at 12:14, Albrecht Schlosser wrote: Yep, that's also correct, but fortunately normal FLTK widgets don't *use* the navigation keys. Hence, navigation key events usually return zero from the widget's handle() method, and the group gets it. Ah, but there's a thought... If

Re: [fltk.general] Time out Reentrance on Windows

2013-01-02 Thread Ian MacArthur
On 2 Jan 2013, at 13:30, claude roux wrote: However, after reading your response, I came to realize that one specificity of my implementation is that the FLTK main loop is launched within a thread, which is usually OK for most things, except as it appears for the timeout (and also as I

  1   2   3   4   5   6   7   8   >