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 


removing highlight from a list

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Jan 10, 2003 1:50 pm    Post subject: removing highlight from a list Reply with quote

Hi,

anybody know how to take the highlight focus off a list? for example, i use @match() to see if there is a match for an item in a list but then the list item is highlighted and i don't want it to be.

thanks in advance,

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Fri Jan 10, 2003 2:00 pm    Post subject: Re: removing highlight from a list Reply with quote

Serge wrote:
Hi,

anybody know how to take the highlight focus off a list? for example, i use @match() to see if there is a match for an item in a list but then the list item is highlighted and i don't want it to be.

thanks in advance,

Serge

As far as I know, once an item in a list is selected, you can't remove the highlight anymore.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


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

PostPosted: Fri Jan 10, 2003 2:08 pm    Post subject: Reply with quote

The only way I know is to reload the list with whatever data it may contain
and the set the focus to another control.

_________________
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
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Jan 10, 2003 2:11 pm    Post subject: Reply with quote

Or you could ASSIGN the contents of your GUI list to another list that you just keep as a copy in memory
and use for your search procedure.

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
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 10, 2003 2:16 pm    Post subject: Reply with quote

thanks for your thoughts and ideas, guys - good workaround ideas Very Happy Very Happy Very Happy

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 Jan 10, 2003 5:41 pm    Post subject: Reply with quote

Try this out:
Code:

Title Clear List Selection
  DIALOG CREATE,Clear List Selection,-1,0,190,208
REM *** Modified by Dialog Designer on 1/10/2003 - 12:23 ***
  DIALOG ADD,LIST,LIST1,1,4,180,176
  DIALOG ADD,BUTTON,ClearSel,180,45,100,24,Clear Selection
  DIALOG SHOW
  LIST ADD,LIST1,Test
  LIST ADD,LIST1,Test2
  LIST SEEK,List1,1
:Evloop
  wait event
  goto @event()
:ClearSelBUTTON
  %F = @SENDMSG(@WIN(~List1),$0186,-1,0)
  goto evloop
:Close
  exit

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


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Fri Jan 10, 2003 7:13 pm    Post subject: Reply with quote

SnarlingSheep wrote:
Try this out:
Code:

Title Clear List Selection
  DIALOG CREATE,Clear List Selection,-1,0,190,208
REM *** Modified by Dialog Designer on 1/10/2003 - 12:23 ***
  DIALOG ADD,LIST,LIST1,1,4,180,176
  DIALOG ADD,BUTTON,ClearSel,180,45,100,24,Clear Selection
  DIALOG SHOW
  LIST ADD,LIST1,Test
  LIST ADD,LIST1,Test2
  LIST SEEK,List1,1
:Evloop
  wait event
  goto @event()
:ClearSelBUTTON
  %F = @SENDMSG(@WIN(~List1),$0186,-1,0)
  goto evloop
:Close
  exit

Ah, somebody has come up with a solution Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Jan 14, 2003 8:21 am    Post subject: Reply with quote

thanks for that, guys Very Happy

i had tried:
Code:

@SENDMSG(@WIN(~List1),$0186,-1,0)

but not with the -1 value and hence found that it did nothing.

The -1 value makes it now work Very Happy

thanks again,

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
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