To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116648
                 Issue #|116648
                 Summary|Dialog TextField(MultiLine) is not repainted in Japane
                        |se-Environment.
               Component|Spreadsheet
                 Version|OOo 3.2.1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|viewing
             Assigned to|spreadsheet
             Reported by|k_tsunoda





------- Additional comments from k_tsun...@openoffice.org Thu Jan 27 03:17:02 
+0000 2011 -------
OOo 3.2.1 / Calc / Dialog and [Japanese Environment]

The MsgBox window is not repainted when I display MsgBox after 
input a Japanese letter with "IME ON". TextField in the MsgBox 
window is "MutiLine ON".

The same problem happens with the window of the other application 
including NotePad.

Problem OS : WindowsXP(SP3), Windows2000(SP4), Ubuntu, Vine5.2 Linux
No problem OS : Windows Vista, Windows 7


I attach Calc document reproducing a problem.
It is attached a capture image to the Calc document.


-- The countermeasure for Msgbox in own macro. --

The follows are workarounds for the windows by own macro such as MsgBox.
TextField is repainted by taking following steps after MsgBox statement.

  With oDialog2.getControl("TextField1").Model
    .TextColor = &HFFFFFF   'Background Color of TextField1
    .TextColor = &H0        'Foreground Color of TextField1
  End With

However, there is not a workaround for the other application windows 
including NotePad.


-- The countermeasure for other application windows. --

The follows are workarounds for the other application windows 
including NotePad and the windows by own macro such as MsgBox.

Private oDialog As Object
Private oDialogPaintListener As Object

Sub Main ( )
  DialogLibraries.LoadLibrary("Standard")
  oDialog = CreateUnoDialog(DialogLibraries.Standard.TestDialog)

  oDialogPaintListener = CreateUnoListener _
        ("Dialog_PaintListener_","com.sun.star.awt.XPaintListener")
  oDialog.addPaintListener(oDialogPaintListener)

  oDialog.execute
  
  oDialog.removePaintListener(oDialogPaintListener)
  oDialog.dispose
End Sub

Sub Dialog_PaintListener_windowPaint(oEvent As com.sun.star.awt.PaintEvent)
  With oDialog.getControl("TextField1").Model
    .TextColor = &HFFFFFF   'Background Color of TextField1
    .TextColor = &H0        'Foreground Color of TextField1
  End With
End Sub

Sub Dialog_PaintListener_disposing(oEvent As com.sun.star.lang.EventObject)
End Sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sc.openoffice.org
For additional commands, e-mail: issues-h...@sc.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to