Re: Fast question, hopefully fast answer!

2001-07-21 Thread Asger K. Alstrup Nielsen
On Fri, 20 Jul 2001, Juergen Vigna wrote: > Hmm, probably it will not work, but then it's just stupid IMO! I just > want some metrics which surely are not dependant from anything (draw==false) > and I'm not able to get them. IMO we should add this static methods to be > able to call them without

Re: Fast question, hopefully fast answer!

2001-07-20 Thread John Levon
On Fri, Jul 20, 2001 at 12:54:33PM +0200, Juergen Vigna wrote: > > On 20-Jul-2001 Angus Leeming wrote: > > > Only if buttonText is a static method. From a quick look, it isn't. (But the > > compiler will bomb out if it doesn't like it.) > > Hmm, probably it will not work, but then it's just s

Re: Fast question, hopefully fast answer!

2001-07-20 Thread Juergen Vigna
On 20-Jul-2001 Angus Leeming wrote: > Only if buttonText is a static method. From a quick look, it isn't. (But the > compiler will bomb out if it doesn't like it.) Hmm, probably it will not work, but then it's just stupid IMO! I just want some metrics which surely are not dependant from anythi

Re: Fast question, hopefully fast answer!

2001-07-20 Thread Angus Leeming
On Friday 20 July 2001 11:19, Juergen Vigna wrote: > Have a look at this function: > > int InsetCollapsable::width_collapsed(Painter & pain, LyXFont const &) const > { > int width; > int ascent; > int descent; > pain.buttonText(TEXT_TO_INSET_OFFSET, 0, label, label

Fast question, hopefully fast answer!

2001-07-20 Thread Juergen Vigna
Have a look at this function: int InsetCollapsable::width_collapsed(Painter & pain, LyXFont const &) const { int width; int ascent; int descent; pain.buttonText(TEXT_TO_INSET_OFFSET, 0, label, labelfont, false, width, ascent, descent);