Page 2 of 3

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Wed Mar 21, 2018 2:34 pm
by bogs
No problems, happens to me all the time :D

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Wed Mar 21, 2018 9:45 pm
by teriibi
oK, one more try... :lol:
Is there anyway I can get rid of the "not suited" Square rectangle that appear when button is being pressed down and also after it has been released :?:

Its kind of ruining the Round shape design style.. :!: :x

LEFT: IDE TEST MODE / RIGHT : APP RUNNING ON DEVICE

Image

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Wed Mar 21, 2018 10:26 pm
by bogs
Are you saying it doesn't happen in the IDE or on the virtual device, but shows up on the actual device?

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Wed Mar 21, 2018 10:54 pm
by teriibi
True,
When pressed in Test mode on the IDE, button just goes down, shadow disapear (or become very light blur) plus button s face also turns BLUE instead of the predefined GREY.
That s very fine for me, I would not change anything from this.

After building the APK, behaviors changes a bit.
running on the Device...
Butons face also turns Blue..but an Extra Added rectangle appears...wasting all the nice effects.

SO that square nevers shows on the IDE, only durring real APP use.

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Wed Mar 21, 2018 10:57 pm
by bogs
Well then, we're going to need to get someone in that plays with androids, cause that aint me at all :D

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Thu Mar 22, 2018 10:56 pm
by teriibi
oK, i ll share the stack here...
if any android users can test it...and see how "not to have" this square display that would be cool. :idea: :idea:
Tks for the return !
:P

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Fri Mar 23, 2018 8:28 pm
by jacque
The square shadow on Android would be an engine bug, so you'd need to enter a bug report about that.

The workaround would be to create icon images, one for the normal state and a second one for the pressed state, and use those images as button icons instead of the shadow property.

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Fri Mar 23, 2018 8:57 pm
by FourthWorld
Getting a good look with buttons is easy, but not with the "standard" style, which was designed for desktop use and on mobile defaults to Motif, a look no one past 1996 wants to look at (long story as to how Motif became built into the engine, but for another time). :)

The current mix of widget options are attractive but cumbersome, with one for iOS and one for Android. They will be combined soon, hopefully with other platforms as well, into one object that looks great as soon as you drop it on your card.

In the meantime, buttons are so flexible it's easy to set the style to rectangle or roundRect, turn off the threeD border for a modern flat look, choose an appropriate background and hilite color, and be done.

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Fri Mar 23, 2018 9:59 pm
by teriibi
Thanks for all that info, I m going to file a Bug - as for your info - 3D was already deactivated.
I just used 2 lines of code and dont get the same result as what the IDE shows, so something is not "working right" ! its wysinwyg :lol:

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Fri Mar 23, 2018 10:58 pm
by bogs
FourthWorld wrote:
Fri Mar 23, 2018 8:57 pm
...defaults to Motif, a look no one past 1996 wants to look at...
Ahem, I beg your pardon! (Granted, I am unusual in the usage case basket).

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Fri Mar 23, 2018 11:38 pm
by FourthWorld
teriibi wrote:
Fri Mar 23, 2018 9:59 pm
Thanks for all that info, I m going to file a Bug
Thanks. Please post the URL here so we can follow along.
as for your info - 3D was already deactivated.
The threeD is only one of the properties I mentioned. I still see a shadow there, so obviously something else is in play. I believe that something else is the style property. Looks like it's set to standard, but rectangle or roundRect will give you a flat, modern look.

EDIT: I just discovered a related thread that duplicates this discussion:
viewtopic.php?f=53&t=30777&p=165374#p165374

As I noted there, it seems you have the style set to something other than standard, so that much is good. I think what you're seeing is the focus border - turn off the showFocusBorder property and let us know if that goes away.

Going forward it would be helpful to post files and requests for additional help into an existing thread for that issue rather than creating a new one, so we don't need to post replied in multiple places and future readers will have a better chance of finding the thread with the more complete info.

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Fri Mar 23, 2018 11:41 pm
by FourthWorld
bogs wrote:
Fri Mar 23, 2018 10:58 pm
FourthWorld wrote:
Fri Mar 23, 2018 8:57 pm
...defaults to Motif, a look no one past 1996 wants to look at...
Ahem, I beg your pardon! (Granted, I am unusual in the usage case basket).
Well, truth be told I kinda like it too. But I wouldn't ship anything for anyone else to use with the Motif appearance active ('cept you, of course <g>).

In fact, I was on a kick a few years ago to reproduce the NeXT UI in LC. The Motif base is a great start; just add some dark gray, make some space-wasting vertical menu palettes, and in minutes you too can relive the wonder of the NeXT years. ;)

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Sat Mar 24, 2018 5:38 am
by bogs
Already (well, for years now) been reliving NeXT with gnuStep and afterStep (tend to prefer gnuStep though). Haven't you played with gorm at all? It is pure AWESOME.

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Sat Mar 24, 2018 6:29 am
by FourthWorld
I haven't played with Gorm, but I looked it up. Nice. The UI management is a lot like LC. What we need next is data binding.

I wish there was a higher-res version of this video:
https://www.youtube.com/watch?v=j02b8Fuz73A

Re: Using a nicer Button "Pressed" state (than the default square)

Posted: Sat Mar 24, 2018 10:43 am
by richmond62
If you're feeling "particularly kinky" you can download OPENstep here:

https://winworldpc.com/product/nextstep/4x

then try and find a functioning machine it will work on . . .

"This OS offered many unique things, in addition to the unique hardware it originally ran on."
[my bolding]

https://arstechnica.com/civis/viewtopic ... 6&t=472940

Mind you, how you'll manage to make LiveCode standalones that
will run on the thing is another question all together. 8)

I've been BAD for sometime now:
ILL.jpg