SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to check mark beside item in list box

    Hi,
    This could be very primitive question. I have two listboxes A and B along with Two Push Buttons Add & Remove.
    I donot have any problem with identifying contents in list box and list box components.

    Once I select an item in list box A and add it to the list box B, a check mark will be appeared beside the item in List Box A. I couldn't figure out the way to verify the existense of checkmark.

    Thanks for the help,
    Murali


    [This message has been edited by aspmurali (edited 10-02-2002).]
    _ _ ___________ _ _
    Murali K Parepalli

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by aspmurali:

    Once I select an item in list box A and add it to the list box B, a check mark will be appeared beside the item in List Box A. I couldn't figure out the way to verify the existense of checkmark.
    <HR></BLOCKQUOTE>

    Try a ListPrint of a ListBoxA.GetContents() to see if the check marks shows up.

    Try Record/Tag to see if Silk can see the checkmark.


    John



    ------------------

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    Also try out this bCheckState = ListBoxA.Item1.IsChecked ()
    True = checked, False = UnChecked.

    Let us know.

    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    Without knowing more about your app, it is difficult to know if this will work for you, but I had a similar situation in the past where the checkmark showed up as a declared object in my include file. With that, the Exists() method became a valid means of looking for it.



    ------------------

  5. #5
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    If it's actually a ListView and not a ListBox, you can try GetItemImageState()

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  6. #6
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    Hi Friends,
    First of all this is List Box only.
    I couldn't use the IsChecked() as it is expecting a window such as menu/checkbox.
    I checked the ListPrint and GetItemText and check marks were not appeared.
    there is no change in window declaration after check mark appeared. So I am unlucky in that. Anymore suggestions.

    Following is the window declaration:
    [-] DialogBox QuickEntrySheets
    [-] multitag "QuickEntry Sheets"
    [ ] "$0"
    [+] ListBox AvailableQuickEntrySheets
    [+] multitag "Available QuickEntry Sheets:"
    [ ] "^Available QuickEntry Sheets:"
    [ ] "#1"
    [ ] "$23597"
    [+] PushButton Add
    [+] multitag "Add -&gt;"
    [ ] "#1"
    [ ] "$23595"
    [+] PushButton Remove
    [+] multitag "&lt;- Remove"
    [ ] "#2"
    [ ] "$23596"
    [+] ListBox SelectedQuickEntrySheets
    [+] multitag "Selected QuickEntry Sheets:"
    [ ] "^Selected QuickEntry Sheets:"
    [ ] "#2"
    [ ] "$23598"


    Thank you for the help,
    Murali
    Intuit


    [This message has been edited by aspmurali (edited 10-03-2002).]
    _ _ ___________ _ _
    Murali K Parepalli

  7. #7
    Senior Member
    Join Date
    Dec 1999
    Location
    Sarasota FL USA
    Posts
    109
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    Try to get the ImageIndex. This should return the ID of the image that is being used. We had a control in our app that used different images for the checked and un-checked boxes.

    ------------------

  8. #8
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to check mark beside item in list box

    Sorry to restate this but did you try out the GetContents method. What did it return ?

    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:49 PM.

Copyright BetaSoft Inc.