Home > Community > Forums > Custom IC SKILL > Apply envSetVal to current window

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Apply envSetVal to current window 

Last post Fri, Sep 18 2009 8:20 AM by stuso. 3 replies.
Started by stuso 18 Sep 2009 05:32 AM. Topic has 3 replies and 2025 views
Page 1 of 1 (4 items)
Sort Posts:
  • Fri, Sep 18 2009 5:32 AM

    • stuso
    • Top 100 Contributor
    • Joined on Mon, Nov 3 2008
    • Posts 77
    • Points 1,315
    Apply envSetVal to current window Reply

    Hi all,

    I'd like to create a skill procedure to implement:

    envSetVal( "layout" "displayStretchHandles" 'boolean t )

    it seems that i need  to apply this to the current window, so i guess i need to use:

    geGetWindowCellView()

    I'm wondering how do i apply my env setting to a particular window?

    I'm assuming the windiow will be the current layout window as i'll eventually be adding the procedure to a drop down menu, therefore you'd need to have clicked in said window therefore making it the current window.

    Thanks

    Stu

     

     

     

     

     

    • Post Points: 5
  • Fri, Sep 18 2009 5:54 AM

    • stuso
    • Top 100 Contributor
    • Joined on Mon, Nov 3 2008
    • Posts 77
    • Points 1,315
    Re: Apply envSetVal to current window Reply

     I've just noticed that entering:

    envSetVal( "layout" "displayStretchHandles" 'boolean t)

    does seem to  then turn on stretch handles to any new layouts opened from that point on.

     

    • Post Points: 20
  • Fri, Sep 18 2009 6:55 AM

    Re: Apply envSetVal to current window Reply

    Stu,

    hiGetCurrentWindow()~>displayStretchHandles=t

    Does what you want. Essentially these display cdsenv vars are used to seed window properties when you open a new window.

    Regards,

    Andrew.

    • Post Points: 20
  • Fri, Sep 18 2009 8:20 AM

    • stuso
    • Top 100 Contributor
    • Joined on Mon, Nov 3 2008
    • Posts 77
    • Points 1,315
    Re: Apply envSetVal to current window Reply

     Hi Andrew, thanks thats great. 

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by stuso at 18 Sep 2009 05:32 AM. Topic has 3 replies.