Visual selection on TListView component goes away when focus changes: C++ Builder

Discussion in 'C++' started by arun venkatesan, Apr 21, 2004.

  1. Hi,
    We use a TListView component in C++ Builder to enable the user make
    some selections. When the user makes a selection, the selected rows
    are highlighted in 'Blue'.

    Now, my application is such that the user can use the 'Tab' key to
    move to different components on his screen, after making the
    selection. When he does so, the 'Blue' color of the selected rows goes
    away and the user cannot see his selection in the TListView in 'Blue',
    because the TListView is not the object of focus.

    Question is: How to alow the user to see his selection on a component
    that is not currently focussed? (i.e.) How to retain the 'Blue' color
    on the user selections in the TListView?

    Thanx in advance

    -arun
    arun venkatesan, Apr 21, 2004
    #1
    1. Advertising

  2. arun venkatesan

    Sharad Kala Guest

    "arun venkatesan" <> wrote in message
    news:...
    > Hi,
    > We use a TListView component in C++ Builder to enable the user make
    > some selections. When the user makes a selection, the selected rows
    > are highlighted in 'Blue'.
    >
    > Now, my application is such that the user can use the 'Tab' key to
    > move to different components on his screen, after making the
    > selection. When he does so, the 'Blue' color of the selected rows goes
    > away and the user cannot see his selection in the TListView in 'Blue',
    > because the TListView is not the object of focus.
    >
    > Question is: How to alow the user to see his selection on a component
    > that is not currently focussed? (i.e.) How to retain the 'Blue' color
    > on the user selections in the TListView?


    Sorry, but the question is offtopic on this newsgroup.
    http://www.parashift.com/c -faq-lite/how-to-post.html#faq-5.9
    Sharad Kala, Apr 21, 2004
    #2
    1. Advertising

  3. "arun venkatesan" <> wrote in message
    news:...
    > Hi,
    > We use a TListView component in C++ Builder to enable the user make
    > some selections. When the user makes a selection, the selected rows
    > are highlighted in 'Blue'.
    >
    > Now, my application is such that the user can use the 'Tab' key to
    > move to different components on his screen, after making the
    > selection. When he does so, the 'Blue' color of the selected rows goes
    > away and the user cannot see his selection in the TListView in 'Blue',
    > because the TListView is not the object of focus.
    >
    > Question is: How to alow the user to see his selection on a component
    > that is not currently focussed? (i.e.) How to retain the 'Blue' color
    > on the user selections in the TListView?


    Ask this question on one (or more) of the newsgroups with VCL in the name
    on the news://newsgroups.borland.com newsserver.

    TListView or any other VCL class is not a part of standard C++, hence your
    question is not topical here.

    --
    Peter van Merkerk
    peter.van.merkerk(at)dse.nl
    Peter van Merkerk, Apr 21, 2004
    #3
  4. arun venkatesan

    velthuijsen Guest

    > We use a TListView component in C++ Builder to enable the user make
    > some selections. When the user makes a selection, the selected rows
    > are highlighted in 'Blue'.
    >
    > Now, my application is such that the user can use the 'Tab' key to
    > move to different components on his screen, after making the
    > selection. When he does so, the 'Blue' color of the selected rows goes
    > away and the user cannot see his selection in the TListView in 'Blue',
    > because the TListView is not the object of focus.
    >
    > Question is: How to alow the user to see his selection on a component
    > that is not currently focussed? (i.e.) How to retain the 'Blue' color
    > on the user selections in the TListView?
    >
    > Thanx in advance



    Use the OnExit event to write a function that keeps the listitems that
    are selected blue.
    velthuijsen, Apr 21, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tina

    VS.NET Just Goes Away

    Tina, Jun 17, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    370
    Kevin Spencer
    Jun 20, 2005
  2. Steve.
    Replies:
    2
    Views:
    397
    Tony Morris
    Feb 4, 2004
  3. alex23

    string goes away

    alex23, Apr 1, 2005, in forum: Python
    Replies:
    8
    Views:
    297
    Duncan Booth
    Apr 4, 2005
  4. Andreas Beyer

    Re: string goes away

    Andreas Beyer, Apr 1, 2005, in forum: Python
    Replies:
    3
    Views:
    263
    John J. Lee
    Apr 4, 2005
  5. Michael Chermside

    string goes away

    Michael Chermside, Apr 1, 2005, in forum: Python
    Replies:
    0
    Views:
    247
    Michael Chermside
    Apr 1, 2005
Loading...

Share This Page