Page 1 of 1

How to adjust size of scrollbar by user interface

Posted: Wed Nov 11, 2015 11:45 am
by samjith
Hi,

How to adjust height and width of scrollbar/option menu/button/field by user interface.
is it possible to change height and width of items? by dragging

Please find the attached zip file, contains stack to move items.
but it is difficult for me to block sliding when move items and block options when moving option menu (with out right clicking)
How to block this through script?


Thanks
Samjith

Re: How to adjust size of scrollbar by user interface

Posted: Wed Nov 11, 2015 4:20 pm
by dunbarx
Hi.

The "scrollbarWidth" is a property that might come in handy.

But when you say "adjust the height", that is odd. Scrollbars are always set to the height of the object they live in. If you want a scrollbar that is not, I think it will have to be a separate control. Certainly doable. Is this what you meant?

Craig Newman

Re: How to adjust size of scrollbar by user interface

Posted: Thu Nov 12, 2015 10:41 am
by samjith
Hi,

This is different than what i mean,

For example

I need to adjust the height and width of button, but i dont want to adjust the H/Width by entering values.
I want to adjust it by click and dragging its vertex in run mode.



Thanks
Samjith

Re: How to adjust size of scrollbar by user interface

Posted: Thu Nov 12, 2015 3:19 pm
by dunbarx
Ah.

On a new card, make a button. In the card script:

Code: Select all

on mouseMove
 if item 3 of the rect of btn 1 - the mouseH < 10 and item 4 of the rect of btn 1 - the mouseV < 10 and the mouse is down then set the rect of btn 1 to the topleft of btn 1 & "," & the mouseH & "," & the MouseV
end mouseMove
This what you meant?

I put the handler in the card script so you might modify it to be universal for all (or certain other) controls. Otherwise, you could just as well put this in the button script, right?

Craig

Re: How to adjust size of scrollbar by user interface

Posted: Thu Nov 12, 2015 4:22 pm
by FourthWorld
See the tool global property in the Dictionary. What you're looking for is:

choose pointer tool

Re: How to adjust size of scrollbar by user interface

Posted: Sat Nov 14, 2015 5:22 am
by samjith
Hi Craig and Richard Gaskin,
This what you meant?
This is exactly what i meant, works fine and got the idea to work forward with more :lol:
choose pointer tool
pointer tools works, but my controls are with in groups & groups,

is there any way to use pointer tool in groups :?:

Thanks
Samjith

Re: How to adjust size of scrollbar by user interface

Posted: Sun Nov 15, 2015 4:28 am
by dunbarx
Hi.

Check out the "selectGroupedControls" property in the dictionary. Then experiment...

Craig