Connects NotateXpress to ImagXpress via an IUnknown interface pointer.
Visual Basic |
---|
Public Function InterfaceConnect( _ ByVal punk As Unknown _ ) As Boolean |
- punk
- An IUnknown interface pointer.
If NotateXpress and ImagXpress are connected.
This method does the same thing as setting the Client property or calling the SetClientWindow method. It is designed for applications where neither of these other methods can be used.
Note: The most likely time you will need to use this method is when you are using ImagXpess and NotateXpress by reference and ImagXpress either cannot have a window or you do not want ImagXpress to have a window.
Interface Connect and Dynamic Creation (Visual Basic) | ![]() |
---|---|
'DynamicallycreateImagXpressandNotateXpress DimWithEventsixAsPegasusImagingActiveXImagXpress9.ImagXpress DimWithEventsnxAsAccusoftNotateXpress12.NotateXpress Setix=NewPegasusImagingActiveXImagXpress9.ImagXpress Setnx=NewAccusoftNotateXpress12.NotateXpress 'CreateawindowforImagXpresstodrawupon ix.CreateCtlWindowMainForm.hWnd,10,10,1000,1000 'Theauthorstronglysuggestsusingthisconnectionmethodwhennootheroptionexists. nx.InterfaceConnectix 'Thepreferedwayistouse: 'nx.SetClientWindowix.hWnd |