This project is read-only.

ShapeDrawingOptions.DrawShape and VBA (VB6)

Jun 28, 2011 at 3:31 PM

At usage of function ShapeDrawingOptions.DrawShape (DrawPoint and other) there is a message "Function marked as restricted or uses a type not supported in Visual Basic". These functions cannot be used in VBA (VB6)?

Jun 28, 2011 at 11:21 PM

I suppose no. They were written for .NET specifically (MW4 Symbology plug-in, Legend). VB6 can't work with pointers (int**). But after adding overloaded methods which accepts HDC as long they should work (upon my brief testing). If you interested in this functionality, let me know - I'll implement it when writing next changes.

Jun 29, 2011 at 4:30 AM


Yes, me these possibilities very interest. I wish to realise a legend and the editor of a legend.

Jul 4, 2011 at 5:15 PM
Edited Jul 4, 2011 at 5:15 PM

The new methods were added with today's changes. New methods have VB suffix, for example: ShapeDrawingOptions.DrawRectangleVB. 

Handle to device context can be passed as long (it's not a problem to obtain those using WinApi I suppose). 

>I wish to realise a legend and the editor of a legend.

In case you succeed, consider to make your code public or to show some sample code for others.



Jul 11, 2011 at 4:57 PM

Thanks, Sergey!
As soon as it becomes accessible new Control, I will taste new methods.