Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5278 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I am using PopupMenu on OS X using fmp 10 without any problems. The same code in Windows XP makes the popup menu the same size as the current FileMaker window. I have enclosed two screen shots of the same menu on each platform. Any ideas would be greatly appreciated.

PopupMenu_on_OS_X.png

PopupMenu_on_XP_Pro.png

Posted

Look for the line of code

menuFrame.setBounds( 0, 0, (int) screenSize.getWidth(), (int) screenSize.getHeight() );




and change it to




menuFrame.setBounds( 0, 0, 0, 0 );

This will stop your screen from being filled, though your users will not be able to click outside of the drop down list to cancel making a selection.

  • 3 months later...
  • Newbies
Posted

Hi David,

The updated code had been working until today when I happened upon a serious bug. If you use the escape key with a popup menu active, FileMaker freezes. This is repeatable on both Windows and OS X using FMP 10 or FMP 11. Reverting to the original line of code avoids the freeze.

Thanks

Ian

Posted

Change the popupMenuCanceled method to this:

public void popupMenuCanceled( PopupMenuEvent e ) {

 menuFrame.dispose();

 }

This topic is 5278 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.