March 4, 201015 yr Newbies 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.
March 4, 201015 yr 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.
June 29, 201015 yr Author Newbies 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
June 30, 201015 yr Change the popupMenuCanceled method to this: public void popupMenuCanceled( PopupMenuEvent e ) { menuFrame.dispose(); }
Create an account or sign in to comment