[fltk.bugs] button inside loop

2013-02-01 Thread superbem
this code for(int i=0;i5;i++){ char u[10]; sprintf(u,%d,i); new Fl_Button(25*i+20, 50, 25, 25,u); } shows all buttons with the same label and it should be incremental. All of them with the last i, 4. ___ fltk-bugs mailing list

Re: [fltk.bugs] button inside loop

2013-02-01 Thread Duncan Gibson
this code for(int i=0;i5;i++){ char u[10]; sprintf(u,%d,i); new Fl_Button(25*i+20, 50, 25, 25,u); } shows all buttons with the same label and it should be incremental. All of them with the last i, 4. Because the buffer u goes out of scope at the end of the block, and the

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

2013-02-01 Thread Duncan Gibson
I got a wonderful chance to talk about EDE and FLTK on FOSDEM[1] Although I live relatively close by in the Netherlands, I won't be able to make it. Do FOSDEM have plans to post links to the any of the presentations? If not, will you be posting them somewhere? Good luck with the presentations.

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

2013-02-01 Thread MacArthur, Ian (Selex ES, UK)
Here's a test - is this any better? If you send a message that uses characters from certain character sets in the message body. Messages that use character sets from the following code pages are encoded as Base64 messages when they are sent from an Exchange 2000 computer: Shift-JIS

[fltk.general] Moving symbol on Fl_Menu_Bar Fl_Menu_Item

2013-02-01 Thread Howard Rubin
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 colors question) Why does the symbol move and how

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