Hello,
The way the procedures category works is it is a dynamic category, which means whenever it is clicked from the toolbox, a function is called that returns the contents of the category. Since that function is called every time the category is opened, the contents of the category can be calculated on the fly. For procedures, this means we inspect the blocks on the workspace to find out what procedure caller blocks we need to add. For your custom blocks, it is up to you how you decide which blocks to add (looking at other blocks on the workspace, consulting your own source of data, etc).
For Ahana, it sounds like you are asking how to update a "simple" (flyout-only) toolbox that doesn't have categories. Is that correct? If not, please write back with more details about your question. If it is, one approach is to listen for block change/create events and use the
API to update the toolbox when a relevant change occurs. So you'd register a
change listener, listen for create events, and if the event is relevant then update the toolbox contents however you like.
Would either of those approaches work for you? If not or if you have further questions, adding more detail about your use case and any code you've currently attempted would be really useful.
Maribeth