PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jonathan Bristow on November 18, 2004, 05:53:44 AM

Title: Adding Third party DLL's/Commands
Post by: Jonathan Bristow on November 18, 2004, 05:53:44 AM
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.
Title: Adding Third party DLL's/Commands
Post by: TechSupport on November 18, 2004, 08:36:25 AM
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.
Title: Pictures on Buttons
Post by: Jonathan Bristow on November 24, 2004, 12:04:24 PM
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?
Title: Adding Third party DLL's/Commands
Post by: TechSupport on November 24, 2004, 05:20:24 PM
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.