User Component Folder as Seperate Menu List

Please add any feature requests for Flowcode version 7 here

Moderator: Benj

Post Reply
johnsondav
Posts: 188
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 86 times
Been thanked: 186 times
Contact:

User Component Folder as Seperate Menu List

Post by johnsondav »

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 avatar
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

Post by Benj »

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.

Code: Select all

  <category name="User" hint="" icon="$(cmpntdir)\catimgs\User.png" tooltip="" >
  </category>
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.
cmpntcats.xml
(4.26 KiB) Downloaded 237 times
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.

johnsondav
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

Post by johnsondav »

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. 8)

Thank you ever so much. You are a star.

Kind Regards
Dave

johnsondav
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

Post by johnsondav »

Oh,

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

kersing
Valued Contributor
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

Post by kersing »

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
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

johnsondav
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

Post by johnsondav »

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:
</category>name="User" hint="" icon="$(cmpntdir)\catimgs\User.png" tooltip="" />
</root>
It's working fine for me, really pleased with it. Simple things make me happy.

Regards
Dave

User avatar
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

Post by LeighM »

Regarding those slashes, just for info, sub-categories can be setup ...

Code: Select all

<category Catxxxx  >
   <category  SubCatxxx  />
   <category  SubCatxxx  />
</category>

johnsondav
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

Post by johnsondav »

Hi LeighM

Thank you, great idea. That's defiantly worth considering.

Regards
Dave

Post Reply