Hi Greg,
Here I should declare a class named Fl_Input or can I directly
call handle method of Input box???
On Wed, Apr 11, 2012 at 11:35 PM, Greg Ercolano <[email protected]> wrote:
> On 04/11/12 10:46, Rajesh Kumar wrote:
> > Thanks for the reply. Can u post pseudo code for this??
>
> I think Albrecht means something like this in your derived class:
>
> int handle(int e) {
> int ret = Fl_Input::handle(e);
> switch (e) {
> case FL_FOCUS: color(YOUR_FOCUS_COLOR); redraw(); return(1);
> case FL_UNFOCUS: color(YOUR_UNFOCUS_COLOR); redraw(); return(1);
> }
> return(ret);
> }
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
>
--
*
Thanks & Regards,
Rajesh Kumar P
*
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk