Page 1 of 1

Option Menu (Modified Button) - Not for Android ?

Posted: Sat Sep 13, 2014 2:08 pm
by Traxgeek
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.

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

Posted: Sat Sep 13, 2014 6:25 pm
by Simon
Stop banging head. :)
Use mobilePick.

Simon

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

Posted: Sat Sep 13, 2014 7:56 pm
by jacque
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.

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

Posted: Sun Sep 14, 2014 8:17 am
by Traxgeek
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...

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

Posted: Sun Sep 14, 2014 8:29 pm
by Simon
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

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

Posted: Mon Sep 15, 2014 2:41 pm
by Traxgeek
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 ?

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

Posted: Mon Sep 15, 2014 6:27 pm
by Simon
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

Re: Option Menu (Modified Button) (SOLVED)

Posted: Mon Sep 15, 2014 9:54 pm
by Traxgeek
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...

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

Posted: Tue Sep 16, 2014 12:29 am
by Simon
That's the spirit! :)

Simon

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

Posted: Wed Sep 17, 2014 4:24 pm
by Knoxf
Simon wrote:Stop banging head. :)
Use mobilePick.

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

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

Posted: Wed Sep 17, 2014 4:42 pm
by Simon
Hi Knox,
The liveCode Dictionary is your best friend!
Look up mobilePick in it. :)

Simon