forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Remove Highlight trick don't work on v5.02 - any new ideas?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Oct 28, 2004 10:11 pm    Post subject: Remove Highlight trick don't work on v5.02 - any new ideas? Reply with quote

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
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Oct 29, 2004 12:11 pm    Post subject: Reply with quote

i would like to know that too Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Oct 29, 2004 10:42 pm    Post subject: Reply with quote

althought that should work, you might try:
Code:

%F = @SENDMSG(@WIN(~List1),$0185,0,-1)

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Oct 30, 2004 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sat Oct 30, 2004 12:20 am    Post subject: Reply with quote

Removing input focus doesn't remove an item's selection. Wink
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Nov 04, 2004 1:28 pm    Post subject: Reply with quote

i found the following to work

Quote:
%%dummy = @sendmsg(@win(~table1),$0203,0,0)


Serge
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Nov 04, 2004 1:32 pm    Post subject: Reply with quote

sorry snarlingsheep and bweckel, your suggestions did not work (with tables under windows 98se) Sad

my suggestion above works for tables under xp and windows 98se

serge
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Nov 04, 2004 10:39 pm    Post subject: Reply with quote

Serge wrote:
sorry snarlingsheep and bweckel, your suggestions did not work (with tables under windows 98se) Sad

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 Wink
Tables are ListViews.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Nov 05, 2004 9:24 am    Post subject: Reply with quote

fair enough snarlingsheep, for some reason i always think they are the same (only different in appearance)

my mistake Smile

serge
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ripburn
Newbie


Joined: 23 Dec 2004
Posts: 22

PostPosted: Thu Jan 13, 2005 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Jan 13, 2005 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ripburn
Newbie


Joined: 23 Dec 2004
Posts: 22

PostPosted: Thu Jan 13, 2005 11:10 am    Post subject: Reply with quote

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 Cool
_________________
RipBurn
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Jan 14, 2005 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
ripburn
Newbie


Joined: 23 Dec 2004
Posts: 22

PostPosted: Fri Jan 14, 2005 9:22 am    Post subject: Reply with quote

Thanks for the tip Serge but I've already coded it using a copy since its a faster option.

Cheers.

_________________
RipBurn
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Jan 14, 2005 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group