Adding Third party DLL's/Commands

Started by Jonathan Bristow, November 18, 2004, 05:53:44 AM

Previous topic - Next topic

Jonathan Bristow

I have just started to use Firefly and i must say it is the preferred platform for PB development. It is absolutely amazing.

Our current project (And one which is currently a test track for Firefly) is to view PTREE indexes. We had gotten a third party to develop a set of tailored commands to access the ptree structure and assign records etc.

However, Firefly Help does not appear to indicate where i should put the declarations of these extra commands/files.
Btw, the third party commands are both supplied as standard .BAS/.INC and .DLL's.
I have tried to put them in the (General) area, tried to call a sub from here to #include them, tried in the form1_wm_command code section but the compiler always returns an error.

TechSupport

Hi Jonathan,

Thanks for the kind words about FireFly. I hope that it lives up to your expectations. I am constantly adding to the program so feel free to offer suggestions for improvement.

Quote
Btw, the third party commands are both supplied as standard .BAS/.INC and .DLL's
If that is the case, then you simply need to use "Add Module" from the "Project" menu. Click on the Existing tab and navigate to the file containing your declarations or source. FireFly will then compile that file(s) into your project.

If the above does not work then please let me know.

Jonathan Bristow

Thankyou Paul, i forgot to reply, but have now added the 'module' and everything works fantastic.

Apart from...
Actually, this is a completely different area, but maybe you could give me some guidance.
I would like to put pictures on buttons, if only a 'Directory Open' Graphic to make the button more intuitive. But how can this be achieved, since the properties do not have any entries for pictures?

TechSupport

You can use an "ImageButton" control. That is a standard push button that allows an image to be used such as an icon or bitmpa. That control is in the Toolbox.