Shared Pov, Docking Checkboxes, other things over my head
Moderators: dorpond, trevor, Azhrei
Re: Shared Pov, Docking Checkboxes, other things over my hea
With the idea now to go with something that updates whenever a radio option is changed, I am looking for how to make that work. I'm not making the mental link to which command will actually achieve this. The onChangeSelection says when changing tokens. What am I missing?
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Shared Pov, Docking Checkboxes, other things over my hea
In web this is usually done by javascript. This is not supported by MT (to be exactly: by the html interpreter that MT uses, its also the reason HTML and CSS support is quite outdated).
There is no way (I know of) to react on form element selection (eg selecting an input field), so you have to rely on form submits.
There is no way (I know of) to react on form element selection (eg selecting an input field), so you have to rely on form submits.
Re: Shared Pov, Docking Checkboxes, other things over my hea
Oh. Wolf42's statement confused me then. Back to the button then.
Re: Shared Pov, Docking Checkboxes, other things over my hea
yeah I tend to do that... As Cif said: form updates can only be 'saved' or applied with the use of a submit button. using onchangeselection event can provide the form with other/extra parameters but any user settings (e.g. checkbox, text or radio) will be discarded as soon as its invoked, in other words: the form will reset when you use that event.brianquad wrote:Oh. Wolf42's statement confused me then. Back to the button then.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Shared Pov, Docking Checkboxes, other things over my hea
What MIGHT be possible ... but its probably much more work than its worth ...
is to use image buttons. A click on an image button does send a form submit and the coordinates of the click (relative to the image). So you could build your own "radio button group" from an image with all radio button and aligned text lines. You would need to have those radio-image in multiple versions, so you could show which is selected.
Actually you would have to write all handling your self, but it could work.
EDIT: I actually tried to build an example and had some trouble. Actually it works pretty well but i couldnt get the image button to update the image - so no visual feedback dont know yet whats going on, maybe I'll pack up some example and post it later. Or has already someone an idea?
is to use image buttons. A click on an image button does send a form submit and the coordinates of the click (relative to the image). So you could build your own "radio button group" from an image with all radio button and aligned text lines. You would need to have those radio-image in multiple versions, so you could show which is selected.
Actually you would have to write all handling your self, but it could work.
EDIT: I actually tried to build an example and had some trouble. Actually it works pretty well but i couldnt get the image button to update the image - so no visual feedback dont know yet whats going on, maybe I'll pack up some example and post it later. Or has already someone an idea?