I tried Graeme's suggestion (THANKS GRAEME!!!) and got this:
00001 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/cpn/CPN_svc.c 0 0
00002 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/cpn/CPN_shell.c 18 0
00003 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/cpn/CPN_tstree.c 36 0
00004 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/dbase/DBS_fileio.c 54 0
00005 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/adc/adc08D1500.c 72 0
00006 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/utils/GN_background.c 108 -138
00007 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/dbase/DBS_capture.c 126 -276
00008 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/ddr/captSem.c 144 -414
00009 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/RT32/DmaDSPA.asm 162 -552
00010 new buffer /home/glm/Projects/ptdev.chris/ptdev/rkctshell/mx/DL_obj.c 180 -690
Not to state the obvious but the negative numbers appear wrong to me :-)
Here's the code I ended up with using after much pulling of hair and googling... one of the validity checks needs to run to prevent a "This property or method is not allowed on this object" error.
#include "slick.sh"
void _buffer_add_set_window_pos(int buf_id,_str buf_name,int buf_flags = 0)
{
int x=0,y=0,w=1,h=1;
if (_no_child_windows()) {
return;
}
if (_mdi.p_child.p_window_state :!= 'N')
{
message('This operation is only supported on normalized windows.');
return;
}
_mdi.p_child._MDIChildGetWindow(x,y,w,h);
say('new buffer ' :+ buf_name :+ ' ' :+ x :+ ' ' :+ y);
//_mdi.p_child._MDIChildSetWindow(100,100,w,h);
}
I'll try checking for a negative value and clearing it.