Home > Community > Forums > Custom IC SKILL > Resize 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: *

 Resize Window 

Last post Wed, Mar 12 2008 4:59 AM by archive. 1 replies.
Started by archive 12 Mar 2008 04:59 AM. Topic has 1 replies and 1650 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Mar 12 2008 4:59 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Resize Window Reply

    Hello,

    Is it possible to resize a window in cadence with skill?
    This is what I have now:

    windowsid = hiGetCurrentWindow()
    hiResizeWindow(window(windowid) list(0:0 1400:1050))

    The problem is that the hiGet function resends the string: window:19
    and the windowid needs to have 19 instead of window:19.

    Somebody who can help?

    Thnx!
    Steven


    Originally posted in cdnusers.org by sae
    • Post Points: 0
  • Wed, Mar 12 2008 5:15 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Resize Window Reply

    You can pass the return value of hiGetCurrentWindow() directly to hiResizeWindow. hiGetCurrentWindow() returns a window Id, and that's what the resize window is expecting. The window() function is used to convert window _numbers_ to window Ids, and so is not needed here.

    Perhaps it's because you have windowsid on the first line, and windowid (no s) on the second?

    In other words, doing:

    windowid = hiGetCurrentWindow()
    hiResizeWindow(windowid list(0:0 1400:1050))

    should do the job.

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
Page 1 of 1 (2 items)
Sort Posts:
Started by archive at 12 Mar 2008 04:59 AM. Topic has 1 replies.