Page 1 of 1

Custom control - dependency issue?

Posted: Friday 22nd March 2019 10:36am
by bill-lancaster
My custom control uses the gambas pdf component
If the pdf component is NOT included in an application that uses my custom control then I get an error:-
Cannot load class 'PdfDocument': Unable to load class file
Am I missing something or is this the way it's supposed to be?

Re: Custom control - dependency issue?

Posted: Friday 22nd March 2019 10:46am
by jornmo
Take a look under point #2 under introduction:

http://gambaswiki.org/wiki/dev/gambas

Re: Custom control - dependency issue?

Posted: Friday 22nd March 2019 11:04am
by bill-lancaster
Thanks jornmo, I already have gb.pdf required.

Re: Custom control - dependency issue?

Posted: Friday 22nd March 2019 1:26pm
by bill-lancaster
Thought I may have been using an earlier version of the control, so have double checked. The version is the latest.
Attached is an image of my properties/information tab - is this correct?

Re: Custom control - dependency issue?

Posted: Friday 22nd March 2019 5:17pm
by jornmo
That looks right to me. How du you use it in your app? Did you make an intallation package of it, and install it on your system?

Re: Custom control - dependency issue?

Posted: Friday 22nd March 2019 10:32pm
by bill-lancaster
Yes, I'm using Kubuntu 18.04, Gambas 3.12.2.