dropdown/popup menus
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
dropdown/popup menus
Hi,
Does anyone know a way to do dropdown or popup menus on iOS that are native looking? I think support for this was added in iOS 14 via UIMenu and ContextMenu...
https://betterprogramming.pub/whats-new ... 3cd2037c37
If no one knows if this is possible I will add a feature request.
Cheers,
Mark
Does anyone know a way to do dropdown or popup menus on iOS that are native looking? I think support for this was added in iOS 14 via UIMenu and ContextMenu...
https://betterprogramming.pub/whats-new ... 3cd2037c37
If no one knows if this is possible I will add a feature request.
Cheers,
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: dropdown/popup menus
Hi Mark,
I'm afraid until LC officially support this, you will need to "fake" it with groups.
Best
Klaus
I'm afraid until LC officially support this, you will need to "fake" it with groups.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: dropdown/popup menus
Thanks Klaus, interesting, how might one fake this in groups?
Also, posted an enhancement request for this in the QCC https://quality.livecode.com/show_bug.cgi?id=23689
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: dropdown/popup menus
Hi Mark,
quick idea, create some buttons with an icon and AUTOHILITE = FALSE and this script and group them.
Will surely need some more finetuning, but you get the picture.
Best
Klaus
quick idea, create some buttons with an icon and AUTOHILITE = FALSE and this script and group them.
Code: Select all
on mouseEnter
set the hilite of me to TRUE
end mouseEnter
on mouseLeave
set the hilite of me to FALSE
end mouseLeave
on mouseUp
## Do your thing here...
set the hilite of me to FALSE
end mouseUp
on mouseRelease
set the hilite of me to FALSE
end mouseRelease
Best
Klaus
Re: dropdown/popup menus
This might be helpful either to use as is or perhaps give some ideas:marksmithhfx wrote: ↑Fri Apr 22, 2022 9:09 pmThanks Klaus, interesting, how might one fake this in groups?
https://livecodeshare.runrev.com/stack/984/-skComboBox
-
- VIP Livecode Opensource Backer
- Posts: 7238
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: dropdown/popup menus
I've used a simple list field sometimes if you don't need anything too fancy.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: dropdown/popup menus
Thanks everyone. After the Dev Con I'll get cracking trying these out.
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS