dialog opening difference in the monitor between 32/64 bit

Post Reply
User avatar
vensanto
Posts: 58
Joined: Thu Oct 13, 2005 1:26 pm
Location: ITALIA
Contact:

dialog opening difference in the monitor between 32/64 bit

Post by vensanto »

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
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: dialog opening difference in the monitor between 32/64 bit

Post by Antonio Linares »

Dear Santo,

We are checking it

many thanks for the feedback
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: dialog opening difference in the monitor between 32/64 bit

Post by nageswaragunupudi »

This program is working the same way with both 32-bit and 64-bit

Code: Select all | Expand

#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
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: dialog opening difference in the monitor between 32/64 bit

Post by Maurizio »

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
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: dialog opening difference in the monitor between 32/64 bit

Post by nageswaragunupudi »

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
Post Reply