Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!decwrl!csus.edu!csusac!unify!openlook!openlook-request From: klg!ed@Canada.Sun.COM (Edward Lycklama - KL Group Inc.) Newsgroups: comp.windows.open-look Subject: Re: problem attaching XV_KEY_DATA to panel Message-ID: <9m9ruww@openlook.Unify.Com> Date: 28 Jun 91 14:58:42 GMT Sender: news@Unify.Com Lines: 24 > > I seem to have found a problem storing a pointer with a Panel using > XV_KEY_DATA. The manual does not explicitly state that this is possible > for all xview objects, but then again is does not give any reason why > this is not possible. > > I am running xview 2.0 (I think) under openwin 2.0 on a Sparc 2, SunOS 4.1.1 > > The code prints the string correctly while in main, but in the button callback > prints garbage for the string. > One of the problems with XV_KEY_DATA is that the key must be unique - if you try with a more random key, you'll find that it works. I suspect you're using a key that the panel package is already using for something else. Ed Lycklama KL Group Inc. | Phone: (416) 594-1026 Ext. 24 134 Adelaide St. E, Suite 204 | Fax: (416) 594-1919 Toronto, Ontario, M5C 1K9 | UUCP: sun!suncan!klg!ed CANADA