I was wondering if it is possible to add your own wrappers and FF functions to firefly. I know that they are all in an encrypted file and that Paul is adding lots of functions, but it would be nice if I could add my own.
The thought was actually triggered by the port of VB Dex3d to Powerbasic by Patrice Terrier that I stumbled accross a few days ago. Seems like a nice candidate for a user wrapper, as it is originally Open Source Software and thus cannot be included in an encrypted file without the source code., I think.
And maybe, just maybe Patrice is already working on this ...
Martien van Ee
You currently can not add your user functions into the FireFly function list. Like you said, the file is encrypted. It is encrypted because I have it in a special format that I do not want people to manually change. Changing anything in that file would surely cause FireFly to GPF during the compile phase - and we don't want that. :)
Being able to add user defined functions to the FireFly functions list is on the wishlist though.
:thumbsup:
Guess I will have to be patient then.
Hopefully it's somewhere in the upper part of your todo list!
Martien van Ee
No problem. Just for added clarity, you can easily add your own code modules to FireFly via the "Project" menu, "Add Module". Click on the "Existing" tab and select the file with your routines. The only difference to using this method is that all of the routines will be added to the final code generation and they won't be accessible from the F8 popup FireFly Functions list. With normal FireFly Functions, they are only added to the final code generation if they have actually be used somewhere in the user's code.
Paul,
you have just described all the reasons why I wanted to add my own functions! And why I like the way Firefly handles them...
Martien van Ee
I don't want to add functions, Paul usually adds what we request pretty quick...what I want is the ability to edit the existing ones. Maybe even make the existing ones like templates that are modeled from, etc. That may even lead to adding standalones in the future as suggested, but just tweaking to our own needs, like making Browse For Folders allow or restrict differently, etc. I guess I could always just paste the code into a module...but that is too simple. :P
BTW, when are we going to be able to have non auto button types? I have some cases where I wanted a Radio button group that could also have none selected...like if the user clicks the one already active it turns it off. I ended up putting the code in LMouseDown, and it works on all cases but pushing space on it...the Alt+Letter surprised me that it sent mouse messages.
Quote from: Roger GarstangI have some cases where I wanted a Radio button group that could also have none selected...
A group of radio buttons with none selected is a GUI faux-pas. If you want none to be selected then create a
( ) None option entry and that would be the selection. Option buttons by their nature mean "1 selection".
( I'm a stickler for a consitant GUI, sorry Roger :D )
I guess this could be an entry under "Ms. Manners of the PC".
yeah, I just didn't want that extra line. :P
They also don't gain focus when Tabbed to if none is selected.
I guess what I wanted is really a checkbox with limits of one or the other, but all botton class controls are auto in FF, so it makes it difficult to regulate things how I want.
I think you have space for it Roger, you have a tendency to use a bit more "line" spacing than necessary.. - so cram it in!
Put () NONE it anywhere in your grouping... just make it the default option and keep it hidden.
--Bob
Yeah, I always leave a little extra space. I've seen so many older apps that didn't and with font changes over the years the controls either wrap or are cut off. Good idea about hiding the control...although that would pretty much create the same effect and they still can't click it to select none. I may just switch it to Checkboxes and color them red or something.
Hmm...colors don't work on Check/Option buttons with XP Themes??? They don't show in the IDE either...with themes off or on.