Re: [fltk.general] OT: Making application run once

2013-02-16 Thread Sanel Zukan
Hi, If you are going to run your program on Linux/Unix, you can use DBus and it's feature to assign unique name to connected client; example of this you can find at: http://sundaram.wordpress.com/2010/01/08/single-instance-apps-using-d-bus/ However, if you are thinking to make it OS inferior or

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

2013-02-11 Thread Sanel Zukan
Greg Ercolano wrote: > Accurate by the docs, but I've just gotta say, > I don't think I've ever actually heard anyone refer to fltk > as 'fulltick' in real life. Really? There isn't many FLTK users around me so I just followed the docs, but if you guys prefer it be called by spe

Re: [fltk.general] EDE/FLTK talks on FOSDEM

2013-02-11 Thread Sanel Zukan
ecify this. But, thanks for the info :) Sanel Kai-Uwe Behrmann wrote: > Am 10.02.2013 23:39, schrieb Sanel Zukan: > > [2] http://edeproject.org/slides/fosdem-2013-fltk.pdf > > FLTK CinePaint is still in the (stalled?) starter phase and far away > from production use. It&#

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

2013-02-10 Thread Sanel Zukan
True; this would be quite challenging to achieve as Fl_Menu_Item provides only plain draw(). For the similar reason (to add icons support inside menu items) I had to literally 'fork' the whole menu hierarchy :S Sanel On Thu, Jan 31, 2013 at 05:50:21AM -0800, MacArthur, Ian (Selex ES, UK) wrote:

Re: [fltk.general] Printing in multi-thread app

2013-02-10 Thread Sanel Zukan
Hi, Sorry for a bit delay for reply: have you manage to solve this issue? I'm not running Windows so it is a bit hard to reproduce exact same behavior (on linux FLTK will run FLTK builtin dialog). The first question is (after I quickly scanned your previous posts) why it take so long to show Wind

Re: [fltk.general] EDE/FLTK talks on FOSDEM

2013-02-10 Thread Sanel Zukan
Sorry for replying a little bit late; the trip to conference and back took some time :) AFAIK lightingtalks were recorded and placed on FOSDEM web pages, however cross-desktop was not. But here are the slides: [1], [2]. Too bad you wasn't there; the event was amazing and fair number of people att

Re: [fltk.general] Printing in multi-thread app

2013-01-29 Thread Sanel Zukan
Two strategies comes to my mind (maybe others with more experience will have better ideas): * put both start_job()/end_job() in different thread, protect them with Fl::lock()/Fl::unlock(), and after it gets completed, call Fl::awake(NULL) to notify the main thread * the second one is to put start

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

2013-01-29 Thread Sanel Zukan
Hi, I had a similar requirement some time ago, so workaround like this helped me. There are hidden gems here and there... :) Sanel On 01/28/2013 03:10 PM, MacArthur, Ian (Selex ES, UK) wrote: > Hi Sanel, > > That's neat - I didn’t know that worked! > > >> First you need to assign callback to

Re: [fltk.general] Printing in multi-thread app

2013-01-29 Thread Sanel Zukan
Have you tried to use locking described at: http://www.fltk.org/doc-1.3/advanced.html? AFAIK, end_job() will access FLTK drawing facility again, which is probably the cause why you are getting blocked UI again. Sanel On 01/28/2013 07:51 PM, David Lopez wrote: > Hi everybody, > I have a multi-thr

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

2013-01-28 Thread Sanel Zukan
First you need to assign callback to desired Fl_Menu_Item, whose colors you are going to change. From callback you can access Fl_Menu_Bar and by using mvalue() member, you can access to selected item; from there you can change label color, background and etc. Here is example: static void color_cb

Re: [fltk.general] Subwindow not showing

2013-01-28 Thread Sanel Zukan
How you are adding elements to subwindow? Did you call parent's end() after subwindow was created? Can you put some small working example that reproduce this behavior? Sanel On 01/24/2013 05:09 PM, Daniel Fournier wrote: > Hi there, > > I'm using FLTK and FLUID (1.3.2) to reorganise a complex s

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

