On  6-Feb-01 at 03:49, Michel Bardiaux ([EMAIL PROTECTED]) wrote:
> Martin Simmons wrote:
> > 
> > >>>>> On Mon, 5 Feb 2001 13:14:07 -0500 (EST), Rick Scott
> > >>>>> <[EMAIL PROTECTED]> said: 
> > 
> >   Rick> XmPushButton??
> 
> Things that won't do: wrong shadows; extra translations; keyboard focus
> & the associated highlight

Swap the topShadowColor and the bottomShadowColor. This will make it look like
it is pushed in.

Replace the translations.

Set traversalOn to False.

Set highlightThickness to zero. (Probably taken care of by the previous one).


> 
> > 
> > Or maybe XmText with XmNeditable set to False?
> > 
> > __Martin
> 
> Things that won't do: cursor; keyboard focus & the associated highlight;
> bell ring on edit; no XmStrings or Pixmap.
> 
> I had already considered both, and found them unsatisfactory. So, I have
> dug out Volume 4 and started on an XmLabel subclass. But it's my first
> 'ab initio' widget, so it may take me some time :-)
> 
> Any suggestions for desirable resources?

Take a look at XltBubbleButton, it should give you a good start. Also, if the
look you are trying for is a label inside a frame, consider sub-classing frame.
Inherit everything except initialize. Set your default resources to make the
frame look the way you want. Your initialize will simply call the super-class
init, then create a label as a child. Then you have something that looks and
behaves like a label in a frame, but is treated as a single widget. XltNumEntry
is a similar thing. It is a Form sub-class that adds a couple of other widgets
to get the desired result.


> 
> Greetings.
> -- 
> Michel Bardiaux
> Peaktime Belgium S.A.  Rue Margot, 37  B-1457 Nil St Vincent
> Tel : +32 10 65.44.15  Fax : +32 10 65.44.10
> 
> 

Reply via email to