04-20-2009, 04:28 PM
I have inserted VSFLEXGRID CONTROL in a dialog. How do I refer to the control and update on the dialog box. Like the control is showing 9 columns by default I want to change to 3.
VSFLEXGRID CONTROL
|
04-20-2009, 04:28 PM
I have inserted VSFLEXGRID CONTROL in a dialog. How do I refer to the control and update on the dialog box. Like the control is showing 9 columns by default I want to change to 3.
04-22-2009, 01:43 PM
I don't have the control to test, but common code for ActiveX controls is
Function Dialog41 \Dialog_Editor here we3 is ActiveX control variable, and you can call its functions like we3.Function(arguments)
04-22-2009, 01:59 PM
This control displays grid. When dialog box is intialised it display default control. Now when I am setting functions of the control no change is appearing in the control. Is there any sort of refresh or redraw is required? No error message is display that mean syntax is fine. I am trying just simple function for setting a (3 x 4) grid.
04-22-2009, 02:01 PM
No, when you call something like grid3.Rowcount=3, it should set row count immediately.
04-22-2009, 02:07 PM
found similar control
Function Dialog45 \Dialog_Editor
04-22-2009, 03:27 PM
I have tried this but control does not update rows & cols in MSFLEXGRIDLIB also. Same is happening with VSFLEXGRID CONTROL.
04-22-2009, 03:32 PM
Don't know, this code works well on my computer.
Also tried to set rows/cols later, on button click, and works too. Function Dialog45 \Dialog_Editor
04-22-2009, 03:41 PM
Now I am trying on my VSFLEXGRID control it gives following error
invalid interface pointer. Use _create or other function to create or get object
04-22-2009, 03:44 PM
The dialog function is called multiple times, and you have to call getcontrol every time you need to use the variable. Its best to insert the code before the first sel, like in my some example, then the variable will always be valid in following code.
04-22-2009, 03:58 PM
Thanks, now everything is working fine.
|
« Next Oldest | Next Newest »
|