2013-01-28 Thread Sanel Zukan
You can inherit Fl_Menu_Bar and catch FL_ENTER events. Here is the working sample: #include #include #include #include class MyBar : public Fl_Menu_Bar { public: MyBar(int X, int Y, int W, int H, const char *l=0) : Fl_Menu_Bar(X, Y, W, H, l) { } int handle(int e) { if(e =

[fltk.general] EDE/FLTK talks on FOSDEM

2013-01-28 Thread Sanel Zukan
Hi fltk-ers, I got a wonderful chance to talk about EDE and FLTK on FOSDEM[1] (scheduled next week) in two separate talks: EDE related talk will be in lighting talk form[2] and FLTK talk is scheduled in cross-desktop room[3]. If you are near by or decided to come, feel free to catch me (I will pr

Re: [fltk.general] How to create tooltips for menu items ?

2012-11-04 Thread Sanel Zukan
Menu does not have option to add tooltips, nor you have option to manually inject them via Fl_Tooltip class, AFAIK. edelib/EDE can have tooltips in menus, but I had to fork whole menu hierarchy to add support for this feature (and couple of more). Sanel On 11/04/2012 08:42 AM, Furqan wrote: >

Re: [fltk.general] [ANN] EDE/FLTK talk

2012-10-23 Thread Sanel Zukan
Hi, I'm not sure about talk recording, but I'll upload slides after the conference for sure. They should be on EDE site. Thank you for the interest. Feel free to mail me whatever questions you have :) Regards, Sanel On 10/22/2012 08:10 PM, LZAntal wrote: > Hi, > > Will your talk be recorded or

[fltk.general] [ANN] EDE/FLTK talk

2012-10-21 Thread Sanel Zukan
Hi fltk-ers, I'm going to give a talk on T-DOSE[1], EDE[2] and FLTK related[3], so if you are near by, feel free to come. The talk is scheduled next Sunday. AFAIK, access to the conference will be free. Also, I'll setup EDE booth during two days of conference (at the same place) and in case you

Re: [fltk.general] FLTK X11 icon

2012-06-07 Thread Sanel Zukan
Changing icon mask when window was shown will not work on all window managers/panels; the best way would be to append mask before window was actually shown (e.g. before XMapWindow on X11). In edelib (EDE library) I added function window_xid_create() which behaves as Fl_X::make_xid() (the code is t

Re: [fltk.general] Antipaint

2012-06-07 Thread Sanel Zukan
You are missing inclusion of zlib.h, as Z_BEST_COMPRESSION option was used for png function. Regads, Sanel On 06/07/2012 09:27 AM, Georg Potthast wrote: > Antipaint is a Paint program based on FLTK and mentioned with a dead > link in the Wiki/Software/Graphics section on the FLTK site. > > Mark R

Re: [fltk.general] 1.1.x-UTF8 hack brought up to r6041

2008-02-29 Thread Sanel Zukan
> The current blending FLTK has is really poor, works for Fl_Image only, > and does not handle correctly layered widgets with alpha at all. > Remember the issue with antialiased text on labels/boxes? I was fixing > the alpha issue recently, and there's nothing special about it. Correct :) There

Re: [fltk.general] 1.1.x-UTF8 hack brought up to r6041

2008-02-28 Thread Sanel Zukan
> Most X11 implementations on commercial UNIX's and embedded systems > do not provide the Xorg composite/render extensions. > > So, while we may be able to provide an improved X11 implementation > (through Cairo I suspect), we'll still need the "bare bones" X11 > backend too... Yes. Althought in

Re: [fltk.general] 1.1.x-UTF8 hack brought up to r6041

2008-02-27 Thread Sanel Zukan
> There were weird crashes - but I *think* I fixed that. Maybe. Just first impression after few runs: they are gone! Kudos :)) -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] 1.1.x-UTF8 hack brought up to r6041

2008-02-27 Thread Sanel Zukan
> Current themes make a lot of use of transparency. While this don't > change much the layout of the theme interface, it's an issue to take > into account while redrawing. Most toolkits have resorted to > "compositing" (aka: hierarchical bitmap caching) to avoid the typical > sluggyness of thes

Re: [fltk.general] 1.1.x-UTF8 hack brought up to r6041

2008-02-26 Thread Sanel Zukan
> - Get it working for XFT on linux (without breaking the non-XFT build. I > hope.) Anyone tested non-xft build? There was a weird crashes with it in previous version... have to check this one, probably they've gone :) -- Sanel ___ fltk mailing list flt

[fltk.general] XP scheme

2008-01-30 Thread Sanel Zukan
I modified a little bit Mike's gtk+ scheme to mimic Windows XP look, and below is how it looks. http://equinox-project.org/fltk/fltk-xp.png http://equinox-project.org/fltk/fltk-xp2.png It is not finished yet and look can be rough for some boxes. You can download it from svn with: svn co http://s

Re: [fltk.general] Is there anything wrong with my libfltk.a ?

2008-01-30 Thread Sanel Zukan
> I already cross-compiled nano-x0.91, nxlib0.45 successfully, and > fltk1.1.7(got libfltk.a) > when i use fltk-config compile my fltk program, there is an error as follows: > ... > Is there any thing wrong with my libfltk.a? How can it fix it? > thank you! Probably you should add '-lnx11' too.

Re: [fltk.general] Window Resize on HP Unix

2008-01-29 Thread Sanel Zukan
> It might also be worth playing around with Fl_Window::size_range > (...); to see it that allows your existing WM to respond satisfactorily. True :) -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] Nokia buys Trolltech/Qt

2008-01-29 Thread Sanel Zukan
> Nokia is a pretty big Linux supporter - all of their tablets/PDA > things run Linux, for example - so I doubt they will do anything to > hurt Qt. According to some comments, Nokia left bad taste with previous acqusitions and decisions, not to say how they are strong supporter of patents. Some

Re: [fltk.general] Window Resize on HP Unix

2008-01-25 Thread Sanel Zukan
> I try a simple fltk example program on HP Unix(HP-UX B.11.00): > ... > and I compile this code no problem, but when I run it, I click the button > "Resize", the problem no respond. > I can run the same program on Windows XP very well,just on HP Unix has this > problem. > > I found that: if yo

Re: [fltk.general] battery information status display

2008-01-22 Thread Sanel Zukan
Hi, > I want to display power status of battery in main window of my target > board > Example - battery is fully charged or battery down EDE have battery monitoring for panel that was shown to works pretty nice across the Linux/BSD's. Althought there is some efltk code in it (name mappings are th

Re: [fltk.general] image library

2008-01-21 Thread Sanel Zukan
> >I have tried to display bmp image by using this widget > > > >Fl_BMP_Image *img = new Fl_BMP_Image("test.bmp"); > > > >While compiling it throws error message " undefined reference to > >Fl_BMP_Image::Fl_BMP_Image (char const*)". > > > >Which library to link with compilation. > > You should st

Re: [fltk.general] Nice Font

2008-01-21 Thread Sanel Zukan
> > I'm using the default fonts type on fltk (FL_HELVETICA.. > > FL_TIMES...) but this fonts when set the size > 30 it has look ugly, > > how can set the nice font on fltk...? > > > A little more background would help: What platform are you on? What > version of fltk? > > Anyway - I guess that

Re: [fltk.general] FLTK and System Tray

2008-01-21 Thread Sanel Zukan
Hi, > >Does the FLTK library directly provide any functionalities to > >minimize the application onto the KDE/GNOME system tray. If not, is > >there a VERY minimal example showing how to do this from an fltk > >application? > > Fltk doesn't provide systray support. The various different sys

Re: [fltk.general] Set font for application

2007-08-06 Thread Sanel Zukan
> Ya, that's a cool trick. I keep forgetting it myself. Yes indeed, really cool! I tend to modify fltk code scaling it manually or to hardcode full font name with size via set_font(). Ah, there is always simplier solution :) > It's something of a 'workaround' for this STR item: > http://flt

Re: [fltk.general] HOW TO CREATE EXTRA FL_WINDOWS AFTER FIRST ONE

2007-08-06 Thread Sanel Zukan
> Hello, > I've been working with fluid for a single window for quite a while now and I > would like my program to be able to create extra windows. Here, I just want > to use an example where I'd like to have a menuitem of Help->About to create > a little window with some text and an OK button,

Re: [fltk.general] group attributes in FLUID [fltk 1.1.x]

2007-07-26 Thread Sanel Zukan
> Using FLUID, I created 2 Groups. I made 1 of them an instance > of a C++ class called MyGroup. This is the FLUID output: > > { Fl_Group* o = new Fl_Group(25, 25, 15, 15); > o->end(); > } // Fl_Group* o > { MyGroup* o = new MyGroup(25, 25, 15, 15); > o->box(FL_NO_BOX); > o->color(FL_BACKGR

Re: [fltk.general] Set font for application

2007-07-26 Thread Sanel Zukan
> Hi all, > How can I set a "global" font for an application? (Currently using fltk > 1.1.7). > > Thanks in advance, > Pas. Hoping Fl::set_font() can do the job, calling before show(). Actually Fl::set_font(FL_HELVETICA, "font name") is better, since FL_HELVETICA face is used as default one.

Re: [fltk.general] FLUID2 and internationalization

2007-07-26 Thread Sanel Zukan
> Subject says it all. How can I spit out widget strings in gettext() format? Uh, looks like someone removed this [EMAIL PROTECTED] If I can recall correctly, this option existed before... -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.e

Re: [fltk.general] Where do these events go?

2007-07-26 Thread Sanel Zukan
> I'm not sure it's that simple - your (Sanel's) example doesn't work as > I'd expected on win32 - I think maybe this is what Jim Wilson was saying > too, that the behavior of grab() isn't really consistent on win32... Fully agree. AFAIK, it is even in documentation stated that grabbing on win32 i

Re: [fltk.general] Where do these events go?

2007-07-26 Thread Sanel Zukan
> I figure it's not fair to starve any widget of all events.. > I hear them gasping for breath whenever I see that.. ;) > > Also, I'm not sure if it's the intention to leave Fl::grab() > in effect after the window's been hide()en, so I figure it > makes sense to call Fl::grab

Re: [fltk.general] Can I add buttons to Fl_file_chooser?

2007-07-19 Thread Sanel Zukan
> You can build your own dialog box based on the Fl_File_Chooser > widget, adding as many buttons as needed. Didn't I wrote the same :-P ? -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] Where do these events go?

2007-07-19 Thread Sanel Zukan
> >Previous posters have said that grab() isn't supposed to work > >for windows not descended from the "main" window. > > Yes, I do disagree. If that was true, none of the popup menus would > work in FLTK. But they do, don't they? grab() is also used to make > buttons work correctly (you can p

Re: [fltk.general] Can I add buttons to Fl_file_chooser?

2007-07-19 Thread Sanel Zukan
> Hi, > I would like to add buttons to fl_file_chooser for more user options, > like saving which all image windows. I might need to add check_buttons. > Could somebody direct me about doing that? > Thanks in advance, > Suja. Unfortunatelly this option in current code is not possible. On other han

Re: [fltk.general] Where do these events go?

2007-07-19 Thread Sanel Zukan
> If you have an Fl_Choice widget, and pop up its menu, you > can dismiss the menu sub-window by clicking anywhere at > all, so it seems fltk can handle it somehow. > > Here's another example. Without the sub-window, grab() > makes all the events visible, as expected. Compare it to > the original

Re: [fltk.general] Protected methods in docs?

2007-07-18 Thread Sanel Zukan
> I wanted to suggest an update of docs for some classes in 1.1 when I noticed > a weird thing. Sometimes protected methods are listed in docs (and sometimes > not) and there is no notice that the method is protected? If outside user of > this class tries to use such method, they will get an err

Re: [fltk.general] Where do these events go?

2007-07-18 Thread Sanel Zukan
> Hi all, > In the following, I see PUSH events when the mouse is > clicked within the main window or the sub window, but > nowhere else -- not in either window's frame or elsewhere > on the screen. I can't figure out why. Any assistance > appreciated. > > TIA, > Stan If I understainded this, y

Re: [fltk.general] resize the content of Fl_Scroll

2007-07-18 Thread Sanel Zukan
> hello, > > I have a set of image thumbnails that I want to scroll along horizontally as > well as expand when the window is resized. When I use a Fl_Scroll I can > scroll them nicely but they do not resize when the scroll resizes. If I place > the images in a Fl_Pack they do resize, but then

Re: [fltk.general] Multiple screen not recognized

2007-07-16 Thread Sanel Zukan
> Hello all, > > I'm trying to cope with a fltk application on a two video cards linux system. > The application should open two test windows on both displays (one on each > display). > Unfortunately, Fl::screen_count() counts only one screen. > The application opens normally when called in

Re: [fltk.general] Box border color

2007-07-16 Thread Sanel Zukan
> Hi, I would like to know how to change the border color of a box. > > I am using FLTK2, and I have set a window with border(false), then > box(BORDER_BOX). In FLTK1.x the default color is black, however in FLTK2 it > is grey, and I would like it black. I have searched and there seems to be no

Re: [fltk.general] FLTK2 belowmouse()

2007-07-16 Thread Sanel Zukan
> Hello experts! > > A part of my program consists of a window wherein there are some buttons and > a MenuBar with some Items. > > I have to overload the draw-methode of all my widgets, so that I can use > images to draw these widgets. > My problem now is, that I can`t use the fltk::belowmouse(

Re: [fltk.general] fl_file_chooser hitting cancel generatessegmentation fault-Solved

2007-07-13 Thread Sanel Zukan
> Thanks for the reply. > I used Fl_file_chooser differently as I found it one code along with a piece > of code for clicking cancel button and it is ok now. > The changed code is: > Fl_File_Chooser chooser( ".", "Image Files (*.*)", > l_File_Chooser::SINGLE,$ > chooser.show(); > > /

Re: [fltk.general] Play Video FLTK

2007-07-13 Thread Sanel Zukan
> > hellow, i'm looking for something class for play videos on > > fltk, if fltk don't has the class for play videos, can i use > > external library ..? like xine. > > There's no fltk widget specifically for video - but it is easy, with > fltk, to get the window xid (or equivalent under win32, o

Re: [fltk.general] Mingw

2007-07-13 Thread Sanel Zukan
> Well, from the look of the warnings and errors you are getting, there's > still something wrong with your mingw installation - those errors are > pretty basic things, not really fltk specific things at all... > > Can you build other stuff OK with the the tools as installed? > > Another thought

Re: [fltk.general] Manipulating focus in Fl_Browser

2007-07-13 Thread Sanel Zukan
> Other comments stay though... I will open some STRs since there was no > comments. Yep, that would be a good thing to do :) -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] button value

2007-07-12 Thread Sanel Zukan
> According to the manual entry for Fl_Button: > > char Fl_Button::value() const > int Fl_Button::value(int) > The first form returns the current value (0 or 1). The second form > sets the current value. > > Yet in this code, it appears to return NULL. Am I doing something > wrong? The code is c

Re: [fltk.general] Mingw

2007-07-12 Thread Sanel Zukan
> So far I have installed mingw with > binutils, gcc-corem gcc-g++, mingw-runtime, w32api > > Then I installed msys and msys-dev > > I also installed make Doesn't make comes with msys-dev ? > Then I tired various ./config runs, mainly > > ./config --prefix=z:/ > > As my z drive is a dedicated

Re: [fltk.general] Speed difference in newer versions of 2.0?

2007-07-12 Thread Sanel Zukan
> >Has anyone else noticed a difference in speed in the latest > >versions of FLTK 2.0? Suggest would be to production code keep on r4773 and from time to time check compilation status on newer revisions. > I think this has been mentioned before - I think there is even an STR > for it... you

Re: [fltk.general] Bitmap drawing in FLTK

2007-07-12 Thread Sanel Zukan
> Hi, > > In MFC, i create a memory device context, create a new bitmap, draw some > lines, select bitmap in memory device context. Then i can draw this bitmap to > view(using bitblt or stretchblt function). I can stretch the bitmap to any > size. > How to do the same with FLTK. > I have tried

Re: [fltk.general] Problem using modal window with sub window in 1.1.8

2007-07-10 Thread Sanel Zukan
> The code works perfect in windows, but in linux the focus gets lost. I > have tried everything I could imagine, but can't keep the focus in the > green window after opening up the yellow one. > > Can I force the cursor/focus to the input field some way? Did you look at my sample ? :) There is

Re: [fltk.general] Problem using modal window with sub window in 1.1.8

2007-07-09 Thread Sanel Zukan
> I am trying to create a menu-like window which pops up when the user > interacts with a search field in a modal window. I have created an > example which you should be able to compile after copy & paste (if the > mail client doesn't break the lines). What I need help with is how to > get the

Re: [fltk.general] FLTK2 brighten a specific rect

2007-07-09 Thread Sanel Zukan
> > Fl_RGB_Image (or the correspoding FLTK2 interfaces) has a method > >"darken". > Hm, isn`t this methode listed up in the documentation, or am I to blind to > find it? It should be listed up here: > http://www.fltk.org/doc-1.1/Fl_RGB_Image.html shouldn`t it? > > I can`t find this methode i

Re: [fltk.general] RFC: some ideas

2007-06-01 Thread Sanel Zukan
> My reasons for liking FLTK2 > 2. Better browser system (tree+supports multiline items) Hopefully this will be resolved in *if*_1.2 :D > 4. Namespaces (fltk:: attracts less attention than Fl_ imo) Khm... :) > 3. Better menus (widget based) > 5. Better naming conventions Yes, these are part of

Re: [fltk.general] RFC: next generation FLTK features

2007-05-31 Thread Sanel Zukan
> On May 31, 2007, at 11:06 AM, Sanel Zukan wrote: > > >>OK, so far - *if* we ever do a 1.2 - it would... > >> > >>... absolutely require in the core: > >> > >>- UTF-8 support > >>- Printing support > >>- delayed fixe

Re: [fltk.general] how to determine absolute position of window

2007-05-31 Thread Sanel Zukan
> Hello all. > > Trying to create a toolbar-like window which should appear initially on the > top-left corner of parent window, I faced a silly problem: I can't get the > screen coordinates of that parent window! > > x() and y() both return -1. (event_x_root() - event_x()) is zero as well as

Re: [fltk.general] RFC: next generation FLTK features

2007-05-31 Thread Sanel Zukan
> OK, so far - *if* we ever do a 1.2 - it would... > > ... absolutely require in the core: > > - UTF-8 support > - Printing support > - delayed fixes that can now be applied with an ABI change > - update to WinSock2 > > ... provide for completeness > > - Doxygen documentation > - Fl_Table > - s

Re: [fltk.general] RFC: some ideas

2007-05-29 Thread Sanel Zukan
> it's not just UTF-8 support that makes FLTK "would be better" library, there > is also cleaner interface, cleaner API, all things putted in namespace... See my previous post about this. Putting code into namespaces does not makes cleaner api/interface, altought one will think they do. Going

Re: [fltk.general] RFC: some ideas

2007-05-29 Thread Sanel Zukan
Greg, very good timeplan :) > I get the idea that if UTF-8 were added to the stable 1.1 then more > users would attracted to fltk, and would stay with fltk. Afaik, most of people are using (or started to use) 2.0 because of utf-8 support. As I could see, no one addressed _any_ other reasons besi

