INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to deactivate a popup menu after a selection has been made?
2

How to deactivate a popup menu after a selection has been made?

How to deactivate a popup menu after a selection has been made?

(OP)
I need some help from the experts. I currently using this popup menu;

CODE --> FoxPro9

DEFINE POPUP OUTPUT from 5,27 SHADOW ;
FONT 'LUCIDA SANS TYPEWRITER',12 STYLE 'B' TITLE 'Select an Option'
DEFINE BAR 1 OF OUTPUT PROMPT 'Send to Printer'
DEFINE BAR 2 OF OUTPUT PROMPT 'Convert to PDF'


ON selection BAR 1 OF OUTPUT DO prt2file
ON selection BAR 2 OF OUTPUT DO PRT2PDF
ACTIVATE POPUP OUTPUT 


The above code works fine, but I would like to deactive the popup as soon as a selection bar is chosen by the user. What is doing now it runs the prg depending on the selection and menu stays on the screen, I have to press the escape key to get it out of the screen. Is there a way to make it go away once a selection is chosen?

Thanks

RE: How to deactivate a popup menu after a selection has been made?

KEYBOARD '{ESC}' ?

RE: How to deactivate a popup menu after a selection has been made?

Yes, that should do it, but it's quite strange a context menu stays after you clicked an item of it. The two PRGs you start here (I assume it are PRGS and not APPs) seem to not let Windows events happen, which normally would clear the popup menu. So try to put DOEVENTS FORCE as start of the PRGs.

Bye, Olaf.

RE: How to deactivate a popup menu after a selection has been made?

Aha, it's simpler than thought. You just need to DEFINE POPUP OUTPUT SHORTCUT ...

The SHORTCUT option makes it a context menu popup, even though the normal position of that would be at mouse position and not styled the way you do, that option makes the popup disappear when you pick one of the options. That's all to it.

Bye, Olaf.

RE: How to deactivate a popup menu after a selection has been made?

Hi Webuxer,

Here a simple code for you. I write this code to express my point of view. Please see the attached file. I can't write it here coz i'm not that good enough to used special effects in here, hehehe..., im sorry.

To Mike Lewis if you read this, sorry i dont explore yet your good clue on writing here.

happy sunday everyone...

best,

JunMagoncia
Manila,
Philippines

RE: How to deactivate a popup menu after a selection has been made?

(OP)
Great!!

Thank you all for your help, I was able to accomplish what I wanted with your help.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close