dropdown buttons

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

dropdown buttons

Post by francof » Sat Nov 29, 2014 6:45 pm

Hi all,

some time ago, I saw, somewhere in the LC site, probably into the LiveCode Lessons pages how to create a kind of Pulldown Menu object.
I do not find it more.... I dreamed it? does anyone know what I'm looking for?

ciao
franco

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: dropdown buttons

Post by FourthWorld » Sat Nov 29, 2014 7:52 pm

In the middle of the LiveCode IDE's Tools palette you'll see an object for "Pulldown Menu" (the label is visible as a tooltip when you hover over it); just drag and drop that onto your card.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: dropdown buttons

Post by dunbarx » Sat Nov 29, 2014 8:41 pm

Hi.

Know that there are several different types of these, some hierarchal, and all are simply buttons with different property sets. Check out, as Richard says, the "pullDown" icon in the tools palette, but also check out its immediate neighbors.

When I first started, I made a card with all four flavors, "pulldown","option", "combo" and "poopup" and loaded them all with the same contents. Do this. Then play with their unique features.

Craig Newman

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: dropdown buttons

Post by Da_Elf » Sat Nov 29, 2014 8:52 pm

building your own is always better since there are a lot of styling limitations to the default ones

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: dropdown buttons

Post by FourthWorld » Sat Nov 29, 2014 9:20 pm

Da_Elf wrote:building your own is always better since there are a lot of styling limitations to the default ones
What properties do you change?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: dropdown buttons

Post by francof » Sun Nov 30, 2014 12:32 pm

Hi all, thanks for replies.

yes I now the standard objects ready to use, and probably I will use one of them. but, I liked the look and the movement to get off of the created object: not instantaneous but, gradual. voice by voice and all with the skin of the "closed object" something like this:
closed.jpg
closed.jpg (4.15 KiB) Viewed 7310 times
opening.jpg
opening.jpg (11.11 KiB) Viewed 7310 times
opened.jpg
opened.jpg (12.81 KiB) Viewed 7310 times
Accidenti, I don't remember where it was.
one more question: pulldown, pop-up, option menu objects are they supported on mobile?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: dropdown buttons

Post by dunbarx » Sun Nov 30, 2014 4:54 pm

Well, you are going to need to do what Da_Elf suggested. Roll your own.

You will need to show/hide and move a series of buttons. This should be a hoot. Write back if you need help with this.

Craig

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: dropdown buttons

Post by francof » Sun Nov 30, 2014 5:09 pm

dunbarx wrote:Well, you are going to need to do what Da_Elf suggested. Roll your own.

You will need to show/hide and move a series of buttons. This should be a hoot. Write back if you need help with this.

Craig
I prefer to avoid this kind of fun.... :)
for now I will begin with a traditional pulldown menu

best
franco

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: dropdown buttons

Post by francof » Sun Nov 30, 2014 6:15 pm

at the end it seems that I must build my own pull-down menu. only that it will not a pull-down menu but, a pull-right menu.
this because every object will be hidden by the browser group. below an answer by an administrator to an user:
Hi Erik,

the browser object lies at the highest layer when it is displayed. All other LiveCode controls lie at lower layers, so it is not possible to display anything on top of the browser from within LiveCode. - Sorry

Kind Regards,

Hanson
ciao
franco

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: dropdown buttons

Post by dunbarx » Sun Nov 30, 2014 7:52 pm

So you are compelled to have fun.

Let us know how this sausage string comes out.

Craig

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: dropdown buttons

Post by francof » Sun Nov 30, 2014 10:56 pm

Hi Craig,
yes, sausage gives an idea of the final result, will let you know. I already have half a mind (it says so?) move, ticks, relative....
by the way what the hell pays a tick

best
franco

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: dropdown buttons

Post by francof » Tue Dec 02, 2014 11:14 pm

Hi all,
finally I've made a working test, it's not yet a row of sausages but...
I've used 4 buttons, and I've tried to give them a not too fast fluid motion.
below the code.
MotionTest.rar
(1.51 KiB) Downloaded 238 times
ciao
franco

Post Reply