buttons don't hilite when clicked on mac

i notice that when clicking in a button on a servoy
form (at run time, not design time) the buttons
do not hilight in any way. until the script actually
does something (showing another form, etc.), it
looks to the user as though nothing is happening.

i notice that the same solution running under windows
work fine: the buttons look hilited when the mouse
is down in the button.

will this be fixed?

look really someting of the Look And Feel of the mac.. We can’t do much about that.. Please report this also to Apple

jcompagner:
look really someting of the Look And Feel of the mac.. We can’t do much about that.. Please report this also to Apple

i’m not sure i agree; buttons on the mac don’t look at all
like buttons in servoy. unless i’m doing something wrong?
is there a way to change the way buttons look?

RobertMeyer:
i’m not sure i agree; buttons on the mac don’t look at all
like buttons in servoy. unless i’m doing something wrong?
is there a way to change the way buttons look?

I think Johan means “Apple Java Look and Feel”. But you can easily place images with aqua buttons inside your buttons, reproducing any kind of OSX icon, if you want.

Riccardino:
But you can easily place images with aqua buttons inside your buttons, reproducing any kind of OSX icon, if you want.

that’s an interesting approach, but it seems like an unnecessary
step. shouldn’t the buttons just take on the look of the host OS
on their own?

Sure, but like Johan stated this is something of the LAF (look and feel) that we have on OS X. Nothing Servoy can do anything with or about (as for as I know).

but the strange part is, radio buttons, checkboxes, popups
(aka “combos”), all look perfect in servoy; just like they
look in a standard mac application.

it’s only the push buttons that are different. for a mac
user, this stands out as looking (and behaving) very
different.

Do you mean that your pushbutton looks like a bevelbutton?

If that’s your issue, this can be solved very easily. Stretch the button to 26 or 27 pixels high and you have your standard pushbutton…

IT2BE:
Do you mean that your pushbutton looks like a bevelbutton?

If that’s your issue, this can be solved very easily. Stretch the button to 26 or 27 pixels high and you have your standard pushbutton…

that IS the issue i’m talking about, but your suggestion doesn’t
make it look like a standard (mac) pushbutton.

just to make sure we’re talking about the same thing:
i’m in designer mode, and i
select ‘place button’ from the elements window (or use
the toolbar button).
it drops a button on the form with the title ‘button’.
this looks nothing like a mac pushbutton.
stretching this button does nothing other than make
it larger. it doesn’t change it’s appearance at all.

am i missing something??

using: rc10 b269
java: 1.4.1_01-27

Not sure if you miss something but have a look at mij screenprint. Goes from 22 up to 27 pixels high…

I don’t use any laf or any style. Maybe that’s the issue…

IT2BE:
Not sure if you miss something but have a look at mij screenprint. Goes from 22 up to 27 pixels high…

I don’t use any laf or any style. Maybe that’s the issue…

oh, now i see the screen print. it wasn’t there a minute ago!

i see you’ve made several different buttons in your screenprint.
and you do this just by changing the size of the button??
i can’t seem to make this work…

you’re on a mac also, right?

how do you tell servoy to use no laf?

thank you!
rm.

Robert, like I described I did nothing else but make the button 1 pixel higher per button from left to right…

Please take out your style (if any in properties) to see if it helps and use the standard os x laf (preferences).

If this doesn’t help I am clueless since this works for me from day 1…

thank you for all your help, Marcel. i’ll try this when
i get back to my office later today.

rm.

IT2BE:
Please take out your style (if any in properties) to see if it helps

ah! i didn’t quite know what you mean by “take out your style”
at first, then i selected just the form, looked at it’s properties,
and it’s style was set to “servoy”. i changed this to none, and
now when i create a new button it looks correct.

thank you so much for your help.

also…

clicking on the ‘border’ property for the button, and changing
it from ‘bevel’ to ‘default’ solves the problem too…

now i see how it works, but it’s very strange…

it appears that using different heights will actually create
a different style of button. i’m attaching a screen capture
of some buttons i made; the number to the left is the
height of the button. you’ll notice that moving from a
height of 22 to 23 actually produces a smaller button!

servoy: is this intentional?

I think this is Java but hey, isn’t it nice to have so many possible variants instead of just that boring bevel :D

IT2BE:
I think this is Java but hey, isn’t it nice to have so many possible variants instead of just that boring bevel :D

well, yes, but…it would be far nicer to have a property
or setting of some sort in the design area to do this.
i waisted quite a bit of time trying to figure out how to
make the buttons look the way the client wants them.

couldn’t have done it without your help Marcel!
thank you again.

rm.

there is no property for that. it is just wat apple does in there lnf..

jcompagner:
there is no property for that. it is just wat apple does in there lnf..

i see. i don’t always know where servoy ends and
apple’s java begins. sorry for the mixup.