| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Jan 10, 2003 1:50 pm Post subject: removing highlight from a list |
|
|
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 |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Fri Jan 10, 2003 2:00 pm Post subject: Re: removing highlight from a list |
|
|
| 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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Fri Jan 10, 2003 2:08 pm Post subject: |
|
|
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 |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Fri Jan 10, 2003 2:11 pm Post subject: |
|
|
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 |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Jan 10, 2003 2:16 pm Post subject: |
|
|
thanks for your thoughts and ideas, guys - good workaround ideas
Serge _________________
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Jan 10, 2003 5:41 pm Post subject: |
|
|
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 |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Fri Jan 10, 2003 7:13 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Jan 14, 2003 8:21 am Post subject: |
|
|
thanks for that, guys
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
thanks again,
Serge _________________
|
|
| Back to top |
|
 |
|
|
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
|
|