Re: [fltk.general] Image pours out of the box on minimizing

2007-05-28 Thread Sanel Zukan
> I am trying to display an image in a box inside a window, > but when I minimize the window the image pours out of > the box into the window, Is there a solution to this problem. To whom is that image assigned, box or window (meaning box->image(...) or window->image(...) is set) ? At the end, so

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread Sanel Zukan
> Hello, Hi, > I've put all the images of my application (a lot) in a big resource file. > I load them directly, without using fltk (perhaps there's a way to load > images from a resource file, but i don't believe it). No. > Now, i've PNG files in memory. So, how can i display them with FLTK ?

Re: [fltk.general] RFC: some ideas

2007-05-28 Thread Sanel Zukan
> > > I'd thought maybe: > > > > > > 4. Produce a "1.2" based on 1.1.8 with UTF and printing... > > > > So that would be a temporary 1 aiming at 2 ;-) 5. Start 'new' 2.0 with 1.1.x base and move current one in fltk-nuke branch. I was assuming this will be discussed on dev. group :) I am really

Re: [fltk.general] fltk2 line_end() wordwrap -> counting lines

2007-05-28 Thread Sanel Zukan
Hi, Sorry, I wasn't been here for some time :) Well, I used your sample with tries to reconstruct it. There is definitely something wrong with Input widget, but honestly, I am not able (currently) to figure out what is exactly. If you/others find out solution or pointers for possible solution, I

