PlanetSquires Forums

Support Forums => General Board => Topic started by: Ivan Iraola on November 13, 2009, 11:54:39 PM

Title: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Ivan Iraola on November 13, 2009, 11:54:39 PM
EDIT: PLEASE NOTE THAT THESE FUNCTIONS HAVE BEEN ADDED TO THE STANDARD FF3 DISTRIBUTION STARTING WITH V3.04 http://www.planetsquires.com/protect/forum/index.php?topic=2107.0)


These are some extra wrappers to use Scroll Bars, Track Bars and Up-Down controls.

Unzip and copy the folders to: ...\FireFly Visual Designer\CodeStore\PowerBASIC\FireFly_Functions
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Rolf Brandt on November 14, 2009, 04:35:48 AM
Excellent!

Thank you for that contribution to the Functions Library. Shows once more what a powerful tool the Functions Library (and thereby FF3) is.

Rolf
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Paul Squires on November 14, 2009, 12:48:45 PM
Wow! Thanks Ivan. Very nice addition to the Library.

(You need to rename the extension from .txt to .inc for the FF_TrackBar_SetToolTips)
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: José Roca on November 14, 2009, 01:05:47 PM
 
These are my wrappers with just an "FF_" added. Hope he is not going to duplicate all of them.
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Ivan Iraola on November 14, 2009, 01:36:00 PM
Quote from: Jose Roca on November 14, 2009, 01:05:47 PM

These are my wrappers with just an "FF_" added. Hope he is not going to duplicate all of them.

No I will not, I just added these controls since they are in the FF3 Workspace and have no wrappers, just to keep things consistent.

I have fixed the file and included a note mentioning I got them from you. I hope I don't get sued  ;D
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Marc van Cauwenberghe on November 14, 2009, 01:52:53 PM
Very nice Ivan,

Just 2 observations:
I would never add extra FF_ functions to the original Firefly folder. One will not know the difference between those that shipped with firefly and those added by anyone else. In this case here I would have made a folder named Jose_Functions or Shared_funtions or something else. I would also use JR_ or SF_ as a prefix.
Although the info.txt is great it will get lost in the folder if you copy it. I would make sure the field 'Author' is filled in and other details like 'Website' (pointing to josé)

Hope this will not get me into trouble because I really like the additions.

Marc
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Rolf Brandt on November 14, 2009, 02:00:54 PM
I feel the same way, Marc. I had put them in Custom folder.

Rolf
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: John Montenigro on November 21, 2009, 03:03:49 PM
The .INCs in the zipfile have identical names to those supplied in the FF3 install.
Even if I install them to a separate folder, how do I avoid confusion when coding?

IOW, when looking at my source code and I see FF_ScrollBar_GetPos, how do I know if I'll actually be executing code from the
"...PowerBASIC\FireFly_Functions\Custom\ScrollBar\" folder
rather than the
"...PowerBASIC\FireFly_Functions\ScrollBar\" folder?

Was the suggestion for adding a prefix intended for the folder, or for all the .INC files in the Custom folder?
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Rolf Brandt on November 21, 2009, 03:12:47 PM
QuoteI had put them in Custom folder.
John,

that comment is obsolete since Paul included these files in version 3.04. See also this thread:
http://www.planetsquires.com/protect/forum/index.php?topic=2107.0 (http://www.planetsquires.com/protect/forum/index.php?topic=2107.0)

Rolf
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Paul Squires on November 21, 2009, 03:27:26 PM
Also, you really should be creating your own folders to be putting your custom functions in. You should leave the FireFly Functions folders alone because those are the folders that I update with new functions and I wouldn't want them to overwrite anything that you may have entered.
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: John Montenigro on November 21, 2009, 03:43:34 PM
OK, wow, timing IS everything! I had installed 3.04 first, then found this thread...

OK, so I will leave alone the entire branch of:  "...\CodeStore\PowerBASIC\FireFly_Functions\"

Is this the right place to add the SQLitening functions, or should that folder be up one level (or elsewhere)?
"...\CodeStore\PowerBASIC\SQLitening\"

And my own .INCs would go in "My Snippets", right?
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Marc van Cauwenberghe on November 21, 2009, 03:52:54 PM
You got it, that folder should indeed be one level up.
I have one just like you. I have 'SQLitening'; 'My Functions'; 'Global functions'; 'Internet Snippets' on the same level as 'Firefly_functions'

Marc
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Paul Squires on November 21, 2009, 03:55:08 PM
Quote from: John Montenigro on November 21, 2009, 03:43:34 PM

And my own .INCs would go in "My Snippets", right?


No necessarily. You could put functions there that you have designed to act as Snippets, or you could put your functions in a totally different folder.... such as "JohnM Functions" or "My Super Cool Wicked Fantastic Functions".

Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: John Montenigro on November 21, 2009, 05:05:39 PM
OK, thanks for that info. I've got the folders straightened out.

Now about the .INC files... Hmm, to preserve this topic, I'm going to start a separate thread...
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Jean-pierre Leroy on November 23, 2009, 05:03:17 PM
Paul,

To avoid any confusion more the newcomers, I suggest either ...

- To delete this thread (if Ivan don't mind)
or
- to add a mention at the beginning of this thread to precise that theses functions are now included in FF3 starting with version 3.04 (see http://www.planetsquires.com/protect/forum/index.php?topic=2107.0 (http://www.planetsquires.com/protect/forum/index.php?topic=2107.0))

Just my 2 cents
Jean-Pierre
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Ivan Iraola on November 23, 2009, 05:15:46 PM
I agree, since those functions are now part of the distribution, having this thread might confuse some people.
Title: Re: Extra FF_Functions (ScrollBar, TrackBar, Up Down)
Post by: Paul Squires on November 23, 2009, 05:54:53 PM
Thansk guys, I have modified the original post in this thread.