This is driving me up the wall!
Firstly, Dave S helped a lot regarding monospaced fonts in a popup which seems will only happen when Foxfont is used. So moving on, the program below is the essence of what I am trying to do - have multi-selections in a list.
This works *perfectly* if the selection is made using the keyboard - highlight an entry, hit return, multiple items can be selected. However, if an item is double-blipped with the mouse, all previously marked items disappear!
LASTKEY() in both scenarios returns 13
I'm sure it's me and I can't see the wood for the trees but ANY help on this would be greatly appreciated.
Chris
Firstly, Dave S helped a lot regarding monospaced fonts in a popup which seems will only happen when Foxfont is used. So moving on, the program below is the essence of what I am trying to do - have multi-selections in a list.
This works *perfectly* if the selection is made using the keyboard - highlight an entry, hit return, multiple items can be selected. However, if an item is double-blipped with the mouse, all previously marked items disappear!
LASTKEY() in both scenarios returns 13
I'm sure it's me and I can't see the wood for the trees but ANY help on this would be greatly appreciated.
Chris
Code:
USE <a_table>
DEFINE POPUP PopName;
MARGIN ;
MULTISELECT ;
SCROLL
BarNo = 1
SCAN
DEFINE BAR BarNo OF PopName ;
PROMPT <field_from_a_table>
BarNo = BarNo + 1
ENDSCAN
nPopLine = 1
DEFINE WINDOW test ;
AT 0.000, 0.000 ;
SIZE 21.769,147.800 ;
FONT "MS Sans Serif", 8 ;
FLOAT ;
CLOSE ;
NOMINIMIZE ;
SYSTEM
ACTIVATE WINDOW test
@ 18.462,43.200 GET oCommand ;
PICTURE "@*HT \<Exit" ;
SIZE 1.769,6.500,0.667 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B"
@ 5.077,9.800 GET nPopLine ;
PICTURE "@&N" ;
POPUP PopName ;
SIZE 13.000,87.429 ;
DEFAULT " " ;
FONT "FoxFont", 7 ;
STYLE "" ;
VALID MarkPop(nPopLine)
READ CYCLE
PROCEDURE MarkPop
PARAMETERS nBar
SET MARK OF BAR nBar OF "PopName" TO ;
NOT (MRKBAR("PopName",nBar))
RETURN .T.
[\code]