09-29-2010 01:49 AM
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
09-29-2010 11:39 AM
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
09-30-2010 01:54 AM
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
10-01-2010 09:56 AM
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