Re: [fltk.general] about the callback of the button widget in fltk1.3

2012-05-07 Thread Greg Ercolano
On 05/07/12 20:26, leowang wrote: > Dear All, > I have a button, it has a callback, but I found that when the focus is on > this button, press enter key can not auto call the callback, only use mouse > to press button can call the callback. Why? > > In fltk2.0, it will auto call the callback wh

[fltk.general] about the callback of the button widget in fltk1.3

2012-05-07 Thread leowang
Dear All, I have a button, it has a callback, but I found that when the focus is on this button, press enter key can not auto call the callback, only use mouse to press button can call the callback. Why? In fltk2.0, it will auto call the callback when press enter key if the focus is on the but

Re: [fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
> On 07.05.2012 12:36, Albrecht Schlosser wrote: > > On 07.05.2012 09:22, leowang wrote: > > > >> The Fl_Shared_Image::get() can only add one picture on the widget, but > >> now I want to implement this feature: when the focus is not on the > >> widget, the picture is icon.bmp, when the focus is on

Re: [fltk.general] how to remove focus from widget in fltk1.3

2012-05-07 Thread leowang
> On 07.05.2012 11:11, leowang wrote: > > > I have use take_focus to let the focus on the widget, but how can I remove > > the focus from this widget? > > Give the focus to another widget, or use Fl::focus(0); maybe. > > But what do you want to achieve with this? > > Albrecht Hi Albrecht, I have t

Re: [fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread Albrecht Schlosser
On 07.05.2012 12:36, Albrecht Schlosser wrote: > On 07.05.2012 09:22, leowang wrote: > >> The Fl_Shared_Image::get() can only add one picture on the widget, but >> now I want to implement this feature: when the focus is not on the >> widget, the picture is icon.bmp, when the focus is on the widget,

Re: [fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread Albrecht Schlosser
On 07.05.2012 09:22, leowang wrote: > The Fl_Shared_Image::get() can only add one picture on the widget, but now I > want to implement this feature: when the focus is not on the widget, the > picture is icon.bmp, when the focus is on the widget, the picture can change > to icon_focus.bmp. Like

Re: [fltk.general] how to remove focus from widget in fltk1.3

2012-05-07 Thread Albrecht Schlosser
On 07.05.2012 11:11, leowang wrote: > I have use take_focus to let the focus on the widget, but how can I remove > the focus from this widget? Give the focus to another widget, or use Fl::focus(0); maybe. But what do you want to achieve with this? Albrecht _

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-07 Thread MacArthur, Ian (SELEX GALILEO, UK)
> I don't think, Steve Jobs will come back to save Apple a third time. Though I guess we'd be pretty impressed if he did. And perhaps a little surprised... and a bit freaked out... > Anyway Windows 8 will be an operating system for mobile phones (that's > funny, we will need to boot and shutdow

[fltk.general] how to remove focus from widget in fltk1.3

2012-05-07 Thread leowang
Dear All, I have use take_focus to let the focus on the widget, but how can I remove the focus from this widget? Best regards, Leo ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
Dear All, The Fl_Shared_Image::get() can only add one picture on the widget, but now I want to implement this feature: when the focus is not on the w ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
Dear All, The Fl_Shared_Image::get() can only add one picture on the widget, but now I ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
Dear All, The Fl_Shared_Image::get() can only add one picture on the widget, but now I want to implement this feature: when the focus is not on the w ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
Dear All, The Fl_Shared_Image::get() can only add one picture on the widget, but now I want to implement this feature: when the focus is not on the widget, the picture is icon.bmp, when the focus is on the widget, the picture can change to icon_focus.bmp. Like MulitImage widget in fltk2.0. Does

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-07 Thread Edzard Egberts
Greg Ercolano schrieb: > On 05/04/12 02:36, MacArthur, Ian (SELEX GALILEO, UK) wrote: >> >>> Hmpf - the default is text and I know this, but forgot to take care >>> about. Very stupid, of course it works now... >> >> For what it's worth, I just use "rb" and "wb" regardless of >> platform since the