December 28, 200916 yr Hi, now that I've got the knobs turning with mouse wheel support,I should be happy and go fly... but I've still got one more thingI would love to do:Turning the knob with the mouse wheel anywhere over the knob and allowing the knobto be pushed with a click (maybe mouse wheel click).Here is what I have and it does work! <Area Left="5" Top="610" Width="80" Height="60"> <Area Right="30"> <Tooltip>Decr AP Altitude</Tooltip> <Cursor Type="DownArrow"/> <Click Repeat="Yes"> 100 (>K:AP_ALT_VAR_DEC) </Click> </Area> <Area Left="30"> <Tooltip>Incr AP Altitude</Tooltip> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> 100 (>K:AP_ALT_VAR_INC) </Click> </Area> </Area> <Area Left="35" Top="610" Width="20" Height="60"> <Help ID="HELPID_AUTOPILOT_ALTITUDE_HOLD"/> <Tooltip ID="TOOLTIPTEXT_AUTOPILOT_ALTITUDE_HOLD"/> <Cursor Type="Hand"/> <Click Event="AP_ALT_HOLD"/> </Area> Here is what I would like (the push works, but the wheel is not detected..) <Area Left="5" Top="610" Width="80" Height="60"> <Tooltip>Adjust AP Altitude</Tooltip> <Cursor Type="Hand"/> <Click Kind="LeftSingle+Wheel"> (M:Event) 'LeftSingle' scmp 0 == if{ 0 (>K:AP_ALT_HOLD) } (M:Event) 'WheelUp' scmp 0 == if{ 100 (>K:AP_ALT_VAR_INC) } (M:Event) 'WheelDown' scmp 0 == if{ 100 (>K:AP_ALT_VAR_DEC) } </Click> </Area> Edited by author:I've got it! BTW.. any way to detect the mouse wheel push? <Area Left="4" Top="612" Width="80" Height="63"> <Tooltip>Adjust AP Altitude</Tooltip> <Cursor Type="Hand"/> <Click Kind="LeftSingle+WheelUp+WheelDown"> (M:Event) 'LeftSingle' scmp 0 == if{ 0 (>K:AP_ALT_HOLD) } (M:Event) 'WheelUp' scmp 0 == if{ 100 (>K:AP_ALT_VAR_INC) } (M:Event) 'WheelDown' scmp 0 == if{ 100 (>K:AP_ALT_VAR_DEC) } </Click> </Area> Bert
December 28, 200916 yr Bert,May give MiddleSingle a try -- BTW here is a list of the possibles, taken from a *.dll, not tested at all.Leave LeftDouble LeftDrag LeftRelease LeftSingle MiddleDouble MiddleDrag MiddleRelease MiddleSingle Move RightDouble RightDrag RightRelease RightSingleWheelDown WheelUpI use 'Move' alot - I use it to open secondary windows with a cursor type as "None". Just despise Window Icons muddying up a nice looking panel. Ex. moving the mouse over the upper middle part of the windshield center post will open up an overhead panel. No clicking involved.Roman FS RTWR SHRS F-111 JoinFS Little Navmap
December 28, 200916 yr Moderator Here's the list directly from the SDK: ClickType One of:LeftAllRightAllMiddleAllRightSingleMiddleSingleLeftSingleRightDoubleMiddleDoubleLeftDoubleRightDragMiddleDragLeftDragMoveRightReleaseMiddleReleaseLeftReleaseWheelUpWheelDownLeave MouseWheelFlip.........Set to True if flipping the mouse wheel will trigger the event. ClickRepeat.................Set to True if holding the mouse button down will repeat the key event. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment