Hi Everyone
Would it be worth while to include a users own component folder available from within the Flowcode environment. You get to choose where to store your own components, but I think having one user location/menu that is available from the working environment would be very useful. That is to say, instead of having to look for the component you have just added, it sort of gets muddled up with the good stuff. It would be better to keep them in on separate place, all together under a Menu called - User Components, or maybe called - Under Development
Regards
Dave
User Component Folder as Seperate Menu List
Moderator: Benj
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: User Component Folder as Seperate Menu List
Hello Dave,
The Components toolbar is driven using XML so this is currently possible for you to do.
Go into the "Flowcode 7\components" folder and find the "cmpntcats.xml" file and save to your desktop. Open the file from your desktop using a text editor.
Before the final </root> add your own category and sub categories. I've provided a simple example below.
Once you're done with the file, copy back to the components directory.
If you want to add your own icon then create a 24 x 24 pixel .png file named "User.png" and save to the "Flowcode 7\components\catimgs" folder. Otherwise you can browse the folder if you want to re-use one of the existing icons.
Once you have created your new component category you can then choose to save to this when exporting components.
It should be possible for us to add new "User" category with and "Development" and "Released" sub-categories that are hidden on the toolbar unless you start adding components to these categories.
If you want to try the attached then let us know how you get on and I'll check this in so it's included in the next update release.
The Components toolbar is driven using XML so this is currently possible for you to do.
Go into the "Flowcode 7\components" folder and find the "cmpntcats.xml" file and save to your desktop. Open the file from your desktop using a text editor.
Before the final </root> add your own category and sub categories. I've provided a simple example below.
Code: Select all
<category name="User" hint="" icon="$(cmpntdir)\catimgs\User.png" tooltip="" >
</category>
If you want to add your own icon then create a 24 x 24 pixel .png file named "User.png" and save to the "Flowcode 7\components\catimgs" folder. Otherwise you can browse the folder if you want to re-use one of the existing icons.
Once you have created your new component category you can then choose to save to this when exporting components.
It should be possible for us to add new "User" category with and "Development" and "Released" sub-categories that are hidden on the toolbar unless you start adding components to these categories.
If you want to try the attached then let us know how you get on and I'll check this in so it's included in the next update release.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: User Component Folder as Seperate Menu List
Hi Ben
That's brilliant. Well, it took me longer to find an ICON that I liked than it took to set up. Nice looking feature though, my own special list of components, I like it a lot.
Thank you ever so much. You are a star.
Kind Regards
Dave
That's brilliant. Well, it took me longer to find an ICON that I liked than it took to set up. Nice looking feature though, my own special list of components, I like it a lot.
Thank you ever so much. You are a star.
Kind Regards
Dave
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: User Component Folder as Seperate Menu List
Oh,
I forgot to mention, you need to add the following - 'forward slash', to make it load the component menu correctly as shown:
Dave
I forgot to mention, you need to add the following - 'forward slash', to make it load the component menu correctly as shown:
</category>name="User" hint="" icon="$(cmpntdir)\catimgs\User.png" tooltip="" />
</category>
</root>
Dave
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: User Component Folder as Seperate Menu List
Dave,
The quote you posted does not look like it is valid XML. Could you check you actual file because this should not work.
Best regards,
Jac
The quote you posted does not look like it is valid XML. Could you check you actual file because this should not work.
Best regards,
Jac
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: User Component Folder as Seperate Menu List
Hi Jac
Sorry, I just added the forward slash to the file I had downloaded. However, the file that is installed and working in FC7 directory is as follows:
Regards
Dave
Sorry, I just added the forward slash to the file I had downloaded. However, the file that is installed and working in FC7 directory is as follows:
It's working fine for me, really pleased with it. Simple things make me happy.</category>name="User" hint="" icon="$(cmpntdir)\catimgs\User.png" tooltip="" />
</root>
Regards
Dave
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: User Component Folder as Seperate Menu List
Regarding those slashes, just for info, sub-categories can be setup ...
Code: Select all
<category Catxxxx >
<category SubCatxxx />
<category SubCatxxx />
</category>
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: User Component Folder as Seperate Menu List
Hi LeighM
Thank you, great idea. That's defiantly worth considering.
Regards
Dave
Thank you, great idea. That's defiantly worth considering.
Regards
Dave