dialog opening difference in the monitor between 32/64 bit

dialog opening difference in the monitor between 32/64 bit

Postby vensanto » Thu Aug 03, 2023 8: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
User avatar
vensanto
 
Posts: 58
Joined: Thu Oct 13, 2005 1:26 pm
Location: ITALIA

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

Postby Antonio Linares » Thu Aug 03, 2023 8:34 am

Dear Santo,

We are checking it

many thanks for the feedback
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby nageswaragunupudi » Mon Aug 07, 2023 7:02 am

This program is working the same way with both 32-bit and 64-bit
Code: Select all  Expand view  RUN
#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
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby Maurizio » Mon Aug 07, 2023 2: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
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

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

Postby nageswaragunupudi » Mon Aug 07, 2023 6: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests