5E Product Walkthrough Playlist
Page 1 of 2 12 Last
  1. #1

    Request For Coding Help - Button Moves On Mouse Wheel

    Hi Guys,

    I've got a funny one (which usueally means I'm doing something wrong ):

    I've added the following buttoncontrol to the ModifierStack. The button doesn't do anything at the moment (no onclick code - yet) and there is no extra code added anywhere to anything else. I've noticed that when I roll the mouse wheel (up or down) the new button progressively moves to the right - and I can't work out why (& therefore can't work out how to stop it).

    This is on a "plain-vanilla" CoreRPG v3.3.4 installation. Any ideas?

    Code:
    	<windowclass name="modifierstack" merge="join">
    		<sheetdata>
    			<buttoncontrol name="TestButton" merge="add">
    				<anchored position="insidetopright" offset="-11,2" width="15" height="15" />
    				<state icon="tool_down_30" color="FFFFFFFF" frame="mini_name" frameoffset="2,2,2,2" tooltipres="sTestButtonDownTooltip" />
    				<state icon="tool_up_30" color="FFFFFFFF" frame="mini_name" frameoffset="2,2,2,2" tooltipres="sTestButtonUpTooltip" />
    				<default>1</default>
    			</buttoncontrol>
    		</sheetdata>
    	</windowclass>
    Last edited by dulux-oz; February 22nd, 2018 at 06:38.
    Dulux-Oz

    √(-1) 2^3 Σ Π
    ...And it was Delicious!


    Alpha-Geek
    ICT Professional
    GMing Since 1982
    NSW, Australia, UTC +10
    LinkedIn Profile: www.linkedin.com/in/mjblack

    Watch our games on Twitch: www.twitch.tv/dulux_oz

    Support Me on Patreon: www.patreon.com/duluxoz

    Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    Its likely its something in the modifierstack windowclass or the TestButton buttoncontrol defined in their respective definitions...?

  3. #3
    Quote Originally Posted by damned View Post
    Its likely its something in the modifierstack windowclass or the TestButton buttoncontrol defined in their respective definitions...?
    Yes, obviously, but I can't see anything that would be causing the observed behavior - which was why I was asking if anyone else had experienced something similar or who might have a solution.

    And just to be clear, the code I posted is the ENTIRE TestButton Definition.
    Dulux-Oz

    √(-1) 2^3 Σ Π
    ...And it was Delicious!


    Alpha-Geek
    ICT Professional
    GMing Since 1982
    NSW, Australia, UTC +10
    LinkedIn Profile: www.linkedin.com/in/mjblack

    Watch our games on Twitch: www.twitch.tv/dulux_oz

    Support Me on Patreon: www.patreon.com/duluxoz

    Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz

  4. #4

  5. #5
    Quote Originally Posted by damned View Post
    Why do you use merge="add" if that is the first time you are defining it?
    Habit - it doesn't make a difference if its there or not for new entries (as far as I've experienced), but I've gotten into the habit for when I need to use a subsequent "insertbefore"
    Dulux-Oz

    √(-1) 2^3 Σ Π
    ...And it was Delicious!


    Alpha-Geek
    ICT Professional
    GMing Since 1982
    NSW, Australia, UTC +10
    LinkedIn Profile: www.linkedin.com/in/mjblack

    Watch our games on Twitch: www.twitch.tv/dulux_oz

    Support Me on Patreon: www.patreon.com/duluxoz

    Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz

  6. #6

  7. #7
    Quote Originally Posted by damned View Post
    I can replicate the issue.
    On a 1920wide desktop it moves 22px on a 1026w desktop it moves 33px.
    How very bizarre...
    Yeah, that's what I said - so now I'm wondering (a) what's the cause, and (b1) how do we fix it and/or (b2) what's the work-around?
    Dulux-Oz

    √(-1) 2^3 Σ Π
    ...And it was Delicious!


    Alpha-Geek
    ICT Professional
    GMing Since 1982
    NSW, Australia, UTC +10
    LinkedIn Profile: www.linkedin.com/in/mjblack

    Watch our games on Twitch: www.twitch.tv/dulux_oz

    Support Me on Patreon: www.patreon.com/duluxoz

    Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz

  8. #8
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,245
    Blog Entries
    9
    Not that I have any idea on the coding side, but I've seen what might be similar effects in other programs interacting with the mouse wheel. i.e. that sometimes in some programs when you scroll the mouse wheel the window actually pans left/right. I've seen this behavior change when you change the settings in the mouse control panel. Usually when you change the scroll wheel from "Auto Scroll" to something like "middle mouse button" or "zoom" etc.

    Don't have any idea if that change in behavior based on mouse settings could be replicated in this case, or if it does if it even helps. But, maybe it will or it will spawn some constructive thoughts in one of your minds

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  9. #9
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    I'd recommend searching for onWheel event handlers related to the modifier stack then tracing/debugging the code/process related to that.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  10. #10
    Quote Originally Posted by Trenloe View Post
    I'd recommend searching for onWheel event handlers related to the modifier stack then tracing/debugging the code/process related to that.
    Yeap, done that - the only onWheel relates to the value of the mod in the modstack - i can not locate any relationship between that value and the right anchor of the button.

    In fact, there is no relationship to ANYTHING and the right anchor of the button - at lease not that I can find by going through the (exposed) code line by line.

    It also seems to occur when the mod in the modstack gains & loses focus - but only after the mod's onWheel event has been fired.

    It really is quite bizzar
    Dulux-Oz

    √(-1) 2^3 Σ Π
    ...And it was Delicious!


    Alpha-Geek
    ICT Professional
    GMing Since 1982
    NSW, Australia, UTC +10
    LinkedIn Profile: www.linkedin.com/in/mjblack

    Watch our games on Twitch: www.twitch.tv/dulux_oz

    Support Me on Patreon: www.patreon.com/duluxoz

    Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in