Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Missing clicks
Two issues which I suspect might be related.
I have an edittable that has as a first column a check box. All boxes are checked.
If I try to uncheck a given box, it doesn't always do so, I must move mouse around and click several times.
If same edittable window does not have focus clicking in the edittable does not give the window focus. Clicking elsewhere in the window does give the window focus.
This behavior is recent.
Any ideas?
I have an edittable that has as a first column a check box. All boxes are checked.
If I try to uncheck a given box, it doesn't always do so, I must move mouse around and click several times.
If same edittable window does not have focus clicking in the edittable does not give the window focus. Clicking elsewhere in the window does give the window focus.
This behavior is recent.
Any ideas?
Comments
Handle = Get_Property(@Window:".MDICLIENT", "HANDLE")
Call Send_Message(@Window:".OLE_SUBCLASS", "OLE.Subclass", Handle, @Window:".MDICLIENT")
Call Set_Property(@Window:".OLE_SUBCLASS", "OLE.MdiTheme[":@Window:";MDICLIENT]", MdiTheme)
It occurs even if MdiTheme = ""
Edit this might be incorrect, I'm testing.
Edit 2, it's not those lines of code.
If above window has focus (MDI Child btw) and click on header of a different window that does not use the SRP edittable, a double click fires (window is maximized) not a single click to give focus.
Edit it occurs with two windows both of which use the SRP edittable. The other window just must be also an MDI child.
I'll look into the check box issue and get back to you.
The two issues you are talking about are
1. The buttons not unchecking.
2. The window does not get focus when the editttable is clicked on but does get focus when you click elsewhere in the window.
Correct?
OnMouseEnter
OnMouseExit
OnMouseEnter
OnGotFocus
GotFocus
OnCheckChanged
OnCheckChanged
OnCheckChanged
OnCheckChanged
OnCheckChanged
OnCheckChanged
OnCheckChanged
OnClick
OnClick
OnClick
OnClick
OnClick
OnClick
OnClick
OnClick
OnDblClick
OnMouseExit
OnMouseEnter
OnMouseExit
OnLostFocus
LostFocus
OnMouseEnter
OnMouseExit
OnMouseEnter
If the check box issue persists, then there is something I'm lacking in my test environment to recreate this. Perhaps it is reacting more slowly due to event handling or something. I test in a clean OI with no promoted events.
Event name followed by click position param1, the first few clicks work and I get a then OnCheckChanged, then they stop working and I get the OnClick event (note the position never changes, I was not moving the mouse at all).
I am going to use your ButtonDown flag, so this is not urgent at all, I just wanted to let you know what I had discovered.
Thanks again for the help.
Edit: I don't think I was double clicking either.
OnMouseEnter
OnMouseExit
OnMouseEnter
OnMouseExit
OnMouseEnter
OnMouseExit
OnMouseEnter
OnMouseExit
OnMouseEnter
OnGotFocus
GotFocus
OnCheckChanged
2;1
OnCheckChanged
2;2
OnCheckChanged
2;3
OnCheckChanged
2;4
OnCheckChanged
2;5
OnMouseExit
OnMouseEnter
OnClick
2;11
OnClick
2;11
OnDblClick
2;11
OnClick
2;11
OnDblClick
2;11
OnClick
2;11
OnDblClick
2;11
OnClick
2;11
OnDblClick
2;11
OnClick
2;11
OnMouseExit
OnLostFocus
LostFocus
OnGotFocus
OnLostFocus
Call Set_Property(Obj, "OLE.CellType[2;1]","Check Box":@FM:0:@VM:0:@VM:1)
This is what the events now look like and once you get to the OnClick the checkbox does not uncheck. I accidently did a DblClick in the middle.
This is what I did from line one moving downward I unchecked each checkbox in turn, then I skipped a bunch then it stops working. I think the key to reproducing this is to skip a bunch of checkboxes.
OnMouseEnter
OnCheckChanged
2;1
OnGotFocus
GotFocus
OnCheckChanged
2;2
OnCheckChanged
2;3
OnCheckChanged
2;4
OnCheckChanged
2;5
OnCheckChanged
2;12
OnCheckChanged
2;13
OnCheckChanged
2;14
OnCheckChanged
2;15
OnCheckChanged
2;16
OnCheckChanged
2;11
OnCheckChanged
2;10
OnClick
2;9
OnClick
2;9
OnDblClick
2;9
OnMouseExit
OnGotFocus
GotFocus
OnMouseEnter
OnClick
2;9
OnClick
2;9
OnClick
2;9
OnClick
2;9
OnMouseExit
OnLostFocus
LostFocus
OnGotFocus
OnLostFocus
I suspect this is environmental, and if that's the case, the fastest way for me to isolate the issue is to recreate your environment. Some people will email me a link to download a copy of their OI system, which I am open to doing if you are.