Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!mintaka!think.com!samsung!infinet!thebaut From: thebaut@infinet.UUCP (Suzanne Thebaut) Newsgroups: comp.windows.open-look Subject: Re: problem attaching XV_KEY_DATA to panel Message-ID: <2775@infinet.UUCP> Date: 28 Jun 91 12:55:17 GMT References: <1991Jun27.221718.18172@leland.Stanford.EDU> Reply-To: thebaut@infinet.UUCP (Suzanne Thebaut) Organization: Infinet, Inc. North Andover, MA Lines: 70 In article <1991Jun27.221718.18172@leland.Stanford.EDU> erose@hydro.Stanford.EDU (Eric Rose) writes: > > >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. > ... > > panel = (Panel)xv_create(frame, PANEL, > XV_KEY_DATA, 1, string, > NULL); Eric- It might work better if you set the XV_KEY_DATA in a call to xv_set() AFTER the call to xv_create() which creates the panel. I have found xview to be flukey in that regard. Sometimes things just don't take if they are assigned in the create, and other things don't take if they are assigned after the create, and still other things don't work quite right if they are created after the call to xv_main_loop(). Anyway, that's my suggestion. Good Luck. -Suzanne ##################################################################### Suzanne Thebaut infinet!thebaut@samsung.com Memotec, Inc N. Andover, MA 508 681-0600 x4430 Newsgroups: alt.toolkits.xview,comp.windows.open-look Subject: Re: problem attaching XV_KEY_DATA to panel References: <1991Jun27.221718.18172@leland.Stanford.EDU> Reply-To: thebaut@infinet.UUCP (Suzanne Thebaut) Organization: Memotec, Inc. North Andover, MA In article <1991Jun27.221718.18172@leland.Stanford.EDU> erose@hydro.Stanford.EDU (Eric Rose) writes: > > >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. > ... > > panel = (Panel)xv_create(frame, PANEL, > XV_KEY_DATA, 1, string, > NULL); Eric- It might work better if you set the XV_KEY_DATA in a call to xv_set() AFTER the call to xv_create() which creates the panel. I have found xview to be flukey in that regard. Sometimes things just don't take if they are assigned in the create, and other things don't take if they are assigned after the create, and still other things don't work quite right if they are created after the call to xv_main_loop(). Anyway, that's my suggestion. Good Luck. -Suzanne ##################################################################### Suzanne Thebaut infinet!thebaut@samsung.com Memotec, Inc N. Andover, MA 508 681-0600 x4430