Blue Flask alternative to access MoI_v5_API_...

Next
 From:  bemfarmer
11647.1 
Just installed the new Feb 8 beta. Very nice. The Alert boxes (e.g. for elastica and logspiral help ?), are much more readable.

So rather than modifying ui > SidePane.htm again, Modification by addition was made to ui > HelpMenu.htm, the flyout portion of the MoI Help ? button at the bottom right corner.
This avoids using up a valuable space in the sidepane edit menu, next to History.
This experimentation was done on the old Beta, to avoid messing up the new Beta.
Re-using Burr's shellExecute code, the modified HelpMenu.htm is as follows:

code:

<html>
	<body class="MenuBody">
		<moi:FlyoutHeader />
		
		<moi:MenuItem onclick="moi.ui.createDialog( 'About.htm' );"><moi:Text textid="About menu item"/></moi:MenuItem>
		
		<moi:MenuItem onclick="moi.filesystem.shellExecute( moi.filesystem.getAppDataDir() + 'MoI_API\\MoI_v5_API_Documentation.htm' );"><moi:Text textid="About menu item"/></moi:MenuItem>
	</body>
</html>



I was unable to locate the moi:Text textid="About menu item", so the second "About MoI" line, in the flyout menu, is the link to the MoI_v5_API_Documentation htm.
And so was unable to show "About MoI-v5_API..." as a selection.

- Brian

EDITED: 9 Feb by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11647.2 In reply to 11647.1 
Hi Brian,

re;
> I was unable to locate the moi:Text textid="About menu item"

The <moi:Text textid="id"> element is for translatable text. It will look up that text id in the current language's string table.

The string tables are *Strings.txt files located in the ui subfolder.

So for this one you can find it in EnglishStrings.txt:

About menu item=About MoI

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
11647.3 In reply to 11647.2 
Thank you Michael.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
11647.4 
None of these API Documentation access changes are needed for normal CAD use of MoI.
It might be beneficial to script programmers.

At work, I added another line to ui > EnglishStrings.txt, line 224 +/-:

API menu item=API v5b Documentation

Also, in the modified ui > HelpMenu.htm, change the second "About menu item" to "API menu item"

In the Help flyout menu, a second text line will now appear with this menu item title.

For translations, another one line addition could also be done to the corresponding language string. e.g. FrenchStrings.txt, SpanishStrings.txt, etc., (I think),
at about line 225.
(My very poor suggestion: API menu item=Au Sujet de API)
(Or maybe add in the word "Documentation" in French???)
(Or something else?...)

- Brian

EDITED: 10 Feb by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All