Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!modus!simm!yachaya!oliver!newsuser From: newsuser@oliver.SUBLINK.ORG (Ugo Cei) Newsgroups: comp.windows.open-look Subject: Problems with OLIT and the Resource Manager Keywords: OLIT resources Message-ID: <906@oliver.SUBLINK.ORG> Date: 14 Mar 91 22:01:26 GMT Reply-To: cei@ipvvis.unipv.it (Ugo Cei) Organization: Oliver, Pavia, Italy Lines: 33 I have some problems regarding the specificaton of resources for applications written using the OLIT widget set under OW 2.0 (SunOS 4.1.1). Specifically, if I initialize my application calling OlInitialize like this: toplevel = OlInitialize("appl", "Appl", ... where "appl" and "Appl" are meant to be the application's name and class respectively, I can never get my app to understand resources like: Appl*OblongButton.widht: 100 as I did with Athena widgets and XtInitialize, but only: appl*OblongButton.width: 100 I have also tried to use XtInitialize and XtAppInitialize, but I only get core dumps when I try to create a widget. I could let this pass, but I have also problems in specifying resources for some kinds of widgets. For instance, the reference manual says that the OblongButton widget class has three color resources: "background" for the button's background, "fontColor" for the label and "foreground" for the border. However, I can only change the label's color through the "foreground" resource and the background color through the "background" one, while "fontColor" has no visible effect. Moreover, my buttons are contained in a ControlArea widget, for which I cannot set neither the foreground nor the background, and I am thus forced to have it white. -- **************** | Ugo Cei | SUBLINK: newsuser@oliver.sublink.org * OLIVER * | Via Colombo 7 | INTERNET: cei@ipvvis.unipv.it **************** | 27100 Pavia ITALY | "Real Programs Dump Core"