Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!unmvax!uokmax!geohub!dwight From: dwight@geohub.gcn.uoknor.edu (Dwight D. Moore) Newsgroups: comp.windows.x.motif Subject: ArrowButton widgets weird behaviour Message-ID: <1991Mar7.195937@geohub.gcn.uoknor.edu> Date: 8 Mar 91 02:11:51 GMT Sender: news@uokmax.ecn.uoknor.edu (Nets) Reply-To: dwight@geohub.gcn.uoknor.edu Organization: Geosciences Computing Network, Univ. of Oklahoma Lines: 27 Ok, here is one for the OSF guys or anyone else... I have two arrow button widgets, one with XmARROW_UP and XmARROW_DOWN directions specified on creation. They call the same callback on XmNactivateCallback resource. In the callback, I use XtVaGetValues to get the XmNarrowDirection value for the widget that did the callback. Whenever I switch to the other arrow, regardless of whether it is the up arrow to the down arrow or vice versa, I get back garbage as a value. It doesn't matter if I use XtGetValues either. It seems like when it gets focus, it calls the activate routine and I get garbage becase the next activate on the same widget seems to work fine...just when I switch widgets.???? I am using MOTIF 1.1 on VMS 5.4 ---------------------------------------------------------------------------- Dwight D. Moore Geosciences Computing Network University of Oklahoma dwight@geohub.gcn.uoknor.edu (129.15.40.10) ---------------------------------------------------------------------------- I do not represent the opinions of the University of Oklahoma or the State of Oklahoma, or the GCN or anyone else for that matter...