General information
Category:
Object Oriented Programming
Title:
Programmatically building a grid.
I've got a grid object in a container that only has 1 column in it.
During program execution, I dynamically add columns to the grid with the AddObject method. Everything works fine, but I would like to allow the user to right-click or double-click in the text boxes in the grid. I've placed wait windows in the right-click and double-click events of the grid, and they never fire.
Now for something even more interesting.
I created a class called "blah" that was based on the TextBox control. In this new class, I added wait windows in the double-click and right-click events of the "blah" class. In my program I cycle through all of the columns that I'm adding to the grid, and do a RemoveObject("Text1") to remove the TextBox control that is placed there by default, then then AddObject("Text1", "blah") to add in my custom version of the TextBox control.
Now when I run my program, I can't see the data in any cell that I click in, and I can't use the arrow keys to navigate through the grid.
All the data is displayed in the grid properly, but it just vansihes when I click in it, and reappears when I move to another cell.
I want to be able to double-click or right-click in a cell so that I can do other stuff based on the value of the cell.
Does anyone have any ideas?
Thanks,
Jeff Newbill
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only