FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour dialog opening difference in the monitor between 32/64 bit
Posts: 58
Joined: Thu Oct 13, 2005 01:26 PM
dialog opening difference in the monitor between 32/64 bit
Posted: Thu Aug 03, 2023 08:08 AM

Good morning,

I compile fivewin programmes in both 32bit and 64bit versions with MinGW 8.5 - fivewin release 22.12 and use 2 monitors

I have noticed that in the 32bit version if I open a dialogue from the second monitor this is opened in the second monitor

whereas if I open a dialogue from the second monitor in the 64bit version the dialogue is always opened in the first monitor

has anyone noticed this difference yet and knows how to correct the problem

thanks to all

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: dialog opening difference in the monitor between 32/64 bit
Posted: Thu Aug 03, 2023 08:34 AM

Dear Santo,

We are checking it

many thanks for the feedback

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: dialog opening difference in the monitor between 32/64 bit
Posted: Mon Aug 07, 2023 07:02 AM
This program is working the same way with both 32-bit and 64-bit
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oWnd, oBar, oDlg

   DEFINE WINDOW oWnd

   DEFINE BUTTONBAR oBar SIZE 80,32 OF oWnd

   DEFINE BUTTON OF oBar PROMPT "Open" CENTER  ;
      WHEN oDlg == nil ;
      ACTION ( oDlg := TestDlg() )

   DEFINE BUTTON OF oBar PROMPT "Close" CENTER  ;
      WHEN oDlg != nil ;
      ACTION ( oDlg:End(), oDlg := nil )


   ACTIVATE WINDOW oWnd

return nil

static function TestDlg()

   local oDlg

   DEFINE DIALOG oDlg SIZE 400,300 PIXEL TRUEPIXEL ;
      COLOR CLR_BLACK,CLR_HGREEN

   ACTIVATE DIALOG oDlg NOMODAL ON INIT ;
      FW_GetMonitor( 2 ):Center( oDlg )

return oDlg
The main window is opened in the primary monitor.
Clicking "Open" button opens a dialog in the Seconds monitor.

Here this is working with both 32/64 bits.

Can you please provide us with a small sample code that works with 32bit but fails with 64bit?
Regards



G. N. Rao.

Hyderabad, India
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: dialog opening difference in the monitor between 32/64 bit
Posted: Mon Aug 07, 2023 02:34 PM

Rao ,

Test in 32-bit always

The main window is opened in the primary monitor.

Clicking "Open" button opens a dialog in Always in the primary monitor.

Maurizio

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: dialog opening difference in the monitor between 32/64 bit
Posted: Mon Aug 07, 2023 06:05 PM
Clicking "Open" button opens a dialog in Always in the primary monitor.
If you connected two monitors and configured in extended mode, then the dialog will open in the second monitor.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion