How to highlight rows in ListBox

View: New views
7 Messages — Rating Filter:   Alert me  

How to highlight rows in ListBox

by Alan Chan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am unable to highlight rows in selection based Listbox programmatically.
Obviously, HIGHLIGHT RECORDS([table];"highlight_set") won't work.

Any idea?

Alan Chan

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: How to highlight rows in ListBox

by Chip Scheide :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SELECT LISTBOX ROW ({*; }object; position{; action}

??


On Tue, 10 Nov 2009 06:06:11 +0800, Alan Chan wrote:

> I am unable to highlight rows in selection based Listbox programmatically.
> Obviously, HIGHLIGHT RECORDS([table];"highlight_set") won't work.
>
> Any idea?
>
> Alan Chan
>
> **********************************************************************
> Get the speed and power of 4D v11 SQL
> before upgrade prices increase - http://www.4d.com
>    
>
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4D.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> **********************************************************************
>
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Parent Message unknown Re: How to highlight rows in ListBox

by Keith Culotta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alan,

If "hi_set" is the Highlight Set name in the Listbox's properties then :
ADD TO SET([table];"hi_set") will cause the line of the selected  
record in the Listbox to be highlighted.

or COPY SET("MySet";"hi_set") will highlight those records contained  
in "MySet" that are displayed in the LIstbox.

Keith
Computer Dimensions, Inc.

On Nov 10, 2009, at 12:30 AM, 4d_tech-request@... wrote:

> I am unable to highlight rows in selection based Listbox  
> programmatically.
> Obviously, HIGHLIGHT RECORDS([table];"highlight_set") won't work.

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: How to highlight rows in ListBox

by Alan Chan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Keith,

Thanks for your tips. The record has always been in the highlight set that
set in property list. The set was created by being highlighted manually. I
checked the code and confirm the record is in the highlight set. So, Add
to Set and copy set "supposedly" won't help. So, i didn't try it.

Interestingly, I create another set based on the hightlight set, then copy
the newly created set back to highlight set, it works!

Alan Chan

4D iNug Technical <4d_tech@...> writes:

>Alan,
>
>If "hi_set" is the Highlight Set name in the Listbox's properties then :
>ADD TO SET([table];"hi_set") will cause the line of the selected  
>record in the Listbox to be highlighted.
>
>or COPY SET("MySet";"hi_set") will highlight those records contained  
>in "MySet" that are displayed in the LIstbox.
>
>Keith
>Computer Dimensions, Inc.
>
>On Nov 10, 2009, at 12:30 AM, 4d_tech-request@... wrote:
>
>> I am unable to highlight rows in selection based Listbox  
>> programmatically.
>> Obviously, HIGHLIGHT RECORDS([table];"highlight_set") won't work.
>
>**********************************************************************
>Get the speed and power of 4D v11 SQL
>before upgrade prices increase - http://www.4d.com
>  
>
>4D Internet Users Group (4D iNUG)
>FAQ:  http://lists.4d.com/faqnug.html
>Archive:  http://lists.4D.com/archives.html
>Options: https://lists.4d.com/mailman/options/4d_tech
>Unsub:  mailto:4D_Tech-Unsubscribe@...
>**********************************************************************


**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: How to highlight rows in ListBox

by Alan Chan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Select listbox Row only works for Array type LB.

Alan

4D iNug Technical <4d_tech@...> writes:

>SELECT LISTBOX ROW ({*; }object; position{; action}
>
>??
>
>
>On Tue, 10 Nov 2009 06:06:11 +0800, Alan Chan wrote:
>> I am unable to highlight rows in selection based Listbox
>programmatically.
>> Obviously, HIGHLIGHT RECORDS([table];"highlight_set") won't work.
>>
>> Any idea?
>>
>> Alan Chan
>>
>> **********************************************************************
>> Get the speed and power of 4D v11 SQL
>> before upgrade prices increase - http://www.4d.com
>>    
>>
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4D.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4D_Tech-Unsubscribe@...
>> **********************************************************************
>>
>**********************************************************************
>Get the speed and power of 4D v11 SQL
>before upgrade prices increase - http://www.4d.com
>  
>
>4D Internet Users Group (4D iNUG)
>FAQ:  http://lists.4d.com/faqnug.html
>Archive:  http://lists.4D.com/archives.html
>Options: https://lists.4d.com/mailman/options/4d_tech
>Unsub:  mailto:4D_Tech-Unsubscribe@...
>**********************************************************************


**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: How to highlight rows in ListBox

by Rudy Mortier, Two Way Communications bvba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For selection type listboxes, you have to manipulate the highlight  
set, which is defined in the properties for that listbox


Rudy Mortier
Two Way Communications bvba  -----------------

On 11-nov-09, at 14:13, Alan Chan wrote:

> Select listbox Row only works for Array type LB.
>
> Alan
>
> 4D iNug Technical <4d_tech@...> writes:
>> SELECT LISTBOX ROW ({*; }object; position{; action}
>>
>> ??
>>
>>
>> On Tue, 10 Nov 2009 06:06:11 +0800, Alan Chan wrote:
>>> I am unable to highlight rows in selection based Listbox
>> programmatically.
>>> Obviously, HIGHLIGHT RECORDS([table];"highlight_set") won't work.
>>>
>>> Any idea?
>>>
>>> Alan Chan
>>>
>>> **********************************************************************
>>> Get the speed and power of 4D v11 SQL
>>> before upgrade prices increase - http://www.4d.com
>>>
>>>
>>> 4D Internet Users Group (4D iNUG)
>>> FAQ:  http://lists.4d.com/faqnug.html
>>> Archive:  http://lists.4D.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4D_Tech-Unsubscribe@...
>>> **********************************************************************
>>>
>> **********************************************************************
>> Get the speed and power of 4D v11 SQL
>> before upgrade prices increase - http://www.4d.com
>>
>>
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4D.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4D_Tech-Unsubscribe@...
>> **********************************************************************
>
>
> **********************************************************************
> Get the speed and power of 4D v11 SQL
> before upgrade prices increase - http://www.4d.com
>
>
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4D.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> **********************************************************************

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: How to highlight rows in ListBox

by Alan Chan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's exactly what we did and failed until I copy set from highlight set
to a new set and move it back to the highlight set.

It's fun:-)

Alan

4D iNug Technical <4d_tech@...> writes:
>For selection type listboxes, you have to manipulate the highlight  
>set, which is defined in the properties for that listbox

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************