HOW???
- Posted by Wayne Overman <euman at BELLSOUTH.NET> Jul 19, 2000
- 427 views
------=_NextPart_000_000E_01BFF198.BED4BFC0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, In the below example I am trying to overlay Listviews in the same spot = in the same window. 1. The problem is when I flip between the Listviews I'm essentially = createing a new List (which I dont want to do.) 2. What method can I use to return to the original List if I have = selected the same list twice. (the answer to the first question should take care of this...) 3. Also, the first Listview item button sends me back to the very first = Listview I created. (which I dont want to do either.) (I Think) that [sendMessage] should clear these two problems up however, = I'm not completely understanding the methods used. I write this after many attempts, and am = in total need of help. Thanks in advance! euman at bellsouth.net procedure Which_List(integer Butt_No) sequence lView lView =3D {"Mechanical","Electrical","Hydraulic","Pneumatic","Misc"} LV =3D create( ListView, { lView[Butt_No], "Part No", "Supplier" }, ChildWin_work_class,200,50,495,370, or_all({LVS_REPORT, LVS_SHOWSELALWAYS})) end procedure =20 Which_List(1) procedure Mech_Butt() Which_List(1) end procedure =20 procedure Elec_Butt() Which_List(2) end procedure procedure Hydr_Butt() Which_List(3) end procedure onClick[btnMech] =3D routine_id( "Mech_Butt" ) onClick[btnElec] =3D routine_id( "Elec_Butt" ) onClick[btnHydr] =3D routine_id( "Hydr_Butt" ) WinMain(MainWin,Maximize) ------=_NextPart_000_000E_01BFF198.BED4BFC0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>In the below example I am trying to = overlay=20 Listviews in the same spot in the same window.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>1. The problem is when I flip between = the Listviews=20 I'm essentially createing a new List<BR> (which I dont want = to=20 do.)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>2. What method can I use to return to = the original=20 List if I have selected the same list twice.<BR> (the answer = to the=20 first question should take care of this...)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>3. Also, the first Listview item button = sends me=20 back to the very first Listview I created.<BR> (which I dont = want to=20 do either.)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>(I Think) that [sendMessage] should = clear these two=20 problems up however, I'm not completely<BR>understanding the methods = used. I=20 write this after many attempts, and am in total need of = help.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance!</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><A=20 <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>procedure Which_List(integer = Butt_No)<BR>sequence=20 lView</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>lView =3D=20 <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> LV = =3D create(=20 =20 { lView[Butt_No], "Part No", "Supplier"=20 ; =20 or_all({LVS_REPORT, LVS_SHOWSELALWAYS}))</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>end=20 procedure<BR> <BR>Which_List(1)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>procedure = Mech_Butt()<BR>Which_List(1)<BR>end=20 procedure<BR> <BR>procedure Elec_Butt()<BR>Which_List(2)<BR>end=20 procedure</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>procedure = Hydr_Butt()<BR>Which_List(3)<BR>end=20 procedure</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>onClick[btnMech] =3D routine_id( = "Mech_Butt" =20 )<BR>onClick[btnElec] =3D routine_id( "Elec_Butt" = )<BR>onClick[btnHydr] =3D=20 routine_id( "Hydr_Butt" )</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial=20 ------=_NextPart_000_000E_01BFF198.BED4BFC0--