On 03/25/13 07:53, testalucida wrote:
> I just overlooked the which( x, y ) method which exactly fits my needs.
Great -- yes, it's easy to miss, because it wasn't documented! ;)
Fixed in r9849:
-
Fl_Widget * F
thank you guys for caring about my problem
have a nice day
testalucida
> > On 03/25/13 05:16, testalucida wrote:
> > > _
> > > /x\ o
> > >
> > > I'm interested in click "x" but not in click "o".
> > =
>
> > What Ian said, and I'd offer that setting when(FL_WHEN_NOT_CHANGED)
> >
> On 03/25/13 05:16, testalucida wrote:
> > _
> > /x\ o
> >
> > I'm interested in click "x" but not in click "o".
>
> What Ian said, and I'd offer that setting when(FL_WHEN_NOT_CHANGED)
> /should/ work for your case, but does not.
Yes; I tried that too, to no avail...
However,
Hi Ian,
excuse me bothering you... it's much easier than I thougt: I just overlooked
the which( x, y ) method which exactly fits my needs.
Thanks for answering.
> > imagine a Fl_Tabs instance with only one "card".
> > Clicking on its tab will not result in a callback action.
> > Catching the F
You could perhaps use the method:
Fl_Widget * Fl_Tabs::which (int event_x, int event_y)
in your derived handle().
e.g.
int handle( int e)
{
if (e==FL_PUSH)
{
if ( which(Fl::event_x(), Fl::event_y() )
{
// pushed into the 'x'-region
}
else
{
On 03/25/13 05:16, testalucida wrote:
> _
> /x\ o
>
> I'm interested in click "x" but not in click "o".
What Ian said, and I'd offer that setting when(FL_WHEN_NOT_CHANGED)
/should/ work for your case, but does not.
This is probably a bug in Fl_Tabs; I opened STR#2939
> imagine a Fl_Tabs instance with only one "card".
> Clicking on its tab will not result in a callback action.
> Catching the FL_PUSH event provides the position of the mouse-click but
> I don't know the click occuring within the tab or somewhere right of
> it.
> Is there a way how to get the tab g
Hi,
imagine a Fl_Tabs instance with only one "card".
Clicking on its tab will not result in a callback action.
Catching the FL_PUSH event provides the position of the mouse-click but I don't
know the click occuring within the tab or somewhere right of it.
Is there a way how to get the tab giving t
8 matches
Mail list logo