Author Topic: Setting up slickedit for dual monitors  (Read 4714 times)

vivekian

  • Community Member
  • Posts: 10
  • Hero Points: 0
Setting up slickedit for dual monitors
« on: February 29, 2008, 05:26:45 pm »
Hi,

I have a dual monitor setup and run Slickedit across both windows. Whenever a new file is loaded, a new window opens up which splits across both the screens. Instead I would like it to open up on one monitor and cover the screen there and the next window which opens up on the other side. Is there a way to set it up so that it happens for each file load. I just started using Slickedit so forgive my ignorance.

Thanks in advance,
vivekian

vivekian

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: Setting up slickedit for dual monitors
« Reply #1 on: March 06, 2008, 01:38:57 am »
Is this possible with Slick-C programming ?

mikesart

  • Community Member
  • Posts: 56
  • Hero Points: 11
Re: Setting up slickedit for dual monitors
« Reply #2 on: March 06, 2008, 09:53:56 pm »
I used to use the macro below for resizing windows when they were opened before that feature was added. I think you could add a static variable in there and modify the x,y parameters instead of the width I was tweaking. I believe the macro below originated from this thread:

http://community.slickedit.com/index.php?topic=348.0

Probably doesn't help all that much but hopefully it's enough to get you started...
 -Mike

Code: [Select]
_command void mikesart_resize() name_info(','VSARG2_REQUIRES_MDI)
{
   int x,y,width,height;

   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,width,height);
   _mdi.p_child._MDIChildSetWindow(x,y,950,height);
}

void _buffer_add_resize()
{
   if (def_one_file != '')
   {
      mikesart_resize();
   }
}

vivekian

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: Setting up slickedit for dual monitors
« Reply #3 on: March 07, 2008, 04:38:44 pm »
Hey Mike,

Thanks a bunch.
I will play around with this for a while and see what happens.

vivekian