Couple of questions?

Next
 From:  Paul (AIRGLASS)
764.1 
Hi Micheal,
A few questions:
1. Is there a way to activate the "Area" zoom window function via a hotkey?
2. I've been attemoting to add a grid size label to the end of the SidePane. I've
managed to add a textbox to the end using this code:

added to the end of SidePane.htm:

<moi:PaletteHeader id="CommandHeader" style="font-size:14px;">
</moi:PaletteHeader>
<moi:PaletteBody style="padding:2px;">
<moi:Text textid="Grid size label">
<moi:Spacer>
<input class="numericinput" binding0="numericValue = moi.grid.size">
</moi:PaletteBody>

It displays fine on the gui, but the textbox won't display the grid size and when I try to use the "period" key as a hotkey, the focus shifts to the textbox and enters a period. Is there a way to display a textbox or label showing the current grid size without the textbox accepting keyboard input? (I'm trying to set up the zoom function using . and / as hotkeys).

The new beta is looking good , no bugs yet! Thanks!

Paul
  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
764.2 In reply to 764.1 
Hi Paul,

re: Area zoom on a shortcut key - try this as the command:

script:var v = moi.ui.getActiveViewport(); if ( v ) v.interactiveViewChange('zoomarea');

That should trigger the area zoom on the viewport that the mouse is over.



re: #2 grid size label -

Change the "binding0" there to just "binding" - in the last beta I cleaned up some of the syntax a bit, this was one of the changes. Once you change that, the grid size should show up in there and be editable, but there isn't currently any way to make a numeric text input box like that not get activated when you push the decimal point.

But if all you want is a readout, then that is possible by using a different element to just display the grid size, it has to be set up to have the "binder" on it that handles reflecting properties back and forth, here's a minimal version:

<moi:PaletteHeader>
</moi:PaletteHeader>
<moi:PaletteBody>
Grid size: <span style="behavior:url(#default#PropertyBinder);" binding="innerText < moi.grid.size">
</moi:PaletteBody>


In this case the binding="innerText < moi.grid.size" sets up a one-way binding, where changes in the moi.grid.size property will funnel in and update the span's innerText property.

If I understand you right, this should get you set up!

- 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:  Paul (AIRGLASS)
764.3 In reply to 764.2 
Hi Michael,

Great! That looks like it should do it. You're right, all I wanted was a grid size readout, I'll try your suggestion out tomorrow. Thanks-- Right now it's late, need sleep..........:)

Paul
  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
764.4 In reply to 764.3 
Hi Paul, time for me to go to sleep too. I just noticed one typo above, that <span> should have a closing </span> after it.

- 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:  Michael Gibson
764.5 In reply to 764.1 
Hi Paul, quick note - I had to revert this one syntax change so in the next beta you'll have to switch your little grid readout thing to say binding0="..." instead of binding="..." .

- 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:  Paul (AIRGLASS)
764.6 In reply to 764.5 
Thanks Michael,
I'll change that when I upgrade to the July 25 beta, grid label working just fine.
A note on the scripting problem some people are having - no problems here, running
XP sp2, IE6. Everything working as advertised! Thanks again,
Paul
  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