How to setup a .HTM file for a custom command to allow entering a text value
All  1-5  6-7

Previous
Next
 From:  Michael Gibson
11712.6 In reply to 11712.5 
Hi Frederick,

re:
> 1.
> Is it possible to show/hide an element like the check button, based on the current value of the drop-down combo?

Yes, I've attached an example that hides the text input table row when the drop-down has a value == 'export'.

It does this by adding an onchange="" event handler to the dropdown and also an Initialize() function.


> 2.
> It seems that MoI reads the custom commands on startup, as edits I make don't seem to take effect until I open/close Moi.

It doesn't read them on startup but when it loads it, it stores it in memory so the next run doesn't load it from disk again.

See here for a moi.ini setting which will disable the caching:
https://moi3d.com/forum/index.php?webtag=MOI&msg=6727.2

- Michael
Attachments:

  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:  fcwilt
11712.7 In reply to 11712.6 
Hi Michael,

With your help on HTML I am very please with how things are going.

I have "visible" sets working well, with the UI providing for multiple sets using the text entry field and the check button selecting an option to keep currently visible objects visible on set restore, regardless of their being a "member" of the set.

I am having a blast - things that in the the past have been tedious are getting so much easier.

Frederick
  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

 

 
 
Show messages: All  1-5  6-7