Option Menu (Modified Button) - Not for Android ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Option Menu (Modified Button) - Not for Android ?
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.
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
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: Option Menu (Modified Button) - Not for Android ?
Stop banging head.
Use mobilePick.
Simon

Use mobilePick.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Option Menu (Modified Button) - Not for Android ?
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
HyperActive Software | http://www.hyperactivesw.com
Re: Option Menu (Modified Button) - Not for Android ?
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
Errmmm : Back to the Mac -
Thanks a mil for- for both the pointer and explanation - it's always good to understand why - e.g. I now understand that
... 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...jacque wrote:you can only have one stack open at a time on mobile devices.
Errmmm : Back to the Mac -
Any ideas please ? (I'm aware this is the Android forum but as its related I hope it's OK to re-ask here...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...
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: Option Menu (Modified Button) - Not for Android ?
Hi Traxgeek,
Nope I'm not clear on the question.
That will fit everything neatly into the button. Also you can use width and formattedWidth
Simon
Nope I'm not clear on the question.
Code: Select all
set the height of btn "option1" to the formattedHeight of btn "option1"
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Option Menu (Modified Button) - Not for Android ?
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'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
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: Option Menu (Modified Button) - Not for Android ?
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
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!
Re: Option Menu (Modified Button) (SOLVED)
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...
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
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: Option Menu (Modified Button) - Not for Android ?
That's the spirit! 
Simon

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Option Menu (Modified Button) - Not for Android ?
Sorry in advance for my ignorance.... but what is mobilePick?Simon wrote:Stop banging head.![]()
Use mobilePick.
Simon

Re: Option Menu (Modified Button) - Not for Android ?
Hi Knox,
The liveCode Dictionary is your best friend!
Look up mobilePick in it.
Simon
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!