[fltk.general] Styles

2007-10-10 Thread marty moore
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

Re: [fltk.general] Styles

2007-10-12 Thread marty moore
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

Re: [fltk.general] fltk-2.0.x-r5963: wait() memory leak?

2007-11-27 Thread marty moore
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

Re: [fltk.general] Completely confused by valgrind

2007-11-28 Thread marty moore
, 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 you just need to understand what it is telling you. Which isn't easy sometimes

Re: [fltk.general] Putting up a jpeg image

2007-12-03 Thread marty moore
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

[fltk.general] fltk3 compile error

2013-04-02 Thread marty moore
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

[fltk.general] incorrect button label text in Fl_Pack

2013-04-02 Thread marty moore
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

Re: [fltk.general] fltk3 compile error

2013-04-03 Thread marty moore
bWFydHkgbW9vcmUgc2FpZDoNCiANCj4gSGkgYWxsLA0KPiBJIGdldCB0aGUgZm9sbG93aW5nIGVy cm9yIHdoZW4gdHJ5aW5nIHRvIGNvbXBpbGUgZmx0azM6DQo+IA0KPiAkbWFrZQ0KPiA9PT0gbWFr aW5nIHNyYyA9PT0NCj4gQ29tcGlsaW5nIGZsdGszcG5nL3BuZy5jLi4uDQo+IGZsdGszcG5nL3Bu

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

2013-04-03 Thread marty moore
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,

Re: [fltk.general] fltk3 compile error

2013-04-03 Thread marty moore
... 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 said: Hi all, I get the following error when trying to compile fltk3: $make === making src === Compiling

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

2013-04-03 Thread marty moore
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.

[fltk.general] FLTK-1.3 group button menus in wrong place whe rearranged

2013-04-07 Thread marty moore
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

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

2013-04-08 Thread marty moore
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 suggested

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

2013-04-11 Thread marty moore
//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 repaired. As it is,

[fltk.opengl] cursor color problem

2007-10-07 Thread marty moore
Hi All, I'm new to fltk, so if this is the wrong forum, please let me know. I'm using a glwindow as a subwindow of another window (containing my menus etc). Both window work fine, but my cursor, which is normally black with a white border, turns black/black. This occurs on the entire screen,