Problems getting custom plugins to be recognized

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Problems getting custom plugins to be recognized

Postby reneuend » Sat Aug 25, 2012 8:47 pm

I've been trying to get my OCX files to be set up as plugins, but AM is not recognizing the controlname. I've tried just building a very simple one but still the same issue. I also tried on an earlier version of AM to no avail.... :?

I used the ProgID tool to make sure I was setting up the projectname and controlname correctly.

Details:

AMTextbox.ocx
ProgID: AMTextbox.txtbox

Method Declaration:
.AMTextbox ([nLeft As Integer = 100], [nTop As Integer = 100], [nWidth As Integer = 150], [nMaxLen As Integer = 50])



Code: Select all
'STARTUP Tab Code:
Const PROGRAM_ID = "AMTextbox.txtbox"


Code: Select all
'Frame Properties Code:
Component("txtbox").Object.AMTextbox 100,100,150,50


Error1: The component named "txtbox" could not be found.
Error2: Object required: 'Component(...)'

Any ideas?
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Problems getting custom plugins to be recognized

Postby Lyberodoggy » Wed Jan 23, 2013 8:01 pm

Have you used Action.AddComponent "PROGID", "COMPONENTNAME" to add your component properly? It's kinda tricky, refer to the step-by-step guide in the help files
http://www.adventuremaker.com/help/custom_components.htm
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests