| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue May 10, 2011 9:39 pm Post subject: Highlight Multi items in a table |
|
|
Is there a way that I can highlight multiple items in a table with the MULTI style setting? _________________ Chris
Http://theblindhouse.com
Last edited by LiquidCode on Wed May 11, 2011 2:02 am; edited 2 times in total |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed May 11, 2011 1:18 am Post subject: |
|
|
Do you mean programmically?
ctrl+click or shift+click works
Note: If you are using the Dialog Designer to set the Style, skip the first one because it's actually the tool tip. This is a bug. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed May 11, 2011 1:23 am Post subject: |
|
|
Yes, I meant programmically. Maybe with API or something? _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed May 11, 2011 1:43 am Post subject: |
|
|
I found the API code to do it.
[EDIT] Nope, doesn't work  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Wed May 11, 2011 3:18 am Post subject: |
|
|
This might look familiar....
| Code: | %%match = @match(table1,nodnarb50)
%%index = @index(table1)
list seek,table1,%%index
%%WM_SETREDRAW = @sendmsg(@winexists(~table1),$B,0,0)
list seek,table1,0
%%count = -1
dialog focus,table1
repeat
%%count = @succ(%%count)
window send,@winexists(~table1),@shift(@key(down))
until @equal(%%count,%%index)
%%WM_SETREDRAW = @sendmsg(@winexists(~table1),$B,1,0) |
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed May 11, 2011 4:07 am Post subject: |
|
|
LOL. Yeah it kind of does. Not sure where.....oh yeah! Thanks my brain wasn't adding 2+2 just (32^6)/145,364...a little busy.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Wed May 11, 2011 4:26 am Post subject: |
|
|
| You're a busy dude lately, let me know if you need to hire some help LoL (actually I teach a class for the next three days, so I was bored, but as of tomorrow I'm good until end of school year coming very soon) |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed May 11, 2011 1:42 pm Post subject: |
|
|
This will not work for me. I need to be able to select items that are not in consecutive order. I want to highlight files in Save-It that have been updated and remove the green icon. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Wed May 11, 2011 5:53 pm Post subject: |
|
|
Your right, that won't work.
Enusure visible call won't work either for the first few top items...
If you can use an API call to standardize the Table height like you can with a list (for screen scaling) then you can get precise screenmetrics and use mouseclicks, although I'm not sure if this is the best way.
Hmmm...(*chomp* *chomp* on lunch)
CTRL + @Match doesn't work...
CTRL + Seek 0 doesn't match
ALSO on seek table elements don't behave quite right. Although all pointers point to seeked item the click index remains at the previous point.
I don't think this is possible with this element (outside of mouseclicks + screenmetrics). (I could be wrong now, but I don't think so). |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Wed May 11, 2011 6:02 pm Post subject: |
|
|
You could add a column and sort by updated then select?
(sucks)
HEY! Hang on, if you resort after such a selection by file names would the items remain selected? I don't know....and my lunch is over. I'll test tonight. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed May 11, 2011 7:29 pm Post subject: |
|
|
No that doesn't work either. I'll have to try and come up with another idea for showing the last updated. I don't care for changing the icon except on files that don't exist in the original location. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu May 12, 2011 12:06 pm Post subject: |
|
|
| Quote: | | I need to be able to select items that are not in consecutive order. I want to highlight files in Save-It that have been updated and remove the green icon. |
I'm curious why you need to highlight the items just to remove the green check box.
What is the process you are trying to use? |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu May 12, 2011 1:16 pm Post subject: |
|
|
I don't need to highlight them to remove the check box. I don't want to use the check box at all, just highlight them when they have been updated. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu May 12, 2011 11:52 pm Post subject: |
|
|
I'm not sure how to programmically do that without some research.
I actually like the check box Just wish it was in a different column or used as a state image and only used when the file is newer than the last snapshot. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Fri May 13, 2011 12:12 am Post subject: |
|
|
I have tried to do that, but it wasn't working right. I may have been doing something wrong, but all the rows were getting the check box in when I tried that. I may look into it a little more later. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|