SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Junior Member
    Join Date
    Jul 2001
    Location
    milford, Ma, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ListView that contain checkboxes

    For the ListView control there doesn't seem to be a method that allows you to 'ischecked' like the listbox control has. Our app has a listview with a checkbox and we want to check if its checked or not.

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

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Location
    milford, Ma, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    Any responses to this. It seems that if you are allowed to add checkboxes to listview/listboxes to your gui, then why does Silktest offer a method to handle these checkboxes?

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

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    Did you ever find a solution? I am experiencing the same problems.



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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    Sorry...I must've missed this post earlier.

    You can find a solution for these issues at the bottom of <a href=http://www.ameliortech.com/stuff/toolkits/ST/st_object.htm>this page</a>.

    I hope this helps.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  5. #5
    Junior Member
    Join Date
    Jul 2001
    Location
    milford, Ma, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    dcreed,

    Thanks, tried the CheckListView class and it works great!!!!!

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

  6. #6
    Member
    Join Date
    Mar 2002
    Location
    El Segundo, CA, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    I tried the download but I couldn't get it to work. I'm using 5.5 SP2. I put the .ino file into the same directory as my .inc and .t files and put the use statement to say use "CheckListView.inc" (as noted in the readme). When I try to compile it says that the .inc doesn't exist.

    Could someone send me a sample of the their code or any other help. Thanks.



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

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    El Segundo, CA, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    The error message I get during the compile is

    c:\program files\silktest\migration\doculib2x.inc(1): Unable to open CheckListView.inc -- File Not Found

    Do I need to get some compiler options

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

  8. #8
    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: ListView that contain checkboxes

    I always use the GetItemImageIndex method to verify if a listview item's checkbox is checked or not. 5.5 SP2 comes with a SetItemImageIndex() to set the state of the checkbox's.

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


    [This message has been edited by TonyM (edited 04-12-2002).]
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  9. #9
    Member
    Join Date
    Mar 2002
    Location
    El Segundo, CA, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ListView that contain checkboxes

    I looked for setitemimagestate in my 5.5 SP2 and it doesn't exist. The other question is ... can you give me an example of the following.

    I have a listview where the 1st column is text and the 2nd, 3rd, and 4th columns are checkboxes. I need to be able to select a specific row and then change the state of each of the checkboxes. Any examples / help would be appreciated.

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

  10. #10
    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: ListView that contain checkboxes

    My mistake. I thought that I had read that in the release notes. I guess it was the GetItemImageState that I saw. I don't know what the difference is between the GetItemImageIndex and GetItemImageState is.

    I usually select the ListView item and then press the spacebar to toggle the checkbox but that probably wouldn't work for you since you have multiple checkbox's. I would try the following:

    RECT rCheckBox = Dialog.ListView.GetItemRect(ItemName,True,ColNum);
    Dialog.ListView.Click(1,rCheckBox.xPos,rCheckBox.y Pos);

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

 

 
Page 1 of 2 12 LastLast

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 04:06 AM.

Copyright BetaSoft Inc.