Normal Topic @XPOS issue. (Read 743 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
@XPOS issue.
Jul 22nd, 2013 at 8:43pm
Print Post Print Post  
I'm adding a command button to an existing application.  I want to select a document from a list and have the program open the document.

The programming i have is working fine, but the list shows up in different places when I log on as a different user.  Here's the programming:

var vChoice as String
var vTemp as Int


     PopupSelectPosition(4, @XPos(ThisElement), @YPos(ThisElement))
     vChoice = @PopupMenu(SampDocOnline, "SELECT A SAMPDOC")
     If @Len(vChoice) > 0
     {
           vTemp = @ASynchShell("F:\Sesame docs\ts doc SAMPDOCS\"+vChoice)
     }

The attachment shows the two locations of the list in yellow circles.  The red circle is the command button that invokes the programming.  These are both screen shots from the same computer, so the computer screen size is not an issue.

Any ideas?

  

pnc1_001.png ( 219 KB | 29 Downloads )
pnc1_001.png
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: @XPOS issue.
Reply #1 - Jul 23rd, 2013 at 1:07am
Print Post Print Post  
Just to narrow things down, try changing ThisElement to the actual name of the command button. In the first image, it looks like the menu is coming up in the position of the element just to the left of the red "CHANGE DC NO" button.

I've seen ThisElement get a bit confused in unusual cases when there's a lot of hiding elements and opening and closing forms, etc. And I can see that you are hiding that red button on the login where things seem out of place.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: @XPOS issue.
Reply #2 - Jul 23rd, 2013 at 12:19pm
Print Post Print Post  
That did it!

I've been using ThisElement for a very long time and this is the first time I've ever run into this problem.

Thanks for your help!
  
Back to top
 
IP Logged