Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!eru!hagbard!sunic!dkuug!modulex!ssn From: ssn@modulex.dk (Svend Skafte Nielsen) Newsgroups: comp.windows.x.motif Subject: Weird highlightThickness?? Message-ID: <730@modulex.dk> Date: 13 May 91 13:56:49 GMT Distribution: comp Organization: A/S MODULEX, Copenhagen, Denmark Lines: 40 Can anyone explain this? When I set the highlight thickness of a pushbutton to a value larger than 2 and subsequently retrieves this by XtGetValues, the return value is 2 lower than the actual value, although the pushbutton is displayed correctly, with the desired highlight thickness. I suspect it has something to do with the way rowcolumn manages its children, but I don't understand how and why! For an example, try out the code listed below. . . args_count = 0; mainw=XmCreateMainWindow(top_level,"mainw",args,args_count); rc=XmCreateRowColumn(mainw,"rc",args,args_count); bbut=XmCreatePushButton(rc,"bbut",args,args_count); XtManageChild(bbut); args_count = 0; XtSetArg(args[args_count],XmNhighlightThickness, 6); args_count++; XtSetValues(bbut,args,args_count); args_count = 0; XtSetArg(args[args_count],XmNhighlightThickness, &i); args_count++; XtGetValues(bbut,args,args_count); fprintf(stderr,"bbut.highlightthickness: %d\n",i); XtManageChild(rc); XtManageChild(mainw); . . --------------------------------------------------- Svend Skafte Nielsen | Email: ssn@modulex.dk A/S MODULEX | Phone: +45 44 53 30 11 Lyskaer 15 | Telefax: +45 44 53 30 74 DK-2730 Herlev | Denmark |