Customize my Default Topic (for a new Topic)

  • 2
  • Idea
  • Updated 4 years ago
My perfect new Topic to see when I press the Insert button, would be Rounded Rectangle shape, with a 0% Progress Icon, with a specific font, and font size.

I have learned how to customize the Shape, Font and Font Size, but I can't figure out how to include the 0% Progress Icon.

Please help me!

I am a Project Manager, and I create many many topics on all of my Maps. I start out with a pretty chunky Map Part, which contains everything just the way I like it, but throughout the project, I add many more Topics, and I'd like them to be formatted the same way, so that I don't have to always add the Progress Icon to every Topic I create.

I've already created a customized Topic in my Map Parts, but it takes more time to go get that one from the list, then to create a new one and add the Progress icon.

Thanks in advance for your help. I think I've asked this question some time back, so please forgive me if there are no new solutions yet.

... Connie
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
  • yearning for knowledge

Posted 6 years ago

  • 2
Photo of Brittney Mazzetta

Brittney Mazzetta

  • 1981 Posts
  • 68 Reply Likes
Hi Connie. Thank you for your post. I am going to change your question to an idea so that our product team can take this into consideration for future releases.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
I take it this means that it is not do-able at this time :( But, as they say... good things some to those who wait!

Thanks Brittney!
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Hello Connie

This is doable with a MindManager script. But because of the way scripts work, it will only work for an hour at a time. It waits in the background for a new topic to be added, then sets 0% complete and changes the shape. After an hour, it quits.

To use it, copy and paste the code between the lines below into a new text file called "Magic Wand.MMBas". Then save and double-click on this file to start MindManager and the script editor. Click the green "Run" arrow in the script editor window, and it will sign on and begin to wait for you to insert new topics in a map.

The source code is below, so if you are (rightly) concerned about security, everything that it does is transparent.

It comes without any guarantees and is not an official solution. While it is running, you cannot use the scripting feature for anything else.

' -------------------------------
' Magic Wand script - modify new topics for 1 hour at a time
Option Explicit

Dim WithEvents m_Event As Event
Dim m_DocumentObject As DocumentObject
Dim m_Topic As Topic

Sub Main()

MsgBox("Magic Wand will work for 1 hour...")
Set m_Event = Events.AddDocumentEvent(MmDocumentEventFlags.mmEventFlagObjectAdded, False, True, Nothing)
Wait 3600 ' wait for events for 1 hour max
' Stop handling events
m_Event.Enabled = False
Set m_Event = Nothing
MsgBox("Magic Wand has stopped")

End Sub

Sub m_Event_Fire(ByVal i_EventFlag As Long, ByVal e_Time As MmEventTime, ByVal m_Object As Object, ByRef p_Extra As Variant)

On Error Resume Next
Set m_DocumentObject = m_Object
If Err.Number = 0 Then
If m_DocumentObject.Type = mmDocumentObjectTypeTopic Then ' new topic added
Set m_Topic = m_DocumentObject
If m_Topic.IsDefaultTopicText Then ' new topic
m_Topic.Task.Complete = 0
m_Topic.Shape.SetTypes(mmStandardTopicShapeRoundedRectangle,mmFloatingTopicShapeRoundedRectangle,mmCalloutTopicShapeRectangleBalloon)
End If
End If
End If

End Sub
' -------------------------------
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Wow, thanks so much Nick! I am going to try it. At this time I am not using any scripts at all, so it won't be a problem to not use the scripting feature for anything else.

Does this work in MM 9? I am sadly thinking it might not, since I can't find a reference to the Magic Wand or Scripting, in MM9 help :(

Or, can you tell me where to find those features?

Thank you VERY much!
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Hello Connie

Yes, it should work just the same on MindManager 9.

In MindManager 9, you have to turn on the Developer tab in File > Options > View > Developer Ribbon Tab. The macro editor is then accessible in the Developer tab. In MindManager 2012, the Macro editor is accessed in the View tab. Both function virtually identically.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Thanks Nick! I see the Macro Editor, but I don't see the Magic Wand.
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Connie - "Magic Wand" is only the name of this little macro, and is not a MindManager feature.

If you have opened the Macro editor window, then copy and paste the code above (between the lines of dashes), replacing the existing "Sub Main()... End Sub" of the default empty macro. Then click the green arrow on the Run button. If it works, then you can save this macro to a disk file for later re-use.
If this bulletin board allowed attachments, it would be easy as I could attach the file, but unfortunately it doesn't.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Never mind!! I see it now!

Ok, so I copied and pasted your script into the Macro Edit, and then when I click Run, it says, Magic Wand will work for 1 hour.

And it works !!!!

Awesome, thanks so much Nick!
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Today it the first day I am using the new Magic Wand macro Nick, and it has totally changed my experience of using MindJet, for the better! I already value and enjoy MindJet, but this one thing has been a "thorn in my side."

It is such a pleasure to be able to add a Topic exactly as I want it to be.

Thank you again. Hopefully I can return the favor one day (although your skills are SO MUCH better than mine!) :)
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Nick! It's me again! I just wanted to thank you again, the macro is working beautifully!
Photo of Alex Gooding

Alex Gooding, Champion

  • 826 Posts
  • 207 Reply Likes
You probably don't need an alternative now that Nick has supplied his Magic Wand macro, but you comment that you ceated a customised topic but that it takes more time to get that one from the Map Parts list then to create a new one.

