Author Topic: problem with resize.e  (Read 9212 times)

chip.dip

  • Community Member
  • Posts: 28
  • Hero Points: 1
problem with resize.e
« on: October 27, 2012, 12:16:50 AM »
this macro is intended to set the size of each new window.  It does set the size but the text ends up in a smaller rectangle withing the window.

Anyone know what's wrong?

macro and screen dump attached.

Phil Barila

  • Senior Community Member
  • Posts: 745
  • Hero Points: 61
Re: problem with resize.e
« Reply #1 on: October 27, 2012, 10:55:01 AM »
What version are you using?  The last few (at least 2, probably more) have a facility to set the new window size in Tools > Options > Editing > Editor Windows.

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: problem with resize.e
« Reply #2 on: October 27, 2012, 11:19:18 AM »
can someone move this thread to the general section.

TxDot

  • Community Member
  • Posts: 38
  • Hero Points: 0
Re: problem with resize.e
« Reply #3 on: October 09, 2013, 01:25:08 PM »
I know this is an old thread but I see the same behavior as the OP but I don't see an answer. I did notice that as soon as I grab the window frame to manually adjust the size, the scrollbar disappears and the blue vertical line indicator appears (which is what the behavior should be to begin with). This is really screwy!!!

I just upgraded to SE 2011 (I know even that's old) and my old resize.e macro doesn't work as it did in SE 2007. It won't adjust the height or width correctly. It ends up making the width of the window appear as described above and won't adjust the height at all. Sigh...

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: problem with resize.e
« Reply #4 on: October 10, 2013, 05:17:54 AM »
For starters, I think the macro needs to use _mdi.p_child._MDIChildGetWindow and _mdi.p_child._MDIChildSetWindow.

The editor code in macros\moveedge.e has plenty of examples.

TxDot

  • Community Member
  • Posts: 38
  • Hero Points: 0
Re: problem with resize.e
« Reply #5 on: October 10, 2013, 01:24:00 PM »
Using _MDIChildSetWindow has resolved the display issue. Thanks!