Custom control - dependency issue?

Post Reply
bill-lancaster
Posts: 57
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Custom control - dependency issue?

Post by bill-lancaster » Friday 22nd March 2019 10:36am

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?

User avatar
jornmo
Site Admin
Posts: 190
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Custom control - dependency issue?

Post by jornmo » Friday 22nd March 2019 10:46am

Take a look under point #2 under introduction:

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

bill-lancaster
Posts: 57
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Custom control - dependency issue?

Post by bill-lancaster » Friday 22nd March 2019 11:04am

Thanks jornmo, I already have gb.pdf required.

bill-lancaster
Posts: 57
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Custom control - dependency issue?

Post by bill-lancaster » Friday 22nd March 2019 1:26pm

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?
Attachments
Screenshot_20190322_131543.png
Screenshot_20190322_131543.png (51.15 KiB) Viewed 114 times

User avatar
jornmo
Site Admin
Posts: 190
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Custom control - dependency issue?

Post by jornmo » Friday 22nd March 2019 5:17pm

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?

bill-lancaster
Posts: 57
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Custom control - dependency issue?

Post by bill-lancaster » Friday 22nd March 2019 10:32pm

Yes, I'm using Kubuntu 18.04, Gambas 3.12.2.

Post Reply