Tab Panel goes rastafari
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Tab Panel goes rastafari
Hi,
I have a tab panel I use for one of the things tab panels are supposed to be used (showing and hiding different sets of buttons and fields) So far so good. My problem is that whenever I push a cascade menu buttom that's placed inside that panel, my tab panels turns dark blue, and it never returns to its former colour. This happens after the menuPick function in the cascade menu button has been executed, but nothing inside this function or any other function refers to any action upon the tab panel. Besides, I can't change the colour of the panel (this due only to my ignorance, I know) since it doesn't seem to depend upon any of the parameters I can adjust from the graphic effects, blending or colours and patterns tabs in the object inspector. Any idea of what can be happening?
thanks,
Daniel
I have a tab panel I use for one of the things tab panels are supposed to be used (showing and hiding different sets of buttons and fields) So far so good. My problem is that whenever I push a cascade menu buttom that's placed inside that panel, my tab panels turns dark blue, and it never returns to its former colour. This happens after the menuPick function in the cascade menu button has been executed, but nothing inside this function or any other function refers to any action upon the tab panel. Besides, I can't change the colour of the panel (this due only to my ignorance, I know) since it doesn't seem to depend upon any of the parameters I can adjust from the graphic effects, blending or colours and patterns tabs in the object inspector. Any idea of what can be happening?
thanks,
Daniel
Re: Tab Panel goes rastafari
Hi Daniel,
Please report the version of LC you are using, your operating system + version, and any relevant scripts.
Kind regards,
Mark
Please report the version of LC you are using, your operating system + version, and any relevant scripts.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Tab Panel goes rastafari
Sure: I'm using LC 5.5.1 on a 2Gz Intel core i7 iMac OSX 10.7.5. I am attaching a tiny video for you to see the problem. The script that's executing at the time of the surprising colour change is very simple
on menuPick clas
get "i"&line 3 of cd fld "tipoActual"
set itemdelimiter to "|"
put last item of clas into clas
set itemdelimiter to "|"
put "Semantica 21" into ncampo
repeat with x = 1 to 21
if hilite of btn ("SemanticaLema"&x) = false
then
put ("Semantica "&x) into nCampo
exit repeat
end if
end repeat
if clas <> ""
then
put fld "clavesSemantica" into clavesSemantica
MarcaSufijos clas,ncampo,the shiftkey = "down",esNeg
end if
set hilite of cd btn ncampo to false
end menuPick
on menuPick clas
get "i"&line 3 of cd fld "tipoActual"
set itemdelimiter to "|"
put last item of clas into clas
set itemdelimiter to "|"
put "Semantica 21" into ncampo
repeat with x = 1 to 21
if hilite of btn ("SemanticaLema"&x) = false
then
put ("Semantica "&x) into nCampo
exit repeat
end if
end repeat
if clas <> ""
then
put fld "clavesSemantica" into clavesSemantica
MarcaSufijos clas,ncampo,the shiftkey = "down",esNeg
end if
set hilite of cd btn ncampo to false
end menuPick
Re: Tab Panel goes rastafari
Daniel,
Currently, I'm using 10.6.8 with LC 6.0.1. I don't see the problem you describe when I test your script. Perhaps someone else can confirm what you see. Are you sure that you posted all relevant information? What happens if you try this in an otherwise empty stack?
Kind regards,
Mark
Currently, I'm using 10.6.8 with LC 6.0.1. I don't see the problem you describe when I test your script. Perhaps someone else can confirm what you see. Are you sure that you posted all relevant information? What happens if you try this in an otherwise empty stack?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Tab Panel goes rastafari
If I place the same cascade button on a empty card (and change the script to point the script to the fields in the original card) what happens is that it is the cascade button that turns blue!
Re: Tab Panel goes rastafari
Hi Daniel,
sounds like that "cascade" button is auto hiliting, and the default color is this dark blue.
You can try to: set the autoarm of btn "your cascade button here" to FALSE
in the message box, since this property cannot be set via the Inspector!
But just guessing...
Best
Klaus
sounds like that "cascade" button is auto hiliting, and the default color is this dark blue.
You can try to: set the autoarm of btn "your cascade button here" to FALSE
in the message box, since this property cannot be set via the Inspector!
But just guessing...

Best
Klaus
Re: Tab Panel goes rastafari
Looks like we have a bingo right over there.
OK, If i set the autoarm if my cascade button to false, then it doesn't turn blue out of the apparent blue.
AND, if I set the hilitefill if my tab panel to false, then this problem is solved. Thanks!
What I still don't understand is why the tab panel was hilited when I pushed the cascade button.
OK, If i set the autoarm if my cascade button to false, then it doesn't turn blue out of the apparent blue.
AND, if I set the hilitefill if my tab panel to false, then this problem is solved. Thanks!

What I still don't understand is why the tab panel was hilited when I pushed the cascade button.
Re: Tab Panel goes rastafari
Hi Klaus,
I think you mean the autoHilite. The autoArm would open the menu automatically when the mouse hovers over it.
Kind regards,
Mark
I think you mean the autoHilite. The autoArm would open the menu automatically when the mouse hovers over it.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Tab Panel goes rastafari
Hi Mark,
no, I really meant autoarm***, and this obviously solved his problem
*** The autohilite of "cascade" buttons IS in fact false by default!
Best
Klaus
no, I really meant autoarm***, and this obviously solved his problem

*** The autohilite of "cascade" buttons IS in fact false by default!
Best
Klaus
Re: Tab Panel goes rastafari
Hi Klaus,
Apparently, I wrote my reply simultaneously with Daniel. I very much wonder how the autoArm of a new cascade button is set to true without the user interacting in it and why Daniel didn't complain about the menu opening spontaneously
but it is nice that you solved it.
Best,
Mark
Apparently, I wrote my reply simultaneously with Daniel. I very much wonder how the autoArm of a new cascade button is set to true without the user interacting in it and why Daniel didn't complain about the menu opening spontaneously

Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode