Dear guys
is there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component
Thanks in advance
Dear guys
is there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component
Thanks in advance
Two practical ways to put a tree component's scrollbar on the left: reposition the built-in scrollbar by subclassing/skin, or disable the built-in bar and attach a custom scrollbar that drives the tree's visible range. asked for an example; correctly pointed to component customization, but the missing piece in this thread is actionable layout steps and implementation tradeoffs.
Subclass/skin route (minimal intrusion)
updateDisplayList(width,height); in Flash UI components override configUI()/draw() (or the equivalent lifecycle methods). Call the superclass method, locate the vertical scrollbar instance, set its x position to the left edge, then shift the tree content (or shrink its content area) to the right so nothing overlaps. Run that layout on resize so the bar stays anchored.Custom-scrollbar route (safe, flexible)
scrollRect/vertical offset according to the slider. Compute max/min based on content height or visible row count so the range is correct.Notes and troubleshooting
Jump to Post— JasonHippy 739OK, I've reskinned the FLV player component before, but I've never had to reskin the tree component. So I'm not sure what would be involved. However, I do know that most, if not all of the components that ship with the various versions of flash are fully skinnable and customisable...So …
Please I Really need this
OK, I've reskinned the FLV player component before, but I've never had to reskin the tree component. So I'm not sure what would be involved. However, I do know that most, if not all of the components that ship with the various versions of flash are fully skinnable and customisable...So reskinning and customising the Tree component should be possible.
A quick google reveals that the answer to your question most likely lies in the Adobe flash livedocs.....( http://tinyurl.com/qnxf8g - click the link and follow the top result!)
The docs state that the tree component uses an instance of the RectBorder class for its border and a scrollbar component...I'm not sure if the scrollbar is a sub-component used in the Tree's RectBorder instance, or if it is just a direct subcomponent of the Tree (like the RectBorder instance). I guess you'll have to look into that yourself!
Anyway from the link provided, you should be able to access all the help you need. Skinning of components has been around since at least mx2004, so the whole process of skinning should be well documented.
From a cursory look in the livedocs, they detail how to skin components and their sub-components, so you should be able to find all of the info you're looking for in there!
The process will probably be quite long-winded, and probably also prone to problems but I'm sure you'll get there in the end!
Cheers for now,
Jas.
:( Not Work , Is There Any Solution , Or At Least Any Example
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.