Right Click Act like a Select

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Right Click Act like a Select

Submitted by Anonymous on Thu, 12/12/2002 - 21:32.

Have a requirement for a right click (Btn2) to perform a highlight operation on a list item. Tried to "remap" button2 using a translation table to perform a list select action just as a BSelect (Btn1) does; e.g. ListSelectBegin() and call XtOverride method. But at run time I get an error stating that ListSelectBegin was not found. Do I need to fully qualify the method name (with the class pointer for example) or write my own action routine that in turn calls the list method?
Or ?????

Thx

Fri, 12/13/2002 - 12:49#1

Fri, 12/13/2002 - 12:49#1

ICS_support

Right Click Act like a Select

Who writes these requirements? What users want their mouse buttons to behave differently in each window?

In any case, you`re on the right track. I`d bet that you`re affecting a selection box or another widget with an internal list. You are using the widget ID of the parent, not the widget ID of the internal object.

Tue, 12/17/2002 - 21:41#2

Tue, 12/17/2002 - 21:41#2

Anonymous

Right Click Act like a Select

I checked the widget ID and it is the one for the XmList (as opposed to its parent, a scrolled window). Problem seems to be that I can`t "get my hands" on the action routines for a list, I`m not sure how to access the ListSelectBegin()/ListSelectEnd() routines that a "left" click (BSelect) has as its default.

 

Wed, 12/18/2002 - 22:11#3

Wed, 12/18/2002 - 22:11#3

ICS_support

Right Click Act like a Select

Well, you could be using XtCallActionProc(), but, generally, if you find yourself doing that, you`re already barking up the wrong tree. You should be able to do this by overriding the translations, as you`ve tried. Then again, your end-users will expect to be able to do drag/drop with the Btn2.