Custom control - dependency issue?

Ask about the individual Gambas components here.
Post Reply
bill-lancaster
Posts: 190
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Custom control - dependency issue?

Post 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?
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Custom control - dependency issue?

Post by jornmo »

Take a look under point #2 under introduction:

http://gambaswiki.org/wiki/dev/gambas
bill-lancaster
Posts: 190
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Custom control - dependency issue?

Post by bill-lancaster »

Thanks jornmo, I already have gb.pdf required.
bill-lancaster
Posts: 190
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Custom control - dependency issue?

Post 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?
Attachments
Screenshot_20190322_131543.png
Screenshot_20190322_131543.png (51.15 KiB) Viewed 9070 times
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Custom control - dependency issue?

Post 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?
bill-lancaster
Posts: 190
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Custom control - dependency issue?

Post by bill-lancaster »

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