MoI discussion forum
MoI discussion forum

Full Version: CustomUI

Show messages:  1-16  …  37-56  57-76  77-96  97-116  117-136  137-156  157-176  …  517-522

From: Frenchy Pilou (PILOU)
19 Feb 2014   [#97]
THX I will try that tomorrow! :)
From: Frenchy Pilou (PILOU)
20 Feb 2014   [#98]
hello :)

I have that when I press my LineWeb icon, image and text icon are good but... ;)
Lineweb is of course installed and works when I press Tab & type LineWeb

My 2 lines of 60 Lineweb.html file are

<moi:Spacer>
<moi:CommandButton icon="data:image/png;base64,........numerous caracters ...." onbuttonclick="LineWeb">LineWeb</moi:CommandButton>

Surely I must add something to the Commandbar.htm but what and where ? :)



PS When You press CTL + SHIFT + CLICK on the Options' Button You can open a Zoo! :D
From: Michael Gibson
20 Feb 2014   [#99] In reply to [#98]
Hi Pilou, the problem is onbuttonclick="LineWeb" - the contents of onbuttonclick are run as script code, and LineWeb is the name of a command, not script code.

Instead of that put command="LineWeb".

If you wanted to do it in a click handler with script code it would be like this: onbuttonclick="moi.command.execCommand( 'LineWeb' );"

- Michael
From: Max Smirnov (SMIRNOV)
20 Feb 2014   [#100] In reply to [#98]
Ops, my fault.

use "command=..." instead of "onbuttonclick=..."
From: Frenchy Pilou (PILOU)
20 Feb 2014   [#101] In reply to [#99]
Fabulous! Now Success is complete! Bravo! Thx both of you! :)

I have used the Michael's method, but will test the Max's method also! ;)

And I see that I have not Translated the LineWeb Command! (if possible) ;)

P I have forgotten to make a transparent image PNG! So background icon is here white!


From: Frenchy Pilou (PILOU)
20 Feb 2014   [#102]
Trying the Max line, works very fine also and some more short to type! ;)

Max method: command="LineWeb"

Michael method : onbuttonclick="moi.command.execCommand( 'LineWeb' );"


From: Max Smirnov (SMIRNOV)
20 Feb 2014   [#103] In reply to [#102]
Michael also said about "command=" method. ;)

P.S. Check this thread: http://moi3d.com/forum/messages.php?webtag=MOI&msg=6440.1
From: Frenchy Pilou (PILOU)
20 Feb 2014   [#104]
LineWeb in French! ;)
http://moiscript.weebly.com/lineweb.html




From: raytownmike (HOPPER)
20 Feb 2014   [#105] In reply to [#20]
I haven't been reading (following) this thread for sometime. Back when I did I was wondering about just how to install the script on my Mac.
Are there many new developments I should be aware of? Thanks I look forward to any responses!
From: Max Smirnov (SMIRNOV)
21 Feb 2014   [#106] In reply to [#105]
>>raytownmike
>>..how to install the script on my Mac

Hi,

1. Go to the first post in this thread and download CustomUI.1.0.mac.zip
2. Right-click the MoI app icon and choose "Show package contents". Go into drive_c/moi/ui. Backup CommandBar.htm
3. Extract CustomUI.1.0.mac.zip to drive_c/moi
From: Frenchy Pilou (PILOU)
21 Feb 2014   [#107]
Can you give me the process for a Script to the Commandbar?

Say i have this one
script:/*Loop Selection*/moi.geometryDatabase.selectLoop();

Seems ... onbuttonclick="Loop Selection">Loop Selection</moi:CommandButton>
don't work ?
From: Max Smirnov (SMIRNOV)
21 Feb 2014   [#108] In reply to [#107]
Hi Pilou

code:
<moi:CommandButton icon="..." onbuttonclick="moi.geometryDatabase.selectLoop();">Loop Selection</moi:CommandButton>

From: Frenchy Pilou (PILOU)
21 Feb 2014   [#109] In reply to [#108]
Huhu
of course if we must type all the script that is an another story! I could not find that !

Many thanks!
From: Frenchy Pilou (PILOU)
21 Feb 2014   [#110]
Tested! Bravo!
Button of the BarCommand for a script (not a Command) works very fine!
From: raytownmike (HOPPER)
21 Feb 2014   [#111] In reply to [#106]
I get to the final step and not sure what to do because to use the words Extract CustomUI.1.0 what does that mean.
For example: Replace something from existing contents? Sorry
From: Max Smirnov (SMIRNOV)
21 Feb 2014   [#112] In reply to [#111]
3. Extract files from CustomUI.1.0.mac.zip to drive_c/moi
From: Michael Gibson
21 Feb 2014   [#113] In reply to [#112]
And on the mac to get to the drive_c/moi directory, right-click on the Moi app icon and choose "Show package contents" on the menu that comes up. Then inside of there you will be able to find drive_c/moi.

- Michael
From: raytownmike (HOPPER)
21 Feb 2014   [#114] In reply to [#113]
I am find where I need to go c/moi its do I replace current contents add to or what? Sorry
From: Michael Gibson
21 Feb 2014   [#115] In reply to [#114]
Hi mike,

> do I replace current contents add to or what? Sorry

You need to add the contents of the zip there. There will be one file that will be overwritten, then rest are added files.

So inside the zip are 3 directories: "objects", "snapshots", and "ui".

The "objects" and "snapshots" directories will be new - MoI does not already have any directories there of those names, so just move both of those there under drive_c/moi so that you now have directories drive_c/moi/objects and drive_c/moi/snapshots.

MoI already has a /ui folder, and you want to merge the contents of this new one onto the existing ui folder, not just completely replace the entire ui folder.

There will be one file /ui/CommandBar.htm that should get overwritten by what is in the .zip - the other things in the .zip should just be added to the ui folder.

Hope that helps!

- Michael
From: raytownmike (HOPPER)
21 Feb 2014   [#116] In reply to [#115]
Thanks Michael. Isn't it amazing how much we take installers for granted!

Show messages:  1-16  …  37-56  57-76  77-96  97-116  117-136  137-156  157-176  …  517-522