Path: news.daimi.aau.dk!news.net.uni-c.dk!sunsite.auc.dk!newsfeed1.uni2.dk!newsfeed1.swip.net!swipnet!news-fra.maz.net!news-fra1.dfn.de!Uni-Dortmund.DE!news From: Arne Hueggenberg Newsgroups: comp.lang.beta Subject: Problems with motif/list/itempos Date: Fri, 25 Sep 1998 21:30:53 +0200 Organization: University of Dortmund, Germany Lines: 41 Message-ID: <360BEF6D.7FA8FF1F@nef.wh.uni-dortmund.de> NNTP-Posting-Host: emil.nef.wh.uni-dortmund.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5b2 [en] (X11; I; Linux 2.0.34 i586) X-Accept-Language: de,en Cache-Post-Path: emil.nef.wh.uni-dortmund.de!arne@darkwing.nef.wh.uni-dortmund.de X-Cache: nntpcache 2.3.2.1 (see http://www.nntpcache.org/) Xref: news.daimi.aau.dk comp.lang.beta:11716 Hello everyone, Im looking for help with a slight problem i have. Inside my app i do something like this: List: @ScrolledList (# defaultActionCallback:: (# item: @motifstring; posofitem: @integer; do data.item->item; item->itempos->posofitem; posofitem->putint; posofitem->Mailhandler.getentry->editor.value; #); init:: ...; #); The problem now is that no matter wich listentry i doubleclick, resulting in the defaultactioncallback, posofitem always is 0. Looking at what itempos is doing i see that it calls XmListItemPos. Now, looking in my ORA Motif Programming Manual, i see that XmListItemPos returns 0 if it didnt find the item in the list. Why cant it find the item? As I look for an item wich i very well know to be there, i selected it from the list after all, i dont see how this is possible. Can anyone help me with this? Regards, Arne Hueggenberg -- -----BEGIN GEEK CODE BLOCK----- GCS d- S++:++ a-- C++(++++)@ UL++@>$ P+(++)@ L+++ E W++@ N++ o? K? w--- O- M- V-- PS+ PE+ Y+ PGP- t+(++) 5+ X++ r(+) tv+ B+++ DI+ D+ G e>+++ h-- !r z ------END GEEK CODE BLOCK------