- Messages
- 371
- Country

Hello,
A user report to me that when it undock my gauge to drag on a second screen, mouse area clickspot have issue.
Gauge has a fixed size of 1024x768
Here is the declaration is Panel.cfg :
[Window06]
size_mm=1024,768
pixel_size=1024,768
position=4
visible=0
BACKGROUND_COLOR=0,0,0
ident=10101
gauge00=A320FD-FMC!A320_FMS_Main,0,0,1024,768
sizeable=0
To select a SID, you have just to click on a SID line. I use the following code to translate mouse click position :
There is third column max, with 34 lines per column max.
All works on main screen, but when user undock the gauge on his second screen, when he click on a line, there is an offset and this is another line that is selected.
Is there a solution to solve this problem ? My panel.cfg declaration is wrong ? or mouse area detection method cannot work when window is undocked ?
Thanks for your help.
A user report to me that when it undock my gauge to drag on a second screen, mouse area clickspot have issue.
Gauge has a fixed size of 1024x768
Here is the declaration is Panel.cfg :
[Window06]
size_mm=1024,768
pixel_size=1024,768
position=4
visible=0
BACKGROUND_COLOR=0,0,0
ident=10101
gauge00=A320FD-FMC!A320_FMS_Main,0,0,1024,768
sizeable=0
To select a SID, you have just to click on a SID line. I use the following code to translate mouse click position :
Code:
<Size>590,505</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<Script>
1 (>L:CA_Sound14)
(M:Event) 'LeftSingle' scmp 0 ==
(L:SID,bool) 1 == and if{ 0 190 (M:X) rng (M:Y) 15 / flr 1 + (L:SIDnumber,enum) <= and if{ (M:Y) 15 / flr 1 + (>L:Selected_SID,enum) }
220 390 (M:X) rng (M:Y) 15 / flr 35 + (L:SIDnumber,enum) <= and if{ (M:Y) 15 / flr 35 + (>L:Selected_SID,enum) }
435 600 (M:X) rng (M:Y) 15 / flr 69 + (L:SIDnumber,enum) <= and if{ (M:Y) 15 / flr 69 + (>L:Selected_SID,enum) }
'IndexSIDName:' (L:Selected_SID,enum) int scat (>C:XMLVARS:SearchVarName,string)
(C:XMLVARS:StringValue,string) 'NEXT PAGE' scmp 0 == if{ 1 (>L:Sid_index_page,bool) 1 (>L:refresh_index,bool) }
(C:XMLVARS:StringValue,string) 'PREVIOUS PAGE' scmp 0 == if{ 0 (>L:Sid_index_page,bool) 1 (>L:refresh_index,bool) }
}
(M:Event) 'LeftSingle' scmp 0 ==
(L:STAR,bool) 1 == and if{ 0 280 (M:X) rng (M:Y) 15 / flr 1 + (L:STARnumber,enum) <= and if{ (M:Y) 15 / flr 1 + (>L:Selected_STAR,enum) }
320 600 (M:X) rng (M:Y) 15 / flr 34 + (L:STARnumber,enum) <= and if{ (M:Y) 15 / flr 34 + (>L:Selected_STAR,enum) }
'IndexSTARName:' (L:Selected_STAR,enum) int scat (>C:XMLVARS:SearchVarName,string)
(C:XMLVARS:StringValue,string) 'NEXT PAGE' scmp 0 == if{ 1 (>L:Star_index_page,bool) 1 (>L:refresh_index,bool) }
(C:XMLVARS:StringValue,string) 'PREVIOUS PAGE' scmp 0 == if{ 0 (>L:Star_index_page,bool) 1 (>L:refresh_index,bool) }
}
</Script>
</MouseClick>
There is third column max, with 34 lines per column max.
All works on main screen, but when user undock the gauge on his second screen, when he click on a line, there is an offset and this is another line that is selected.
Is there a solution to solve this problem ? My panel.cfg declaration is wrong ? or mouse area detection method cannot work when window is undocked ?
Thanks for your help.

