Recent

Author Topic: Console position question  (Read 500 times)

440bx

  • Hero Member
  • *****
  • Posts: 5457
Console position question
« on: May 17, 2025, 07:03:16 am »
Hello,

I figured I'd try the new console position settings now available in the Run parameters.

Normally, I use the console window's properties which means the O/S takes care of the placement and dimensions of the window.

In attachment A, the window is displayed by the O/S based on dimensions set using the window properties. It also shows the values in effect.

Attachment B shows the values specified for Left/Top, Width/Height and Column/Rows.  The values were set to the same as those used by the O/S.

Attachment C shows the resulting window after setting the values.

My question is: why do I get such a tiny window ?  Even if it thought the values were in pixels, 779 pixels would be wider than that.

Thank you for your help.


 
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11338
  • Debugger - SynEdit - and more
    • wiki
Re: Console position question
« Reply #1 on: May 17, 2025, 11:07:12 am »
The values are sent to the Windows API.
But Windows does not always react as expected.

I have no idea why.

440bx

  • Hero Member
  • *****
  • Posts: 5457
Re: Console position question
« Reply #2 on: May 17, 2025, 11:17:20 am »
The values are sent to the Windows API.
But Windows does not always react as expected.

I have no idea why.
Fair enough.  Thank you Martin.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

CM630

  • Hero Member
  • *****
  • Posts: 1402
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Console position question
« Reply #3 on: May 17, 2025, 01:26:11 pm »
I think I have seen replacents of the Widows console, maybe some of them will work.
Visual Studio has a debug panel, it is (one of) the thing(s) that I miss most in Lazarus.
« Last Edit: May 17, 2025, 01:29:07 pm by CM630 »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

440bx

  • Hero Member
  • *****
  • Posts: 5457
Re: Console position question
« Reply #4 on: May 17, 2025, 01:50:49 pm »
I think I have seen replacents of the Widows console, maybe some of them will work.
I use a replacement (TCCLE) but, I don't have it set up as the default console.  IOW, Windows does not start TCCLE when it needs a console (it could be set up to do it but, I'd rather keep it unchanged and run it manually.)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018