| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Oct 28, 2004 10:11 pm Post subject: Remove Highlight trick don't work on v5.02 - any new ideas? |
|
|
Remove Highlight trick don't work on v5.02
The below does'nt work on v5.02:
| Code: | http://forum.vdsworld.com/viewtopic.php?t=1089&highlight=list+highlight
:ClearSelBUTTON
%F = @SENDMSG(@WIN(~List1),$0186,-1,0) |
Please help me find a way to edit above to work again or a good work around... Thank you |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Oct 29, 2004 12:11 pm Post subject: |
|
|
i would like to know that too
serge _________________
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Oct 29, 2004 10:42 pm Post subject: |
|
|
althought that should work, you might try:
| Code: |
%F = @SENDMSG(@WIN(~List1),$0185,0,-1)
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Oct 30, 2004 12:16 am Post subject: |
|
|
You could also try...
| Code: |
%%WM_SETFOCUS = 7
%z = @sendmsg(@win(~List1), %%WM_SETFOCUS, 0, 0)
|
This should take the focus from the control.
As far as that goes, you could also...
| Code: |
dialog setFocus,<someother control>
|
My thoughts...
Happy coding... _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sat Oct 30, 2004 12:20 am Post subject: |
|
|
Removing input focus doesn't remove an item's selection.  _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Nov 04, 2004 1:28 pm Post subject: |
|
|
i found the following to work
| Quote: | | %%dummy = @sendmsg(@win(~table1),$0203,0,0) |
Serge |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Nov 04, 2004 1:32 pm Post subject: |
|
|
sorry snarlingsheep and bweckel, your suggestions did not work (with tables under windows 98se)
my suggestion above works for tables under xp and windows 98se
serge |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Nov 04, 2004 10:39 pm Post subject: |
|
|
| Serge wrote: | sorry snarlingsheep and bweckel, your suggestions did not work (with tables under windows 98se)
my suggestion above works for tables under xp and windows 98se
serge |
We didn't say it'd work for Tables..they aren't Lists
Tables are ListViews. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Nov 05, 2004 9:24 am Post subject: |
|
|
fair enough snarlingsheep, for some reason i always think they are the same (only different in appearance)
my mistake
serge |
|
| Back to top |
|
 |
ripburn Newbie

Joined: 23 Dec 2004 Posts: 22
|
Posted: Thu Jan 13, 2005 6:28 am Post subject: |
|
|
Is there a way to not just turn off the highlight but to disable it?
I need to loop doing some searching using the contents of a list as the search string. This causes the highlight to flash wildly as the various loops causes each item in the string to be "selected" a number of times.
Even if I turn off the highlight prior to starting the search it returns as soon as the first string in the list is used in the seach.
I want to be able to disable the highlight, run the search, then enable the highlight again.
Any ideas?
Edit: I know I could copy the list contents to another list that is never displayed and use it for the search but I was hoping not to have to. _________________ RipBurn |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Jan 13, 2005 10:51 am Post subject: |
|
|
| ripburn wrote: | | Edit: I know I could copy the list contents to another list that is never displayed and use it for the search but I was hoping not to have to. |
That's the way I always do it. Apart from anything else, an internal string list is accessed more efficiently than the contents of a dialog element. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
ripburn Newbie

Joined: 23 Dec 2004 Posts: 22
|
Posted: Thu Jan 13, 2005 11:10 am Post subject: |
|
|
| jules wrote: | | ripburn wrote: | | Edit: I know I could copy the list contents to another list that is never displayed and use it for the search but I was hoping not to have to. |
That's the way I always do it. Apart from anything else, an internal string list is accessed more efficiently than the contents of a dialog element. | ok.. I'll do it that way. Thanks for the tip  _________________ RipBurn |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Jan 14, 2005 8:31 am Post subject: |
|
|
have you tried using:
| Code: | %A = @sendmsg(@win(~LIST1),$0B,0,0)
|
prior to using your list and then use
| Code: |
%A = @sendmsg(@win(~LIST1),$0B,1,0)
|
after using the list
not sure if it will work properly but i think that it will - it effectively deactives your list without disabling it and then you reactivate it
serge _________________
|
|
| Back to top |
|
 |
ripburn Newbie

Joined: 23 Dec 2004 Posts: 22
|
Posted: Fri Jan 14, 2005 9:22 am Post subject: |
|
|
Thanks for the tip Serge but I've already coded it using a copy since its a faster option.
Cheers. _________________ RipBurn |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Fri Jan 14, 2005 1:28 pm Post subject: |
|
|
| If you are seeking through all items like that you really should copy the listbox to a nonvisual list as that will be MUCH faster. But you can also take a normal listbox and disable it, this will cause the control to become grayed out and no longer paint each seek and highlight. You can use the normal dialog disable command, or there is an API which lets you disable the listbox too. |
|
| Back to top |
|
 |
|