full screen toggle works

This commit is contained in:
benfry
2001-07-26 17:37:54 +00:00
parent 15f4908cb6
commit b97d0bf9d0
2 changed files with 18 additions and 3 deletions
+6 -1
View File
@@ -504,12 +504,17 @@ public class PdeEditor extends Panel implements PdeEnvironment {
fullScreenWindow.setBounds(0, 0, screen.width, screen.height);
fullScreenWindow.setBackground(new Color(102, 102, 102));
fullScreenWindow.show();
buttons.clear();
// not sure what to do with applet..
// (since i can't bring the browser window to the front)
// unless there's a method in AppletContext
if (frame != null) frame.toFront();
buttons.clear();
}
public void disableFullScreen() {
fullScreenWindow.hide();
buttons.clear();
}
+12 -2
View File
@@ -287,8 +287,18 @@ public class PdeEditorButtons extends Panel {
case PRINT: editor.doPrint(); break;
case BEAUTIFY: editor.doBeautify(); break;
case FULL_SCREEN: editor.enableFullScreen(); break;
case DISABLE_FULL_SCREEN: editor.disableFullScreen(); break;
case FULL_SCREEN:
editor.enableFullScreen();
//editor.messageClear(title[which[buttonCount-1]]);
which[buttonCount-1] = DISABLE_FULL_SCREEN;
editor.message(title[which[buttonCount-1]]);
break;
case DISABLE_FULL_SCREEN:
editor.disableFullScreen();
//editor.messageClear(title[which[buttonCount-1]]);
which[buttonCount-1] = FULL_SCREEN;
editor.message(title[which[buttonCount-1]]);
break;
}
//update();
return true;