Software Archive
Read-only legacy content

AVISGRIDCTL

sumitm
Beginner
498 Views
Hi,

I was trying to show my array data in a dialog box using the AVISGRID Control. The example sample in Array Visulizer (Anim32) has the AVIS2D in it. I was trying to do something similar and generated the module for AVISGRID.OCX .
 
lret = DlgSetCtrlEventHandler( gdlg, IDC_AVISGRIDCTL1, what_should_be_here, 6, IID__IAvisGridCtlEvents )
lret = DlgGet( gdlg, IDC_AVISGRIDCTL1, hAvisGRid1, DLG_IDISPATCH )

However, I am at a loss as to how to get the array data show up there. What would be the equivalent of the Avis2DRndrPass subroutine. A short example would be of great help.
I hope the new book dwells on this subject to teach novices like me how to do such things instead of keeping an esoteric art.

Thanks
0 Kudos
4 Replies
Steven_L_Intel1
Employee
498 Views
I suggest sending your question to vf-support@compaq.com

Steve
0 Kudos
Intel_C_Intel
Employee
498 Views
The AVISGRID control has an event interface, _IAvisGridCtlEvents. That interface has 4 events that are documented in the Array Visualizer on-line documentation. I don't know which, if any, of the events correspond to the Avis2D RndrPass event.

The argument to DlgSetCtrlEventHandler that you are asking about is the name of the routine to be called when the event occurs. It must have the exact interface as was generated by the Module wizard or "bad" things will happen because of stack corruption. The next argument must be the ID number of the event in the _IAvisGridCtlEvents interface. The Module Wizard generates a "MEMBERID = ?" comment that indicates the number you should use.

Leo
0 Kudos
sumitm
Beginner
498 Views
Hi,

I have been finally been able to make progress on this one and the grid and graph updates with the slider control (by use of faglsaveAsfile routine everytime recalculation is done and referencing that file to the AVISGridCTL).

However, the reason I was trying to present my data in the gridcontrol was to have the user copy and paste the relevant data to a spreadsheet. When I was not using the ActiveX control, I was able to copy and paste the AVIS data easily (as when you open up a .agl file separately) . However, now when I select the displayed data in the Active X control inside the dialog box with a mouse and try to right click, only two menu items show up, "About" and "Properties". Can anyone help me in figuring out how to have someone copy the selected data.

Thanks in advance

Sumit
0 Kudos
Intel_C_Intel
Employee
498 Views
The copy and paste functionality is provided by the Viewer, so you don't see this feature when using the control.

If we have time, we'll move the code for copy and paste into the Grid for the next release so the functionality will be available for all applications that use the control.
0 Kudos
Reply