English 中文(简体)
COM - Controls for PowerBuilder
原标题:

how to use the com controls in PowerBuilder ? If it is used in an application.. how can i identify it?

最佳回答

To start with, it d probably be good to point you towards the manuals, available online and on the product disks, as you don t mention the version of PowerBuilder you re using, and you don t mention the type of COM object you re concerned about, so this answer may be hit and miss. I m going to assume you re referring to a visual COM control.

Placing it on a window or user object is pretty easy, with the menu item Insert / Control / OLE..., then select the desired OLE control from the dialog. There s also an option in the drop down toolbar item that lists all the controls. Once it s on the window or user object, you can script events on it just like any other control.

To determine if a given control on a window or user object is a COM visual control, if you select it, the title on the Properties pane will say something like "ole_1 inherited from olecustomcontrol". If you re looking at the Edit Source view of the object, search for "from olecustomcontrol". You can similarly do a search across your application for that string to find out where COM controls are used (at least at the first level of inheritance; determining every place will be more complex, looking for descendants of objects that use COM as well).

Good luck,

Terry.

问题回答

暂无回答




相关问题
COM - Controls for PowerBuilder

how to use the com controls in PowerBuilder ? If it is used in an application.. how can i identify it?

Powerbuilder language documentation

Where can I find documentation for the actual PowerBuilder language. I am referring to the kind of code you get when you select "Edit Source" from a right-click menu on the library painter. Not the ...

.NET dll in PowerBuilder (as COM) problem with Lists

All, I am trying to access a .NET dll registered as a COM Object with PowerBuilder 10. I keep running into problems where .NET objects return lists. I have built out a very simple class for a proof ...

How *does* Powerbuilder POST work?

Unfortunately searching for Sybase Post doesn t get me the answers I m looking for. I want to know what the actual function is of POST As in .. procedure lala POST procedure1() procedure2() I m ...

Powerbuilder: Trying to set the currentitem for a menuCascade

Please clue this newb in. I ve got a menu with it s object type set to menu cascade. I can reference the items in the menu just fine and I can even st the items to enabled or visible. But what I can ...

热门标签