[vtkusers] Re: [Foxgui-users] Updates for fox 1.6?
    Jean-Do Barnichon 
    jeando.barnichon at free.fr
       
    Wed May 16 15:40:02 EDT 2007
    
    
  
On 5/15/07, Jeroen van der Zijp <jeroen at fox-toolkit.org> wrote:
> > I have just been collecting a number of little issues, but I suspect the
> > time may be ripe to put out another release soon.
>   
Just a reminder about the following recent thread 
Re: [Foxgui-users] FXTextField : how to handle real values with more than 7 digits?
for which I did not get any answer from Jeroen.
...  
Jeroen,
I did some modifications (see herebelow) to the FXTextField class, and 
it works, at least for what I want.*
*Would you consider introducing it in a future version of Fox ?
Cheers,
Jean-Do
*in the header :
*class FXAPI FXTextField : public FXFrame {
...
  FXint         displayprec;    // Precision
...
  /// Change display precision
  void setDisplayPrec(FXint prec);
  /// Return display precision
  FXint getDisplayPrec() const { return displayprec; }
...
*in the implementation file :
*FXTextField::FXTextField(){
...
  displayprec=6;
  }
// Update value from a message
long FXTextField::onCmdSetRealValue(FXObject*,FXSelector,void* ptr){
  setText(FXStringVal(*((FXdouble*)ptr),displayprec));//  
setText(FXStringVal(*((FXdouble*)ptr)));
  return 1;
  }
    
    
More information about the vtkusers
mailing list