General information
Category:
Coding, syntax & commands
Irv,
The suggestion Gregory had worked for me. Try it and let me know if it works for you.
See below.
Thanks,
Jerryt
***Gregory idea:
What has worked for me is to put activate screen just before activating the popup
Activate Screen
activate popup shortcut at mRow(), mCol()
Don't ask me why, I don't know
Gregory
***
>Jerry:
>
>I have a Grid class with a RightClick() menu that does the same thing, appearing further to the right (always the right) than I would like.
>
>I think maybe (?) it could be a Font or Pixels sizing problem...I'm using Activate Popup command as you are, but the Popup is within a Grid instead of a Form. It is always 'close' to the Mouse but never exactly beside it...
>
>(VFP 6.0 SP5)
>
>-Irv.
>
>****
>
>>Using VFP7.
>>
>>I have a command button in a class. This button defines a popup and activates the popup when the user clicks the button. Everything works great!
>>
>>However, on some forms the popup is displayed off to the side. On other forms the popup is activated right on top of the command button.
>>
>>How can I always make the popup display right on top of the command button?
>>
>>***Here's the code in my button CLICK() method.
>>DEFINE POPUP shortcut SHORTCUT RELATIVE FONT "Arial", 9
>>DEFINE BAR 1 OF shortcut PROMPT "Mybar1" MARK "*" STYLE 'B' ;
>> MESSAGE "Mybar1 message" ;
>> FONT "Arial", 8
>>***More bars go here.
>>
>>ACTIVATE POPUP shortcut AT ROW(), COL()
>>
>>
>>Thanks,
>>
>>Jerryt
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only