FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Width of border dialog
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Width of border dialog
Posted: Fri Jul 18, 2008 11:13 AM
Hi,

What value do have to use in GetSysMetrics() to return the thickness of dthe dialog-border?



Thanks,
Marc
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Width of border dialog
Posted: Fri Jul 18, 2008 11:36 AM

Marc,

Try with:

define SM_CXDLGFRAME 7

define SM_CYDLGFRAME 8

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Width of border dialog
Posted: Fri Jul 18, 2008 01:38 PM
Antonio,

Thankt that is correct. The problem why I thought this is not the correct value is that I added to oWnd:nLeft, but this value is nagative.
Can you try this sample. Here I get the value -8 instead of 0


#include "FiveWin.ch"
func test()
   local oWnd
   DEFINE WINDOW oWnd TITLE 'Test'

   ACTIVATE WINDOW oWnd MAXIMIZED on init(msginfo(oWnd:nLeft))
return


Why is this not 0?
Marc
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Width of border dialog
Posted: Fri Jul 18, 2008 04:08 PM

Hello,

with GetSysMetrics() we can get metrics values about dialog, how we can set these values,
is it possible?

regards

Marcelo

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Width of border dialog
Posted: Fri Jul 18, 2008 06:43 PM

Marcelo,

You can change the height and witdth of a dialog with oDlg:nWidth and oDlg:nHeight
You can also get the height and witdth of the dialog calling those.

Regards,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Width of border dialog
Posted: Fri Jul 18, 2008 07:02 PM
Marc,

thanks for your response, but I talk about other metrics, like the caption of dialog

regards

Marcelo

Marc Vanzegbroeck wrote:Marcelo,

You can change the height and witdth of a dialog with oDlg:nWidth and oDlg:nHeight
You can also get the height and witdth of the dialog calling those.

Regards,
Marc
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Width of border dialog
Posted: Fri Jul 18, 2008 07:08 PM

Marc,

-8 is ok for a maximized window, as Windows places the left border of the maximized window out of the visible screen

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Width of border dialog
Posted: Fri Jul 18, 2008 07:10 PM

Marcelo,

It seems that Windows API function SystemParametersInfo() lets change some of the system settings. We have never tested it.

http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion