DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

pathnameget location

Hi

 


I'm using "pathnameget" to open a file. I need  to center the dialog because I call this command and It apears from right in my screen or I need that this dialog appears in the other dialog (the dialog who call pathnameget).

 



Thanks, 

Sara


Diadem 10.2, WinXP

0 Kudos
Message 1 of 4
(4,100 Views)

Hi Sara,

 

By default the PathNameGet dialog does pop up centered on your screen.  Are you perhaps running a dual-monitor system?  Please explain further about the dialog that calls the PathNameGet function... is this a SUDialog that you have created?  Does the position of the calling dialog affect the location of the PathNameGet dialog?

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 4
(4,085 Views)

I don't use a dual monitor system. I call pathnameget with SUddIalog that I create, this dialog (that I create) is centered in the screen but pathnameget isn't centered. It appears centered but if the reference position is the top-left, and I would that is centered about center of dialog. I attached two pictures. I want that appears in my dialog.

 

 

foto 1 example of my dialog.

foto 2 I want it appears like this foto.

 

 

Thanks

 

 

Sara

Download All
0 Kudos
Message 3 of 4
(4,072 Views)

Hi Sara,

 

I asked R&D about this, and they said that PathNameGet() function in DIAdem just calls an existing Windows function, so they have very little control over it that is not already exposed in the Windows function.  In this particular case the Windows function gets confused by thinking that the top left position of the screen is the top left position of the calling window (the SUDialog).

 

Have you tried the newer PathDlgShow() command?  It was introduced in DIAdem 11.0.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(4,020 Views)