Hot Door CORE Forum

Full Version: Vertical sliders and hierarchy.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. This is me again. During the development of my plugin, I needed to include a vertical hierarchy list with tree-like structure(much like Windows explorer), so I implemented it(along with a vertical slider class to control it), using Label and CustomWidget classes. It works fine, but there are several minor problems that cannot be avoided with this kind of implementation. Labels that form the list are arranget diferently in diferent versions of Illustrator and list updating during sliding it up and down causes flickering of the list and slider. I was wanderng if it is possible to introduce hierarchy lists(much like in old ADM API) or at least native CORE vertical slider to use in my plugin. I could send you code of my implementation if it would be of any help. Thanks for attention.
Also I wanted to know if there is some way to add a keypress monitor for mouse buttons the same way as with other virtual keys?
(05-24-2014, 05:48 AM)Gaxx Wrote: [ -> ]During the development of my plugin, I needed to include a vertical hierarchy list with tree-like structure(much like Windows explorer), so I implemented it(along with a vertical slider class to control it), using Label and CustomWidget classes. It works fine, but there are several minor problems that cannot be avoided with this kind of implementation. Labels that form the list are arranget diferently in diferent versions of Illustrator and list updating during sliding it up and down causes flickering of the list and slider. I was wanderng if it is possible to introduce hierarchy lists(much like in old ADM API) or at least native CORE vertical slider to use in my plugin. I could send you code of my implementation if it would be of any help.

We already have some internal TODOs to make column view widgets and hierarchy list widgets. We did not previously consider making a vertical slider, as our intentions were to make widgets as Illustrator-like as possible (and Illustrator does not utilize vertical sliders). I can't say when any of these widgets will be created for public use, as we have other products on higher priority for the next couple months.

Thanks for the offer to contribute your code. I will keep that in mind once we get around to these requests.

(05-26-2014, 05:59 AM)Gaxx Wrote: [ -> ]Also I wanted to know if there is some way to add a keypress monitor for mouse buttons the same way as with other virtual keys?

This was not on our list as a feature, but I will add it for future consideration. At the moment, you can of course receive mouse events for tools and custom widgets. Is there some other time in particular that you need to know the state of a mouse button?
Quote:This was not on our list as a feature, but I will add it for future consideration. At the moment, you can of course receive mouse events for tools and custom widgets. Is there some other time in particular that you need to know the state of a mouse button?
Basically - there is a custom widget with some preview in it and I want to be able to rotate it with mouse, but when the cursor leaves the widget it automatically senda s mouse up event, so rotating stops if mouse is dragged away, which can be frustrating for plugin users because it makes rotation not as free-form as it should be.
I have added a function to query the mouse buttons (only left, right, and middle) to CORE. It will be available in the upcoming 0.5.5 release.