Xref: utzoo alt.toolkits.xview:229 comp.windows.open-look:1810 Path: utzoo!utgpu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!amdcad!sun!newstop!male!silverwood!helvie From: helvie@EBay.Sun.COM (Fred Helvie) Newsgroups: alt.toolkits.xview,comp.windows.open-look Subject: Re: problem attaching XV_KEY_DATA to panel Message-ID: Date: 28 Jun 91 00:06:05 GMT References: <1991Jun27.221718.18172@leland.Stanford.EDU> Sender: news@male.EBay.Sun.COM Followup-To: alt.toolkits.xview Lines: 21 when applying XV_KEY_DATA, the key specified should be a unique number. A number >= 100 should be safe. The reason for this is that the toolkit utilizes some of the lower keys internally. So try: #define MY_KEY 100 panel = (Panel)xv_create(frame, PANEL, XV_KEY_DATA, MY_KEY, string, NULL); printf("The string now is \"%s\"\n",(char*)xv_get(panel,XV_KEY_DATA,MY_KEY)); Fred Helvie Sun Education - Milpitas, CA.