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
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
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
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:
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
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
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
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
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
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
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
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 =
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
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:
>
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
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
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
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
> 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
> 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
> 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
> 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
> - 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
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
> 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.
> 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
> 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
> 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
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
> >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
> > 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
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
> 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
> 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,
> 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
> 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.
> 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
> 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
> 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
> 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
> >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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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(
> 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();
>
> /
> > 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
> 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
> 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
> 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
> 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
> >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
> 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
> 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
> 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
> > 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
> 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
> 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
> 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
> 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
> 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
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
> 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
> 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 ?
> > > 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
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
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
> > 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
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
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
__
> 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
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
> 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.
> 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
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
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
> 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
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::
> > 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
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
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:
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
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
This is fixed on svn and also included in r5777.
--
Sanel
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk
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
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
90 matches
Mail list logo