🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.pex
Article #50

Re: PEX in widget

#50
From: Takashi Hasegawa
Date: Wed, 15 Apr 1992 01:10
34 lines
1669 bytes
Thank you for answering my question.

In article <1992Apr14.144343.16436@dsd.es.com> cannon@tornado.dsd.es.com (Gary Cannon) writes:

   >>I'm assuming that you are doing PHIGS picking. If so, you should get back a 

Yes, I am.

   >>Ppick_path value which is a list of Ppick_path_elem structures. Each of these
   >>consists of a structure id, pick id, and element position of the picked 
   >>element. 
   >>
   >>If you aren't doing PHIGS picking, try looking at incremental spatial search.

My code of getting pick event is as follows:

    while (1) {
	pawait_event(0.0, &ws, &class, &dev);
	if (class == PIN_PICK) {
	    pget_pick(PATHDEPTH, &status, &path);
	    if (status == PIN_STATUS_OK) {
		if (path.path_list[1].struct_id == 1)	puts("1");
		else					puts("2");
	    }
	    else					puts("nothing");
	}
    }

This code runs correctly at the first pick, but then it can get pick
event (class == PIN_PICK) without the information (status !=
PIN_STATUS_OK and path.path_list is unchanged).

Central Research Lab., Hitachi Ltd.
Takashi Hasegawa
Technical Details
Message-ID: <HASEGAWA.92Apr14181014@hcrlgw.crl.hitachi.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!hitwide!hinocgw!hitgw!hcrlgw92!hcrlgw!hasegawa
References: <HASEGAWA.92Apr14012245@hcrlgw.crl.hitachi.co.jp> <1992Apr14.144343.16436@dsd.es.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!hitwide!hinocgw!hitgw!hcrlgw92!hcrlgw!hasegawa
From: hasegawa@hcrlgw.crl.hitachi.co.jp (Takashi Hasegawa)
Newsgroups: comp.windows.x.pex
Subject: Re: PEX in widget
Message-ID: <HASEGAWA.92Apr14181014@hcrlgw.crl.hitachi.co.jp>
Date: 15 Apr 92 01:10:14 GMT
References: <HASEGAWA.92Apr14012245@hcrlgw.crl.hitachi.co.jp>
 <1992Apr14.144343.16436@dsd.es.com>
Sender: hasegawa@hcrlgw.crl.hitachi.co.jp
Organization: Central Research Lab., Hitachi Ltd.
Lines: 34
In-reply-to: cannon@tornado.dsd.es.com's message of 14 Apr 92 23:43:43 JST