bob3150
Joined: 03 May 2005 Posts: 44
|
Posted: Fri Mar 10, 2006 5:24 pm Post subject: LButton and ListView Problems |
|
|
I don't know if I'm doing something wrong in my code (see below) or it is a bug. The code below is working for all GUI types I'm using also for ListView without the check box activated, but if the check box is activated it is only possible to select an list item by clicking on the check box and not on the text like in ListView without check box. When I deactivate the code below everything is working correctly. Hopefully somebody can tell me whats wrong!
| Code: |
$LButton::
GuiControlGet, PIM_Focus, 1:Focus
If PIM_Focus = ComboBox1
{
Send, {LButton}
GuiControl, 1:Focus, %PIM_Prog1%_ListView
Send, {Home}
}
Else If PIM_Focus = ComboBox2
{
Send, {LButton}
GuiControl, 1:Focus, %PIM_Prog2%_ListView
Send, {Home}
}
Else If PIM_Focus = ComboBox3
{
Send, {LButton}
GuiControl, 1:Focus, %PIM_Prog3%_ListView
Send, {Home}
}
Else If PIM_Focus = ComboBox4
{
Send, {LButton}
If PIM_Prog_Kat_Alles = 1
PIM_Prog_Kat_Alles =
Else
{
GuiControl, 1:Focus, %PIM_Prog4%_ListView
Send, {Home}
}
}
Else
Send, {LButton}
Return
|
|
|