Re: [fltk.general] CRITICAL Web Site Suggestion

2007-05-04 Thread Sanel Zukan
To put my two cents here too :) For forum issue: I'm fully agree with comments against forums. Would forum allow you to choose favorite gui/console/whatever agent (and in one place have synchronized mail checks too)? Would it allow sorting/filtering/etc. needed and unneded messages? Would it allow

Re: [fltk.general] release of FLTK 1.1.8

2007-05-04 Thread Sanel Zukan
> > or if we do another attempt at 1.2, > > +1 Partialy agree with Greg :) There are a lot of complex code that depends on 1.x branch and transition will not be trivial (and some people will not like namespace mess that can be produced). Anyway, a good topic for discussion after 1.1.8 rele

Re: [fltk.general] fltk2 line_end() wordwrap -> counting lines

2007-05-04 Thread Sanel Zukan
Hi, > http://img129.imagevenue.com/aAfkjfp01fo1i-20551/loc511/90901_screeny_123_511lo.jpg Got Error 404 :) > When adding "N" at the end of the last word ("sagen") of the wrapped line, > than my code returns correctly n = 5. Can you post Input w/h sizes so I could try to construct similar case

Re: [fltk.general] Some suggestions

2007-05-04 Thread Sanel Zukan
Hi, > First of all, the provided source code in the FLTK 2.0 HTML online document > has a little error. It still uses the FLTK 1.* declaration, "#include > ", which should instead be "#include ". Looks like this was leftover from previous code. Cleaned on svn now :) -- Sanel __

Re: [fltk.general] fltk2 bold/underlined text

2007-04-28 Thread Sanel Zukan
> Thx for answer! No problem :) > Oh, but if I display my text as a label, it`ll be a lot of work to make this > text be mark able, or? > And do I have the posibility to define different line pitches for each line? Unfortuanatelly no. To make a text markable, you will have to dig inside Input w

Re: [fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-28 Thread Sanel Zukan
Hi, > I submitted STR#1662 to address this: > http://www.fltk.org/str.php?L1662 > > ..as I think all pointer returns should document the > return value's memory implications. Thanks for the submission, so it can stand as note for those who do further changes :) I'm fully agree with you. Also, do

Re: [fltk.general] Do I need to delete what fltk::font(const char *, int) returns?

2007-04-27 Thread Sanel Zukan
> Like the subject asks: Do I need to delete what fltk::font(const char *,int) > returns? > Or am I supposed to leave it be because FLTK2 is caching it to share with > others. > I do repeatedly call this function a lot. So, I may implement a Font * cache > of my own if FLTK2 is not doing it.

Re: [fltk.general] fltk2 bold/underlined text

2007-04-27 Thread Sanel Zukan
> Sorry guys that I`m bothering! > > My next problem is that I want to display special words or phrases bold > and/or underlined inside the text of a WordWrap-Output widget. I can`t find > any useful method or hint at the documentation. > > I read that a TextDisplay widget could be helpful for

Re: [fltk.general] FLTK2 Themes

2007-04-24 Thread Sanel Zukan
Hi, > There seems to be almost zero docs and examples on themes in FLTK2 even > though I thought I saw it stated somewhere as one of its main goals. (perhaps > not) There was a lot of goals for fltk2 :), but IMHO for now, the most important is to make it stabile. > Apparently the main build p

Re: [fltk.general] fltk-2 ProgressBar widget API?

2007-04-24 Thread Sanel Zukan
Hi, Yea, the good point Ian :) Seems that no one else noticed this, nor did I since I used progess few times. This should be, hopefully, resolved soon :) Thanks for the tip. -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman

Re: [fltk.general] FLTK 2.x Creating PopupMenumenubefore/aftercreatingsubwindow. Bug?

2007-04-23 Thread Sanel Zukan
> Mmm, interesting.. I didn't know specifying the x/y or not made > a difference in behavior of creating the separate window, I thought > it was just the parent()/current() thing. Yes, since Window(x,y,w,h) constructor tries to add self to the current Group if exists; if not, it

Re: [fltk.general] FLTK 2 SharedImage -measure & update-

2007-04-23 Thread Sanel Zukan
Hi, > Well but today I noticed that the methode fltk::SharedImages::update() > doesn`t exist anymore ... > I have to call fltk::SharedImage::measure(int &w, &h) like this: Yes, the Image api was changed. The details you can digg up from devel newsgroup :) > this->Image_normal = fltk::pngImage::

Re: [fltk.general] Always on top trouble for modal window

2007-04-20 Thread Sanel Zukan
> > Hopefully not like: > > > > void mycallback(Fl_Window*, void*) { > > mydialog->show(); > > } > > > > and later calling: > > mydialog->hide() > > It depends on what you intend by "like". :-) If you strip all those method calls and method method calls, you will get above bone :-). > Well, i

Re: [fltk.general] Widget not becoming child of Window

2007-04-20 Thread Sanel Zukan
Hi, > I have an fltk::Widget with a bmp image on it. > I create the widget, then sometime later I'm trying to > call mainWindow->add(my_widget).. but it's not becoming a child of the main > window. First question :), why you don't use fltk::InvisibleBox ? It will do some things you will probabl

Re: [fltk.general] Always on top trouble for modal window

2007-04-20 Thread Sanel Zukan
Hi, > If I call this window once again (after performing exactly the same sequence > of > operations), the window manager informs me about its existence but BEHIND the > main > window. I can still access it through the icon on window manager's bar, but > this > is obviously not my intention:

Re: [fltk.general] fl_dont_execute

2007-04-16 Thread Sanel Zukan
Hi, Ok, fltk::WHEN_NEVER is now implemented, and fl_dont_executed is removed. So, this will be done: * MenuBar mymenu; // items, their callbacks etc. mymenu.when(WHEN_NEVER) will disable all callbacks for items * Item myitem; myitem.when(WHEN_NEVER) will disable callback only for this item insid

Re: [fltk.general] fltk-2 lib png path bug?

2007-04-16 Thread Sanel Zukan
Hi, > Which svn? > It was only after updating from svn on Saturday morning (GB time) that I Uh sorry, my mistake; the fix was for jpeg. > OK. There seem to be two issues: FC6 doesn't seem to have png.h in a > libpng sub dir in the "system" files, it has /usr/include/png.h however. Yes, the defa

Re: [fltk.general] fltk-2 lib png path bug?

2007-04-16 Thread Sanel Zukan
This is fixed on svn and also included in r5777. -- Sanel ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] fl_dont_execute

2007-04-12 Thread Sanel Zukan
Hi Hans, > Oh, sry, I forgot to mention, that I`m tlaking about FLTK 2, if you didn`t > get it, I don`t hope so Yes, I know is about FLTK 2 :) > Oh, pls do not replace this, it`s very useful for me, with the help of this > hack I can prevent double callbacks, because though I defined: > t

Re: [fltk.general] fl_dont_execute

2007-04-11 Thread Sanel Zukan
Hi Hans, > Why isn`t there a commom adjustment to get the functionality one gets if > extern fl_dont_execute = true. I mean the avoided do_callback()-call in the > fltk::menu::execute()-methode. > For me it`s very useful to define fl_dont_execute = true, why is it only a > "hiden hack"? Oh, th