On Thursday 03 September 2009, 13:23, Ariel Constenla-Haile wrote: > > > you can reproduce it with your C++ SDK example (see the diff I attached > > > here, the example must be compiled with make DEBUG=yes). > > > > > > Whenever a "color" from the listbox is selected, it prints > > > > > > Thread: 1 :BaseDispatch::dispatch - Command7 > > > Thread: 1 :[0] KeyModifier = 0 > > > Thread: 1 :[1] Text = > > > > > > > > > Debugging this > > > > ... gives me > > > > Breakpoint 2, framework::DropdownToolbarController::execute > > (this=0x7f9a086f6a08, KeyModifier=0) > > at > > /mnt/build/openoffice/DEV300_m52/framework/source/uielement/dropdownboxto > >ol barcontroller.cxx:204 204 Reference< XDispatch > > > xDispatch; (gdb) n > > 205 Reference< XURLTransformer > xURLTransformer; > > (gdb) n > > 206 ::rtl::OUString aCommandURL; > > (gdb) n > > 207 ::rtl::OUString aSelectedText; > > (gdb) n > > 208 ::com::sun::star::util::URL aTargetURL; > > (gdb) n > > 211 vos::OGuard aSolarMutexGuard( > > Application::GetSolarMutex() ); (gdb) n > > 213 if ( m_bDisposed ) > > (gdb) n > > 216 if ( m_bInitialized && > > (gdb) n > > 221 xURLTransformer = m_xURLTransformer; > > (gdb) n > > 222 xDispatch = getDispatchFromCommand( m_aCommandURL ); > > (gdb) n > > 223 aCommandURL = m_aCommandURL; > > (gdb) n > > 224 aTargetURL = getInitializedURL(); > > (gdb) n > > 225 aSelectedText = m_pListBoxControl->GetText(); > > > > aSelectedText is zero length... > > seems this should be > > aSelectedText = m_pListBoxControl->GetSelectEntry(); > > instead of > > aSelectedText = m_pListBoxControl->GetText();
yes, now with m_pListBoxControl->GetSelectEntry() works fine [cf. how css.awt.XListBox.getSelectedItem() ends up in http://svn.services.openoffice.org/opengrok/xref/DEV300_m56/toolkit/source/awt/vclxwindows.cxx#1713] Thread: 1 :BaseDispatch::dispatch - Command7 Thread: 1 :[0] KeyModifier = 0 Thread: 1 :[1] Text = Blue Thread: 1 :BaseDispatch::dispatch - Command7 Thread: 1 :[0] KeyModifier = 0 Thread: 1 :[1] Text = Blue Thread: 1 :BaseDispatch::dispatch - Command7 Thread: 1 :[0] KeyModifier = 16384 Thread: 1 :[1] Text = Yellow Thread: 1 :BaseDispatch::dispatch - Command7 Thread: 1 :[0] KeyModifier = 0 Thread: 1 :[1] Text = Black Thread: 1 :BaseDispatch::dispatch - Command7 Thread: 1 :[0] KeyModifier = 8192 Thread: 1 :[1] Text = Blue selected inputmethod style = PreeditNothing StatusNothing Thread: 1 :BaseDispatch::dispatch - Command7 Thread: 1 :[0] KeyModifier = 0 Thread: 1 :[1] Text = Yellow Regards -- Ariel Constenla-Haile La Plata, Argentina --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
