Source language: Translate to:

List Box Highlight Item in different Colour

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

List Box Highlight Item in different Colour

Postby PaulTomo » Wed Nov 13, 2013 3:27 am

HI All,

I am creating a pub that I need to list events to the user that are due within the next month.

This is not the issue, I create a List Box, add the items that are due and the user can select and go direct to the event.

Image


What I would like to do is add a different colour for items in the List Box that have greater urgency, say 7 days!

Ideally this is how I would like to show this to the user but in the same List Box.

Image


I can achieve this by using other methods but If it's possible to do with the List Box, it makes it very easy to produce the list and also for the user to scroll through, select and go direct to the highlighted event, as well as all the others too.

Does anyone have any tips on how to achieve this or if it's just not possible any other suggestions would be appreciated.

Many thanks in advance as always,

Paul
User avatar
PaulTomo
 
Posts: 62
Joined: Tue Apr 28, 2009 1:15 am
Location: UK

Re: List Box Highlight Item in different Colour

Postby Neosoft Support » Wed Nov 13, 2013 11:36 am

There isn't any way to do that with a listbox, but here are some suggestions:

1. Put the items into the listbox in order of importance with the most urgent items at the top.

2. If the number of items is limited, you could use push buttons to display them instead. You can use variables or the SetObjectCaption action to set the button text. You could then use the SetObjectFont or SetObjectFill to highlight items that are important.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: List Box Highlight Item in different Colour

Postby Danito » Wed Nov 13, 2013 11:50 am

Puedes probar con un objeto navegador...

Google translate:

You can try a web object .. I hope you serve the following example:

http://dhost.info/danito/ips/tarea.pub
User avatar
Danito
 
Posts: 51
Joined: Thu Mar 11, 2010 7:07 pm

Re: List Box Highlight Item in different Colour

Postby PaulTomo » Thu Nov 14, 2013 12:41 pm

Many Thanks for the suggestions.

I quite like the web object idea and will probably give that a try.

Paul
User avatar
PaulTomo
 
Posts: 62
Joined: Tue Apr 28, 2009 1:15 am
Location: UK


Return to NeoBook Action Commands

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest