Stefan5627
Programmer
Hi all,
In my editable grids i change the currentcontrol in columns so i can use custom textboxes
however these are not properly alligned with the default textboxes in other (none editable) columns where currentcontrol has not been changed.
when the column with the custom textbox gets the focus, the custom textbox does allign properly.
How can I show the grid with all the textboxes properly alligned without having to set the focus to each column first?
Doing that in a 35 column grid takes about 1.7 seconds.
simple example off a custom textbox:
Code:
define class grid_textbox as Textbox
fontsize = 8
borderstyle = 0
margin = 0
FUNCTION InterActivechange
* custom code here
ENDFUNC
FUNCTION Valid
* custom code here
ENDFUNC
enddefine
The way I add it to the column (poColumn):
Code:
poColumn.addObject( "customtextbox", "grid_textbox")
poColumn.currentcontrol = "customtextbox"
poColumn.customtextbox.visible = .T.
poColumn.sparse = .F.
Am I forgetting something?