> > //hH
> > int Sbut::handle ( int event )
> > {
> > if ( event == FL_PUSH )
> > {
> > cout << "Sbut handle 1: PUSH " << endl;
> > do_callback();
> > return 1;
> > }
> > return 0;
> > }
>
> Also, unrelated, the above bit of code should be r
Hi,
Thank you very much for explaining the problem fully. I really appreciate that
you took the time to analyze it, make suggestions, and even play with my code.
You have really impressed me with the quality of help available on the fltk
forum.
Thanks again,
Marty
>
> > Yep, this was suggest
Hi all,
I'm playing around with dynamic buttons in a group. I'm using FLTK-1.3,
gcc-4.4.5, emacs 23, on a debian 6.5(64bit) system.
An example program, which demonstrates the problem,is included below.
What's supposed to happen:
1. click on a button, and a menu pops up with "add" and "delete" op
Hi,
thanks for all the info! I really appreciate the response.
I tried your suggestions on my system: Debian 6.5 (64 bit), gcc-4.4.5, emacs
23, fltk-1.3.2
I tested the following:
eop op = (eop)fl_intptr_t(v); works fine
int i = (int)v; fails to compile (loss of precision) like you all said.
l
uld you mind translating it? It's unreadable.
> > Marty
>
> Sigh... Sorry about that, I thought that was fixed... Technically, it's not
> unreadable, it's just Base-64 encoded...
>
> Anyway; here's what it was meant to say (I hope!);
>
> marty moore sa
Hi all,
Please excuse another newbie question.
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};
Fl_Menu_Item menu = {
{ "thing 1",
> bWFydHkgbW9vcmUgc2FpZDoNCiANCj4gSGkgYWxsLA0KPiBJIGdldCB0aGUgZm9sbG93aW5nIGVy
> cm9yIHdoZW4gdHJ5aW5nIHRvIGNvbXBpbGUgZmx0azM6DQo+IA0KPiAkbWFrZQ0KPiA9PT0gbWFr
> aW5nIHNyYyA9PT0NCj4gQ29tcGlsaW5nIGZsdGszcG5nL3BuZy5jLi4uDQo+IGZsdGszcG5nL3Bu
> Zy5jOjE0OjIxOiBlcnJvcjogcG5ncHJpdi5oOiBObyBzdWNoIGZpbGUgb3Ig
> Yes, as Edzard says: setting the label of the widget with label() does not =
> *copy* the string, it only retains a pointer to it... which in your case th=
> en drops out of scope and garbage ensues.
>
> I think I'd go with the copy_label() approach myself (which *does* make an =
> internal copy
Hi all,
I was playing around with dynamic buttons in a Fl_Pack under fltk-1.3.
My sample program is below.
what's supposed to happen:
1. create 5 buttons with label showing the number as they are creates.
2. when clicked, the user has the option to either add a new button (with the
next integer
Hi all,
I get the following error when trying to compile fltk3:
$make
=== making src ===
Compiling fltk3png/png.c...
fltk3png/png.c:14:21: error: pngpriv.h: No such file or directory
fltk3png/png.c:17: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âYour_png_
Hi Anitban,
Here's what works for me in fltk-2:
makefile stuff: (the kitchen sink)
g++ -Wall -g -o x main.o common.o ctx.o ents.o glw.o gui.o lay.o
prompts.o-L/usr/X11R6/lib64 -lfltk2 -lfltk2_gl -lfltk2_glut -lm -lX11 -lXi
-lXft -lXmu -lpthread -lXinerama -lm -lXext -lGL -lGLU -lflt
Hi,
Sorry to bother everyone yet again, but...
I'm chagrined to report that after updating my system, I'm unable to compile
fltk, or Mesa for that matter. I start by getting fltk configure reports that
the ansi c header files can't be found. Then start getting reports that headers
were found,
Hi,
I need a cranial reboot... .44 caliber.
thanks again for your help.
Marty
marty moore <[EMAIL PROTECTED]> wrote: HI,
Wow! Great information. Imm, that link had a good description. Greg, I'll
look into the core dump. I've never looked at one before.
My current issu
e:
> On 28 Nov 2007, at 20:50, marty moore wrote:
>
>> Didn't realize I was in the presence of a lore master.
>
> Not me. But there are some around here...
>
>
>> What is the best way to make sure my code is clean?
>
> Valgrind is very useful, but yo
Thanks Imm,
Didn't realize I was in the presence of a lore master.
I'll check the link.
What is the best way to make sure my code is clean?
Thanks,
Marty
imm <[EMAIL PROTECTED]> wrote: On 28 Nov 2007, at 20:04, marty moore wrote:
> By OS cleanup, do you mean that gno
Thank you Dehan.
I was getting desparate.
By OS cleanup, do you mean that gnome cleans up all of the leftovers, or does
Linux clean things up?
What subject can I search in the archives to learn more? I've looked at the
postings under destructors.
Should I ignore valgrind leak reports?
Do
s
this a bug?
Please help. I've spent several days trying to figure this out, and I just
seem to be sinking. I admit that I'm new to gui programming, and this is way
over my progamming classes, but shouldn't a rudimentary program (below) not
produce memory problems?
Thanks,
Marty
Hi,
I'm updating my own message as I attempt to research my question. I have tried
simplifying my test to a very basic main.cxx file that creates a window, which
I then close by clicking the close button ( default_callback). Valgrind still
gives me a 45 byte lost memory error. I've tried seve
Hi All,
Based on stuff in the list, I decided to test my program for memory leaks with
valgrind. The results seem to indicate a memory leak associated with wait().
Since I'm still a newbie with fltk, I'm not sure I'm understanding the error
message correctly. I would appreciate your help in fi
Thanks Jiang,
I've tried your suggestions.
I tried using fluid to create a menubar of 2 item groups with different colors.
Fluid does this:
ItemGroup* o = new ItemGroup(...);
o->color( somecolor);
which doesn't work. The itemgroup color is the menubar color.
I lokked into menu_item, but it appear
Hello All,
Just another newbie question
I'm trying to create a menubar of itemgroups. I would like the itemgroups and
child items to have a separate color from the other itemgroups in the menubar.
This would allow different colored itemgroups in the menubar to be 'color
coded' acording to
21 matches
Mail list logo