One way around this is to go to the Map Parts tab, open the Favorites folder and save the customised topic there. If you leave the Map Parts tab open at Favorites (and assuming you don't have too many other parts stored there) it should be easy to access.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Thanks Alexsg! I had tried doing it that way, but I keep my side panel closed most of the time so that I can see more of my map, and when it is open, I usually have it on PowerMarkers.

Do you know how to arrange Map Parts? One of the reasons it didn't work well for me is because my Favorite Topic is at the bottom of the list and I had to scroll each time.

And thanks for the suggestion!
Photo of Alex Gooding

Alex Gooding, Champion

  • 826 Posts
  • 207 Reply Likes
Hi Connie,

I see your point regarding the side panel.

However, when you say your favourite topic is at the bottom of the list, do you mean that it is at the bottom of the general Map Parts folder, or at the bottom of the Favorites folder? If you mean the latter, then you must have a lot of "favourite topics"!

If this is the case, then as you say you can't readily sort map parts, either in the general folder or the Favorites one. They are pasted in either folder in the order they are created, starting with the map part that was created first.

One way around this might be to create an empty map, go to the Map Marts tab and add all the topics that currently appear in Favorites to the map. Then delete ALL the map parts from the Favorites folder and paste them back from the map in the order that you want them to appear in this folder, starting with the topic that you discuss here. This should now appear at the top of the list in the Favorites folder.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Hi Alex! I only have a few Favorites, but enough to make me have to scroll, unfortunately.

But thanks for the idea about creating the empty Map with the favorites, and then deleting and then adding them back in the desired order. That is a great idea!

Now that I have Nick's Magic Wand, the Topic is not an issue now, but I do have other Favorites that I'd like to have near the top.

Thanks again!
Photo of Alex Gooding

Alex Gooding, Champion

  • 826 Posts
  • 207 Reply Likes
Hi Connie. Another simpler alternative to the problem of the order in which favourite map parts appear might be to create another Map Parts folder and place your "favourite Favorites" there in the order you want.

Unfortunately while the current folders are sorted by name, additional folders are always placed at the bottom of the list and can't be moved (at least I can't find a way to move them). However this shouldn't be too much of a problem unless you have a lot of folders. Alternatively you can create sub-folders within the Favorites folder.

You could use this approach to create a handful of folders, with each folder containing map parts that are relevant to particular types of maps or stages in your mapping process.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Hi Alex! That was a great idea! I have several Maps that I use as Templates, which I have now moved to a subfolder of Favorites called Templates and I created a sub-folder called Topics, in case I create more custom Topics.

Thanks so much for the tip!
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Hello again Mindjet buddies Nick and Alex :)

I am still using MindJet 9, which is working great, and meets my primary needs. I would upgrade, but the newer versions don't yet offer certain features that I need, so for now, Version 9 is my best friend.

Is there a way to set the Macro to run on program startup?   I use the Macro regularly to make my custom task, and I've set it to run for 4 hours, which works. (8 hours doesn't work for some reason, but 4 does, and I am satisfied)  But, I would love for the Macro to load up on startup, instead of me having to open the Macro Editor and Running the Macro from there.

Your ideas would be appreciated.

Thanks! ... Connie


Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Hello Connie

I don't think there is a built-in feature for this, but there might be a geeky solution. Older versions of MindManager could have "event macros" defined in the system registry, and will recognise a key at:

HKLM\Software\Mindjet\MindManager\x\Event Macros\OnApplicationStarted\yyy

where "x" is the MindManager version (e.g. "9") and "yyy" is the name of an extension, e.g. "MyStartupMacro". In this key, there should be a text value called "Path" which contains the path to the .mmbas file.

I don't believe this is an officially supported feature, and I have not used it in a long time. The usual caveats apply when editing the registry - if it all goes horribly wrong then you could be looking at a system restore. So this is at the user's risk, and Mindjet Tech Support might not be overly sympathetic :)

Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Hi Nick, Thanks for the info!   I checked and I don't have \Event Macros\ but I do have \Macro\ and in there are two defined Macros:

HKEY_LOCAL_MACHINE\SOFTWARE\Mindjet\MindManager\9\Macro\{878E97B7-1E07-4423-BA67-E1C3E35474AE}

Path = C:\Program Files\Mindjet\MindManager 9\Generic Smart Map Part\RSS\ENU\scripts\MakeMapPart.mmbas

HKEY_LOCAL_MACHINE\SOFTWARE\Mindjet\MindManager\9\Macro\{BA6FADD7-BBBB-421A-8234-5BEE7CC2460D}

Path = C:\Program Files\Mindjet\MindManager 9\Map Converter\ENU\Scripts\MapConverter.mmbas

Would this be an occasion where I would create a new key?  Or since \Event Macros\ is not there, I am outta luck?   :)

Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Hello Connie

Well, I don't know for sure but it should not do any harm to create the key and add the Path value - assuming you have the rights to edit HKLM.
Photo of Connie Zimmermann

Connie Zimmermann

  • 28 Posts
  • 0 Reply Likes
Thanks Nick. I think I now just need to find out what MindManager 9 will be looking for in that key.    For example, should I create:  Event Macros\OnApplicationStarted   since it doesn't have a key called Event Macros?    Will it even look at OnApplicationStarted?  I'll do some digging around to see if I can find some MM9 documentation about this.   Thanks again!!!