RE: CList event problems - bug???



[snip]
> > The problem with that method is that when I click and drag 
> the CLIST column
> > title to alter the width of the widget it also registers it 
> as a click on
> > row 0. I've not found a way to find a difference between a 
> click on the
> > resize bar and normal click on the clist itself.
> > 
> > Obviously, I'd like to find a way to tell them apart! 
> GDK_BUTTON1_MASK might
> > help but I'm not exactly sure how to use it!
> > 
> > Thanks for the help!
> > 
> > Rich
> 
> Try using 'gtk_clist_set_button_action'. With this you can 
> say which buttons
> have which effect on the CList. Be aware you have to give 
> this function the
> number of the mouse button minus one (left button: 0, middle 
> button: 1, right button: 2).

If I understand what the function will do, then I am not sure exactly how it
will help! I need it to respond to left and right mouse button clicks but
how can I block the drag left mouse button from having an effect using that?
I've tried playing around with it but I can't get it to do anything nor can
I find some examples - can anyone give me a hand with this function who has
used it before??

I am wondering about there being a bug in the clist about this. When I trip
the "button_press_event" event I can look at the x/y values of the click.
When I'm in the clist title bar the y value starts from 0 and goes up.
However, when it goes onto the clist main the y value resets to 0 and then
goes up again as I move down the list. Shouldn't it carry on going up even
when it starts on the list? The fact that both the first clist item and the
clist title can both return a y co-ord of 0 is why I'm having  my problems -
I cannot tell them apart! Any comments on this??

Oh, I'm running GTK v1.2.9 on a Sparc Solaris 2.6!

Ta,

Rich




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]