About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vertical sliders and hierarchy.
05-24-2014, 05:48 AM (This post was last modified: 06-09-2017 08:27 AM by garrett.)
Post: #1
Vertical sliders and hierarchy.
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.
Find all posts by this user
Quote this message in a reply
05-26-2014, 05:59 AM
Post: #2
RE: Vertical sliders and hierarchy.
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?
Find all posts by this user
Quote this message in a reply
05-28-2014, 03:43 PM (This post was last modified: 06-09-2017 08:27 AM by garrett.)
Post: #3
RE: Vertical sliders and hierarchy.
(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?
Find all posts by this user
Quote this message in a reply
05-29-2014, 12:31 AM
Post: #4
RE: Vertical sliders and hierarchy.
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.
Find all posts by this user
Quote this message in a reply
07-05-2014, 03:13 PM
Post: #5
RE: Vertical sliders and hierarchy.
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)