Article View: comp.windows.interviews
Article #210Re: Using WidgetKit
From: Mark Linton
Date: Mon, 10 Aug 1992 20:41
Date: Mon, 10 Aug 1992 20:41
21 lines
1626 bytes
1626 bytes
In article <1992Aug3.203018.20678@m.cs.uiuc.edu>, zhou@m.cs.uiuc.edu (Tom Z.-Y. Zhou) writes: |> I created a bunch of push buttons in my program using |> WidgetKit::push_button(). But these button are way too long (or wide, if |> you like) for my purpose. So my question is: can I customize the size of |> a push button? You should be able to use LayoutKit::fixed_span around a button to override the default size. |> Apparently WidgetKit, when called, creates an instance of one of its two |> concrete sub-classes: MFKit and SMFKit. My guess is that SMFKit |> is used in my case, since SMFKit::push_button_look() sets the button width |> to no less than 72. I wonder how SMFKit was chosen over the other. I |> couldn't find any "define *motif_kit" in the InterViews source. And |> adding "#define motif_kit; #undef sgi_motif_kit" in my code has no |> effect. Weird. So the more general question is: can one have some degree |> of control over WidgetKit, or is it simply a "Take it or leave it" |> situation? You can control the default kit via a resource (e.g., *gui:motif) or at build time by changing KitFlags in iv/src/config/InterViews/local.def.
Technical Details
Message-ID:
<odjbt8c@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!lintonReferences:
<1992Aug3.203018.20678@m.cs.uiuc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!linton From: linton@marktwain.rad.sgi.com (Mark Linton) Newsgroups: comp.windows.interviews Subject: Re: Using WidgetKit Message-ID: <odjbt8c@fido.asd.sgi.com> Date: 10 Aug 92 20:41:30 GMT References: <1992Aug3.203018.20678@m.cs.uiuc.edu> Sender: news@fido.asd.sgi.com (Usenet News Admin) Reply-To: linton@marktwain.rad.sgi.com (Mark Linton) Organization: sgi Lines: 21