Thread: Add more flags
View Single Post
  #6  
Old 06-28-2023, 10:48 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,026
That didn't end up being as bad as I thought it would. More than a couple hours but not too much more (if you want to buy a few more licenses to fund the development and provide some motivation to keep at it, feel free to do so ). Your suggestion about the database versioning was helpful. I recalled that such a capability exists in UR, but it hadn't been used in over 12 years, so I had to refresh my memory.

I expanded the system to have 32 flags defined by default. The additional flags do not show in the right-click menu because it looks a bit jarring, and it would affect the tear-off toolbar (which can be created by dragging the sizer at the top of the Flag popup menu). They do show in the
1) Item -> Flag submenu
2) Flag menu that can be shown in the tree via Ctrl+Shift+M
3) Flags dialog
4) drop-downs in the Item Attributes pane, Advanced Search grid, and on forms
5) keyboard shortcuts can be defined for them via Tools | Customize | Keyboard | Category -> Item

You can actually add more if you really want them (which will not show in menus but will be functional and available via #3 and #4) by running commands like this via SQLite:
Code:
INSERT INTO Status(StatusID,Name,StatusBlob,UncompressedSize,Color) VALUES (1026,'Flag 33',NULL,0,NULL);
The new flags do not define a flag icon, but this, as well as the colors and fonts and hidden behavior, can be customized via the Flag Properties dialog.

This implemented is in the latest download (v6.3.0.2).
Reply With Quote