I have changed my version to leave the selected it default to 1. This will not change the original behavior but allow you to set it to 0 by script or in the PI. Of course one can set it to zero in a preopencard handler so it initially displays with no item selected. I added a property call iconFill that is defaulted to off so the widget will still retain the original behavior. If this property is set to true by script or ticked in the PI then the icon will fill the height of the widget if the label is set to empty. So...
1) The hiliteditem can be set to zero so no item is highlighted 2) The default hiliteditem has not been changed. 3) The PI allows you to decrement the select item index to zero. 4) If the label of an item is empty and the iconFill property is set to true then the icon is centered vertically and fills the height the same as when "icon only" is selected. New version is available for evaluation at: Source: https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0 Compiled: https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Tuesday, April 07, 2020 1:44 PM To: How to use LiveCode Cc: Brian Milby Subject: RE: HilitedItem of a navbar The PR is now merged into develop and will be in the next DP. It only adds the option of selecting nothing but does not make it the default. We could now work up a PR for the other piece, but I’m not sure about how that one works without downloading and testing (sounds like an option to hide the label on some of the items and shift the icon down). Thanks, Brian On Apr 5, 2020, 9:41 AM -0400, Ralph DiMola via use-livecode <use-livecode@lists.runrev.com>, wrote: > Matts, > No problem brother. I shared this with the list on January 10th. I was warned > that changing default behaviors is a Bozo no no. Here it is again: > > I made 4 changes to the navbar widget. > > 1) The hiliteditem can be set to zero so no item is hilited > 2) The default is no item hilited (hiliteditem = 0) > 3) The inspector allows you to decrement the select item index to zero. > 4) If the label of an item is a single space then the icon is centered > vertically. I will see how to add this feature more elegantly as a property. > > If you need any of these features the link to the lcb source file is > here ==> https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0 > The compiled version is here ==> > https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 rename the original > files in the bundle(mac) or program files(windows) to a save folder and move > these in. > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > Behalf Of Matthias Rebbe via use-livecode > Sent: Sunday, April 05, 2020 4:56 AM > To: How to use LiveCode > Cc: Matthias Rebbe > Subject: Re: HilitedItem of a navbar > > Hi Ralph, > > Iteould be really great, if you could share it not only with Jacque. > ;) > > I am also very interested in your version. > > Matthias > > Von meinem iPhone gesendet > > > Am 05.04.2020 um 00:08 schrieb Ralph DiMola via use-livecode > > <use-livecode@lists.runrev.com>: > > > > I have a version that will let you set it to zero and also if the > > label is a single space the icon will expand to the full height. I > > can send it to you is you like. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdim...@evergreeninfo.net > > > > > > -----Original Message----- > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > > Behalf Of J. Landman Gay via use-livecode > > Sent: Saturday, April 04, 2020 3:31 PM > > To: LiveCode Mailing List > > Cc: J. Landman Gay > > Subject: HilitedItem of a navbar > > > > I can't set this to 0? I need to. > > > > > > -- > > Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive > > Software | http://www.hyperactivesw.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription > > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode