Hi Oliver,

> i tried with
>       
>    oControl.getPeer().invalidate(1)
> 
> different flags, but the control is not updated to the correct model
> state ... only changing to printpreview (and back) updates the
> control to the correct model state ...

Hmm, this might suggest that in fact the control is still disabled,
instead of having a repaint problem.
What does
  MsgBox oControl.getPeer().getProperty( "Enabled" )
give you?

Alternatively, try (yes, it'd be a hack)
  oControl.getPeer().setProperty( "Enabled", FALSE )
  oControl.getPeer().setProperty( "Enabled", TRUE )

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Database                   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to