Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid with memo in txtbox, sometimes dblclick doesn't wor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00537223
Message ID:
00537345
Vues:
23
This message has been marked as a message which has helped to the initial question of the thread.
>Hmm, don;t know exactly, but take a look to the MemoWindow property of TextBox. I usually use EditBox control in the grid column that displays correct content of memo field instead of 'Memo'.
>
>The memoWindow property is (None) -- the default. I like the textbox because I like the compactness of the column and editing in a separate window.
>
>Kevin
>
>P.S. I added a editbox to the grid to try it out and since it is clumsy to do it visually, I added two editboxes -- how in the world do you get rid of one of the extra controls?

Very tricky: select this EditBox in the Property sheet, then click on Form's title bar and hit Delete. This would do it. Otherwise you can do it programatically using this idea from Cetin Basoz (select grid in design-time and run this from command window): (modify it for your needs):
********************************************************************
*  Description.......: GridBuilder - allows to build a grid in design-time
*  Calling Samples...:
*  Parameter List....:
*  Created by........: Cetin Basoz
*  Modified by.......:
********************************************************************
*custom builder not registered
aselobj(arrObj)
for each oObj in arrObj
	if upper(oObj.baseclass)='GRID'
		for each oColumn in oObj.columns
		    if type('oColumn.text1')="O"
			    oColumn.removeobject('text1')
			endif 
			if oColumn.Header1.Caption<>"Notes"   
			   oColumn.newobject('text1','addringrid','addrstd.vcx')
			endif   
		next
	endif
next
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform