'Caption = "Select or MultiSelect items in the lists. Use the command buttons or Right-Click+Drag to move items between the Lists. Double-clicking an item in a list also moves it to the other list."
'Caption = "Select or MultiSelect items in the lists. Use the command buttons or Right-Click+Drag to move items between the Lists. Double-clicking an item in a list also moves it to the other list."
Top = 188
Left = 16
BackStyle = 0
Height = 51
Width = 421
WordWrap = .T.
Name = "label3"
CArial, 1, 10, 6, 16, 13, 15, 3, 0
Arial, 0, 8, 5, 14, 11, 13, 3, 0
mainb
SHOW`
three
seven
eight
samples\controls\dragmove.cur
samples\controls\nodrop01.cur
THIS
LSTSOURCE
ADDITEM
AUTOCENTER
CANDROPICON
NODROPICON
Unload,
Initp
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
THISFORM
Click,
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
OSOURCE
NXCOORD
NYCOORD
NSTATE
DRAGICON
PARENT
CANDROPICON
NODROPICON5
NBUTTON
NSHIFT
NXCOORD
NYCOORD
DRAGx
OSOURCE
NXCOORD
NYCOORD
THISFORM
CMDREMOVE
CLICK
PARENT
LSTSELECTED
LISTCOUNT
SELECTED=
THISFORM
LSTSELECTED
ADDITEM
LIST
LISTINDEX
REMOVEITEM
REFRESH
DragOver,
MouseDown
DragDropa
DblClickM
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
OSOURCE
NXCOORD
NYCOORD
NSTATE
DRAGICON
PARENT
CANDROPICON
NODROPICON5
NBUTTON
NSHIFT
NXCOORD
NYCOORD
DRAG:
OSOURCE
NXCOORD
NYCOORD
THISFORM
CMDADD
CLICK=
THISFORM
LSTSOURCE
ADDITEM
LIST
LISTINDEX
REMOVEITEM
REFRESH
DragOver,
MouseDown
DragDropa
DblClick
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
THISFORM
LSTSOURCE
LISTCOUNT
SELECTED
LSTSELECTED
ADDITEM
REMOVEITEM
REFRESH
Click,
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
THISFORM
LSTSOURCE
LISTCOUNT
LSTSELECTED
ADDITEM
REMOVEITEM
REFRESH
Click,
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
THISFORM
LSTSELECTED
LISTCOUNT
SELECTED
LSTSOURCE
ADDITEM
REMOVEITEM
REFRESH
Click,
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
THISFORM
LSTSELECTED
LISTCOUNT
LSTSOURCE
ADDITEM
REMOVEITEM
REFRESH
Click,
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
Selected items:
---------------
THISFORM
LSTSELECTED
LISTCOUNT
Click,
c:\vfp\samples\controls\lists\
lmover.scx
c:\vfp\samples\controls\lists\lmover.scx
PLATFORM
UNIQUEID
TIMESTAMP
CLASS
CLASSLOC
BASECLASS
OBJNAME
PARENT
PROPERTIES
PROTECTED
METHODS
OBJCODE
COMMENT
RESERVED1
RESERVED2
RESERVED3
RESERVED4
RESERVED5
RESERVED6
RESERVED7
RESERVED8
RESERVED9
RESERVED10
COMMENT Screen 16 WINDOWS _QTR0PPD0D 493773701 17 18 19 20 32 WINDOWS _QV40QQ3ZK 496277658 23 24 25 26 27 WINDOWS _QTR0MZ7TX 495937768 33 34 35 36 38 13560 WINDOWS _QT80U9H3R 495937768 169 170 171 172 173 182 13627 WINDOWS _QTY0Y6TTN 492469963 568 569 570 571 572 WINDOWS _QTY0Y6TU1 495937768 575 576 577 578 579 584 13815 WINDOWS _QTY0Y6TVV 495937768 605 606 607 608 609 WINDOWS _QTY0Y6TW9 495937768 614 615 616 617 618 621 13830 WINDOWS _QTZ0LRULK 495937768 1037 1038 1039 1040 1041 1045 14039 WINDOWS _QW414WC1O 496277659 1399 1400 1401 1402 1403 1404 WINDOWS _QTZ0LK81O 495937769 1406 1407 1408 1409 1410 WINDOWS _QTZ0LK87D 492142312 1415 1416 1417 1418 1419 WINDOWS _QTZ0LIGZU 496277659 1422 1423 1424 1425 1426 1431 14216 WINDOWS _QTZ0LIH6Q 496277659 1828 1829 1830 1831 1832 1839 14411 WINDOWS _QTG0KB4NX 496277660 2745 2746 2747 2748 2750 2754 14861 WINDOWS _QTU0ZKI8G 496277660 3170 3171 3172 3173 3175 3178 15070 WINDOWS _QTZ0LKA5W 495937769 3615 3616 3617 3618 3620 3625 15289 WINDOWS _QTZ0LRWAF 495937769 4139 4140 4141 4142 4144 4148 15546 WINDOWS FONTINFO 495937769 4439 4440 4441 4442 4443 4455 15693 WINDOWS _QUG0Y4I6M 495937769 4862 4863 4864 4865 4867 4869 15897 WINDOWS _QUG0Y4I9Y 495937770 5049 5050 5051 5052 5054 5056 15989 WINDOWS _QTZ0LRWVE 495937770 5236 5237 5238 5239 5240 5261 16081 COMMENT FONTINFO 6790
*** Graph all records that are tagged with TOGRAPH (currently on screen).
SELECT graph
SCAN FOR graph.tograph
IF graph.polar
DO pgraph WITH graph.equation,graph.lfrom*pi(),graph.lto*pi(),graph.step,graph.ecolor,graph.connect,thisformset.nFormX,thisformset.nFormY,.f.,thisformset.frmgraph,thisformset.nFormScale
ELSE
DO cgraph WITH graph.equation,graph.step,graph.ecolor,graph.connect,thisformset.nFormX,thisformset.nFormY,.f.,thisformset.frmgraph,thisformset.nFormScale
ENDIF
ENDSCAN
ENDPROC
PROCEDURE onegraph
#DEFINE graphNotFound "Graph was not found"
PARAMETER cgraphToPlot
SELECT graph
*** Look for graph to plot.
LOCATE FOR graph.name = m.cgraphToPlot
IF NOT FOUND()
=MESSAGEBOX(graphNotFound)
RETURN
ENDIF
*** Set flag TOGRAPH to graph if zoom, resize or move orgin and color.
REPLACE graph.tograph with .t.,graph.ecolor with thisformset.currentColor
*** If polar call the polar graph procedure (PGRAPH) if not call the
*** cartesian graph procedure (CGRAPH).
IF graph.polar
DO pgraph WITH graph.equation,graph.lfrom*pi(),graph.lto*pi(),graph.step,graph.ecolor,graph.connect,thisformset.nFormX,thisformset.nFormY,.f.,thisformset.frmgraph,thisformset.nFormScale
DO cgraph WITH graph.equation,graph.step,graph.ecolor,graph.connect,thisformset.nFormX,thisformset.nFormY,.f.,thisformset.frmgraph,thisformset.nFormScale
ENDIF
ENDPROC
|lcanmove
ldidmove
laddnumcoord
nformscale
nformx
nformy
currentcolor
laddcoords
*addcoord
*allgraph
*onegraph
frmGraph
frsGraphDemo
ScaleMode = 3
Top = 157
Left = 13
Height = 300
Width = 300
Caption = "Graph Demo"
MousePointer = 1
AlwaysOnTop = .F.
Name = "frmGraph"
PROCEDURE Init
*** Set the form scalemode to pixels.
thisform.scalemode = 3
ENDPROC
PROCEDURE MouseMove
Parameters nButton, nShift, nXCoord, nYCoord
*** Claculate the absoult screen location for the orgin.