From: Mark M. <mie...@gm...> - 2013-10-23 01:46:23
|
On Tue, Oct 22, 2013 at 5:57 PM, Art Heimsoth <art...@ar...>wrote: > I am having a problem with defining a combobox in a column > of a ListView similar to the example dropDownListComboBox.rex. > I also have an EditBox defined on another column that works okay. > I have an onEditGrandChildEvent defined with the ListView and > both a DBLCLK and CLICK going to the same method. My intention > is to use the DBLCLK to edit the data in the EditBox and a CLICK > to work with the ComboBox information - both by checking the > columnIndex and then performing the appropriate logic depending > on the value of the columnIndex. > First off, I'll say that it is difficult to separate a double-click and a single-click. A double-click *always* generates a single-click first. In C / C++ code, one way to handle this is to start a short timer on a single-click. If the double-click happens before the timer goes off you handle it as a double-click. If the timer goes off before a double-click event, you handle it as a single-click. This is further complicated by the fact that the user can adjust the double-click time. So, you first need to query the system setting for the user's double-click setting. In theory you could translate this to ooRexx, but I've never tried to do it. The delay introduced by invoking methods in your dialog, may make this not feasible. But - I've thought that about other things in ooDialog that work just fine. So, the only thing to do would be to try it. That said, I'm not really sure if that is the cause of whatever problem you are having. You've explained it well, but it is still hard for me to picture exactly what you want to do. > The problem I am having is the onEditGrandChildEvent is getting > activated whenever I do a single click on the column for the > ComboBox. It appears that this happens when I assignFocus > to the ComboBox. If I do not assignFocus to it, then the > onEditGrandChildEvent is activated when I click on the selection > box of the ComboBox. The EditBox works as I would expect > and stays with the focus until I tab, enter or otherwise click > out of the EditBox. I have not figured out how I make the > ComboBox to stay with the focus and visible until I select > something outside of the ComboBox; ie, Enter, Tab, mouse > click, etc. > > I have a sample if you would want to see it, let me know. > Sure, you can send it to me and I'll take a look at. Then I might be able to ask better questions about what you want to do. -- Mark Miesfeld |