Page 1 of 1

Adding Script to a Navigation Bar Icons

Posted: Sat Mar 20, 2021 7:31 am
by liveme
:idea: 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 !
Image

Re: Adding Script to a Navigation Bar Icons

Posted: Sat Mar 20, 2021 10:17 am
by jmburnod
hi,
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
Best regards
Jean-Marc

Re: Adding Script to a Navigation Bar Icons

Posted: Sat Mar 20, 2021 6:58 pm
by liveme
Thanks a lot Jean Marc..I will try that asap !
Have a nice weekend !

Re: Adding Script to a Navigation Bar Icons

Posted: Mon Mar 22, 2021 11:08 am
by liveme
@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... ?
8)

Re: Adding Script to a Navigation Bar Icons

Posted: Mon Mar 22, 2021 1:32 pm
by andresdt
If possible.
On the LC toolbar, select:
Object> Place Group> The name of your group

Re: Adding Script to a Navigation Bar Icons

Posted: Mon Mar 22, 2021 7:11 pm
by liveme
*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 ! :oops:
:shock: :shock:

Re: Adding Script to a Navigation Bar Icons

Posted: Tue Mar 23, 2021 3:45 am
by liveme
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 ???
:shock:

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

Posted: Tue Mar 23, 2021 5:54 am
by liveme
***filling up a bugs repport, navbar keeps disapearing on every new page..after working for few minutes..***

Re: Adding Script to a Navigation Bar Icons

Posted: Tue Mar 23, 2021 9:08 am
by richmond62
SShot 2021-03-23 at 10.05.24.png
-
roll-ups.jpeg
roll-ups.jpeg (6.75 KiB) Viewed 5422 times
-
I am not going to repeat what I have already stated several times. 8)

Re: Adding Script to a Navigation Bar Icons

Posted: Tue Mar 23, 2021 10:02 am
by liveme
Getting closer...but still loosing some Icons along the way... :mrgreen:
Maybe still in need of a Covid 2nd shot 8)

Image

Re: Adding Script to a Navigation Bar Icons

Posted: Tue Mar 23, 2021 10:41 am
by richmond62
Odd, that.

Re: Adding Script to a Navigation Bar Icons

Posted: Tue Mar 23, 2021 12:30 pm
by andresdt
Could not be doing. It works well for me and it doesn't go away.