Window Size

Here is where you can request new features or special features.

Re: Window Size

Postby ger21 » Sat Feb 18, 2017 2:10 am

Personally, I'd much prefer to have the window remember where it was, rather than having it centered.
Centering is only better if you want it centered every time.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Window Size

Postby cncdrive » Sat Feb 18, 2017 2:14 am

I can't answer the ETA question at the moment, because it is not even decided yet if and how this will go into a release as an onscreen option, but you can already place a window anywhere you want and can size it using the constructor macro.
Place this code into the M99998.txt constructor macro file, you can find that in the UCCNC/Profiles... folder.

Code: Select all
exec.mainform.Size = new Size(400, 300);
exec.mainform.Location = new Point(50, 50);


Ofcourse adjust the XY location coordinates and dimensions values in the code as you want.

Run the UCCNC and on the appearance page uncheck the Maximize screen on startup and Apply and Save settings and close the UCCNC.
Run the UCCNC again and the macro will resize the window and will move it to the location you defined.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Window Size

Postby A_Camera » Sat Feb 18, 2017 2:35 pm

ger21 wrote:Personally, I'd much prefer to have the window remember where it was, rather than having it centered.
Centering is only better if you want it centered every time.

Exactly. It's OK as a first start after a brand new installation to start centred, even maximized, but after that it should keep the size and position I set.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am

Re: Window Size

Postby marlboro » Sat Feb 18, 2017 4:36 pm

cncdrive wrote:
Code: Select all
exec.mainform.Size = new Size(400, 300);
exec.mainform.Location = new Point(50, 50);



This worked great and was just what I was looking for in this case. Thank you.
marlboro
 
Posts: 4
Joined: Wed Feb 15, 2017 3:11 pm

Previous

Return to Feature Request

Who is online

Users browsing this forum: No registered users and 5 guests