Newbies icook Posted March 4, 2010 Newbies Posted March 4, 2010 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.
Smef Posted March 4, 2010 Posted March 4, 2010 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.
Newbies icook Posted March 4, 2010 Author Newbies Posted March 4, 2010 Thanks David, worked like a charm. ian
Newbies icook Posted June 29, 2010 Author Newbies Posted June 29, 2010 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
Smef Posted June 30, 2010 Posted June 30, 2010 Change the popupMenuCanceled method to this: public void popupMenuCanceled( PopupMenuEvent e ) { menuFrame.dispose(); }
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now