Option Menu (Modified Button) - Not for Android ?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Option Menu (Modified Button) - Not for Android ?

Post by Traxgeek » Sat Sep 13, 2014 2:08 pm

Hi,

Maybe it's just me, taking a break from 'fullscreenmode', I thought I'd try fixing some other stuff that appears not to function as I may have expected when I try to launch my (already working desktop) app to mobile...

The 'Option button' - just to stop me banging my head against a brick wall and to give me a pointer please :
Am I correct in saying that the option button
[1] does not work on Android ?
and
[2] has changed its visual behaviour on desktop since LC5.5.4 (I confess to having noted this since v6.0, I thought it would be addressed - but not yet... (currently 'living with it' - but if this is something I'm now doing wrong, I'd love to fix it...)

It's probably just me but...
[1] on Android, the button appears with the top most item in its list visible and a small rectangle at the right hand side but I don't seem to be able to interact with it.
and
[2] on Mac / Windows the displayed outline/container for the button remains a fixed height regardless of the text size within it and the height I tell it to be ... typically, this results in overly large text overlapping the top/bottom borders of the control... The control looks ugly but does work though !! I could post an image / test stack if anyone's interested - but I think you'll get the idea without it...

So, what am I doing wrong please (specifically with Android) ? And, pointers on how to work around it IF it's a 'feature' of Android - just a pointer or two would do (like roll your own perhaps ?).

Thanks a mil.
Last edited by Traxgeek on Sat Sep 27, 2014 3:54 pm, edited 1 time in total.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Simon » Sat Sep 13, 2014 6:25 pm

Stop banging head. :)
Use mobilePick.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Option Menu (Modified Button) - Not for Android ?

Post by jacque » Sat Sep 13, 2014 7:56 pm

What Simon said. The reason is that menus are implemented in LiveCode as little mini stacks, and you can only have one stack open at a time on mobile devices. That's why menu buttons don't work, and you need to use native controls on both Android and iOS.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Traxgeek » Sun Sep 14, 2014 8:17 am

Thanks both. 'MobilePick' is the order of the day it seems !

Thanks a mil for- for both the pointer and explanation - it's always good to understand why - e.g. I now understand that
jacque wrote:you can only have one stack open at a time on mobile devices.
... which kinda answers a previous post with regards to my sub-stack dialogs not working (like they do on my Mac/PC) on Android ! Still sooooo much to learn...

Errmmm : Back to the Mac -
Traxgeek wrote:[2] on Mac / Windows the displayed outline/container for the button remains a fixed height regardless of the text size within it and the height I tell it to be ... typically, this results in overly large text overlapping the top/bottom borders of the control... The control looks ugly but does work though !! I could post an image / test stack if anyone's interested - but I think you'll get the idea without it...
Any ideas please ? (I'm aware this is the Android forum but as its related I hope it's OK to re-ask here...
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Simon » Sun Sep 14, 2014 8:29 pm

Hi Traxgeek,
Nope I'm not clear on the question.

Code: Select all

set the height of btn "option1" to the formattedHeight of btn "option1"
That will fit everything neatly into the button. Also you can use width and formattedWidth

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Traxgeek » Mon Sep 15, 2014 2:41 pm

Thanks Simon,

I'll try and be more specific...

I have (Option) button on my card.
I set it's height to 40, width to 300.
I set text formatting to Arial with a font size of 24
Yeah - it's a pretty big button (for the moment)...

When highlighted (dev mode) I can see the 8 square, gray handles on its periphery and they expand and contract as I increase / decrease the height / width of the control from within the Size&Position pane of the Property Inspector...
My 'issue' with the little blighter is that whilst the displayed text, within the control WILL scale OK, the (in my case) white rounded rectangular box that the text sits in (with the little up/down arrows on the right hand end) within the control boundaries does NOT !

My question is : Is this a 'feature' I have to get used to (work around / roll my own) OR am I doing something ridiculous (again :? !) ?
BTW this did not happen in version 5.5.4 and previous... So...
Any ideas please ? Should I post up a wee 'demo' stack ?
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Simon » Mon Sep 15, 2014 6:27 pm

ooops.
http://quality.runrev.com/show_bug.cgi?id=11837
Not really sure how it's supposed to work with large font text... (Mac only)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Re: Option Menu (Modified Button) (SOLVED)

Post by Traxgeek » Mon Sep 15, 2014 9:54 pm

Thanks Simon.

Must start looking at the bug fix centre / area / thingy - thing !
I'll mark this one as solved and roll my own for all platforms I think...
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Simon » Tue Sep 16, 2014 12:29 am

That's the spirit! :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Knoxf
Posts: 7
Joined: Wed Sep 17, 2014 11:27 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Knoxf » Wed Sep 17, 2014 4:24 pm

Simon wrote:Stop banging head. :)
Use mobilePick.

Simon
Sorry in advance for my ignorance.... but what is mobilePick? :shock:

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Option Menu (Modified Button) - Not for Android ?

Post by Simon » Wed Sep 17, 2014 4:42 pm

Hi Knox,
The liveCode Dictionary is your best friend!
Look up mobilePick in it. :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply