Adding Script to a Navigation Bar Icons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Adding Script to a Navigation Bar Icons
Hi ppl,
just dropped a Navigation bar to the top of my stack,
I'm guessing there is some way to add a script to each Icon, just as with we do with buttons, right ?
So, how does one point a specific script to each Icon ?
tks !
good weekend !
just dropped a Navigation bar to the top of my stack,
I'm guessing there is some way to add a script to each Icon, just as with we do with buttons, right ?
So, how does one point a specific script to each Icon ?
tks !
good weekend !
- Attachments
-
- icon menu bar.png (1.9 KiB) Viewed 5581 times
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Adding Script to a Navigation Bar Icons
hi,
You. may get the clicked icon by hiliteChanged message
Best regards
Jean-Marc
You. may get the clicked icon by hiliteChanged message
Code: Select all
on hiliteChanged
put the hilitedItem of me && the hilitedItemName of me
end hiliteChanged
Jean-Marc
https://alternatic.ch
Re: Adding Script to a Navigation Bar Icons
Thanks a lot Jean Marc..I will try that asap !
Have a nice weekend !
Have a nice weekend !
Re: Adding Script to a Navigation Bar Icons
@Jean Marc,
I had created card number 2 before I set the navigation bar as a default background :
Would you know if one can add the nav bar to an already created card...or only on tobe next cards... ?
I had created card number 2 before I set the navigation bar as a default background :
Would you know if one can add the nav bar to an already created card...or only on tobe next cards... ?
Re: Adding Script to a Navigation Bar Icons
If possible.
On the LC toolbar, select:
Object> Place Group> The name of your group
On the LC toolbar, select:
Object> Place Group> The name of your group
Re: Adding Script to a Navigation Bar Icons
*Correcting :
finally, the Nav Bar did not hold onto other Cards... it started disappearing then would not "stick" anymore...
So I guess one has to set it as a default bkg - BEFORE - creating any cards !
finally, the Nav Bar did not hold onto other Cards... it started disappearing then would not "stick" anymore...
So I guess one has to set it as a default bkg - BEFORE - creating any cards !
Re: Adding Script to a Navigation Bar Icons
Would I be creating a BIG MESS if I then copy the Nav Bar from Page 1 to the top of all other cardes of my App ???
Or should I recreate all pages AFTER setting it as a default bckgrd ?
thanks
(Script is included in the NavBar)
Or should I recreate all pages AFTER setting it as a default bckgrd ?
thanks
(Script is included in the NavBar)
Re: Adding Script to a Navigation Bar Icons
***filling up a bugs repport, navbar keeps disapearing on every new page..after working for few minutes..***
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Adding Script to a Navigation Bar Icons
I am not going to repeat what I have already stated several times.
- Attachments
-
- Compass.livecode.zip
- Here's the stack.
- (25.98 KiB) Downloaded 134 times
Re: Adding Script to a Navigation Bar Icons
Getting closer...but still loosing some Icons along the way...
Maybe still in need of a Covid 2nd shot
Maybe still in need of a Covid 2nd shot
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Adding Script to a Navigation Bar Icons
Odd, that.
- Attachments
-
- ICONZ.zip
- Navigator icons
- (20 KiB) Downloaded 137 times
Re: Adding Script to a Navigation Bar Icons
Could not be doing. It works well for me and it doesn't go away.
- Attachments
-
- Compass.rar
- (25.4 KiB) Downloaded 143 times