Apache OpenOffice (AOO) Bugzilla – Issue 7459
ComboBox ListBox are buggied when PageUP PageDOWN used
Last modified: 2013-02-24 21:08:09 UTC
Try to create a library Test with a simple Dialog1 In the dialog create a ComboBox ( that's dropdown as default ) Use follow code to creates 3000 items in the combo The combo has to be the first in the order so when the dialog starts the combo has the keyboard focus Start the dialog, then try to use PageDOWN ( without opening the dropdown list ), works ? for me no, I you try to use DOWN key sometimes, this works, but when you try PageDOWN now, you get an UP key behavior. Right, this bug doesn't happen if you open the dropdown list before testing this thing. Last note: this test is done using addItems with a variant array dimensioned variable. THE CODE: REM ***** BASIC ***** Sub Main Dim dialog1 As Object dialog1 = LoadDialog( "Test", "Dialog1" ) Dim combo As Object combo = dialog1.getControl( "combo" ) Dim items As Variant Dim i As Long items = DimArray( 3000 - 1 ) For i = 0 To ( 3000 - 1 ) items( i ) = "item_" + Format( i, "0" ) Next i combo.addItems( items, 0 ) dialog1.Execute() End Sub Function LoadDialog(Libname as String, DialogName as String, Optional oLibContainer) Dim oLib as Object Dim oLibDialog as Object Dim oRuntimeDialog as Object If IsMissing(oLibContainer ) then oLibContainer = DialogLibraries End If oLibContainer.LoadLibrary(LibName) oLib = oLibContainer.GetByName(Libname) oLibDialog = oLib.GetByName(DialogName) oRuntimeDialog = CreateUnoDialog(oLibDialog) LoadDialog() = oRuntimeDialog End Function
I am not sure, whose bug this is, my guess is yours, Frank?
Thomas, this sounds like either a problem of the underlying VCL control, or it's toolkit representation. In both cases, I assume, you're a good person to have a look at it.
now really changing ownership ....
TBE->SSA: The problem seems to be in ImplListBoxWindow::ProcessKeyInput, case KEY_PAGEUP/KEY_PAGEDOWN.
I'll have a look...
The number of visible lines were not computed until the combobox or listbox popped up the first time. Can also be seen easily in combo- or listboxes in the toolbar. PageUp/PageDn behaved differently once you opened the list box. Fixed now in CWS vcl04.
reopen
please verify in vcl04.
Hi Marc, please have a look at this
Reset status
Component: api. Transferring to SW. Have to reopen first.
setting back to fixed. US: The initial problem was when selecting a combo box (e.g. in Draw, in the Object Bar - Line Color combo box) by keyboard shortcut F6. Now hitting Return (to select it) and page down only scrolled down one item, as if cursor down was pressed. (Page down was calculated correct ever since the combo box was dropped down once - by mouse.) This has now been corrected. No need for transferring. Ok in vcl_04
.
ok in m4s4
As mentioned on the qa dev list on March 5th I will close all resolved <wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.