Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move items between listboxes
Message
De
27/06/2004 14:14:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00917619
Message ID:
00917744
Vues:
8
Thank you Sergey.

It's my first time to use list box movers
in my applications and I must say that I've
got a lot to catch up before I can use it
efficiently. Thanks again.

P.S. There's another listbox mover class I
found in the VFP class library called
the _supermover. I tried dropping that
to my form but it appears disabled and
I can't activate it. It's "enabled" is
in .T. but somehow it can't be activated.
I'm still checking on what's causing it
not to work.
--
jw

>Jang,
>
>>I have this list boxes controls in my form that
>>I copied from the moverlists class in "Solution"
>>of VFP6.0. I have the following 2 problems when
>>moving items between the list boxes.
>>
>>1. It seems I can only display multi columns for
>> the two list boxes by setting RowSourceType
>> to 2 or above. Setting RowSourceType to 0
>> or 1 makes the listbox to display only 1 column.
>> Since I need to clear the listboxes often so
>> I'd prefer to set RowSourcetype=0. If I do that
>> is it still possible to set them to display
>> multi columns?

>
>Here's how you can create multicolumn Listbox with RowSourceType=0.
WITH Thisform.List1
>  	.ColumnCount = 3
>  	.ColumnWidths = "50,100, 100"
>	.AddItem( 'One' )
>	.List[.NewIndex, 2] = 'OneColumn 2'
>	.List[.NewIndex, 3] = 'OneColimn 3'
>	.AddItem( 'Two' )
>	.List[.NewIndex, 2] = 'TwoColumn 2'
>	.List[.NewIndex, 3] = 'TwoColimn 3'
>	.AddItem( 'Three' )
>	.List[.NewIndex, 2] = 'ThreeColumn 2'
>	.List[.NewIndex, 3] = 'ThreeColimn 3'
>ENDWITH
>
>
>2. If I specified RowSourceType to 6 for both
>listboxes, The code
>SCAN
>List.AddItem(table.field)
>ENDSCAN
>fills both (source and destination) boxes
>instead of only the source listbox. Anyone
>knows why I am doing wrong here?

>
>The AddItem() is only applicable for the RowSourceType 0 and 1. With the RowSourceType=6 the RowSource should be in the format 'TableAlias.Field1, Field2, Field3, ...'.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform