summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:00:52 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:00:52 +0000
commitbeffe36ca63f6075935ae23ae09c10bbef12d005 (patch)
tree2da14bb308970921972c8d9ae520e9b4676b8080
parent69a324224b1fa13f3394a56cda088bc8da15655a (diff)
downloadmocca-beffe36ca63f6075935ae23ae09c10bbef12d005.tar.gz
mocca-beffe36ca63f6075935ae23ae09c10bbef12d005.tar.bz2
mocca-beffe36ca63f6075935ae23ae09c10bbef12d005.zip
+ try to fix mainbar repaint issue for windows platform
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@82 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
index 2bf827b6..fb29ae9b 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
@@ -101,6 +101,8 @@ public class MainWindow {
private FormData mainBarFormData;
+ private Composite mainbar;
+
/**
* Default constructor
*
@@ -191,16 +193,16 @@ public class MainWindow {
getShell().setLayout(new FormLayout());
- Composite composite = new Composite(getShell(), SWT.NONE);
- composite.setLayout(new FormLayout());
+ this.mainbar = new Composite(getShell(), SWT.NONE);
+ this.mainbar.setLayout(new FormLayout());
this.mainBarFormData = new FormData();
this.mainBarFormData.left = new FormAttachment(0, 10);
this.mainBarFormData.right = new FormAttachment(100, -10);
this.mainBarFormData.top = new FormAttachment(0, 10);
this.mainBarFormData.bottom = new FormAttachment(0, 67);
- composite.setLayoutData(this.mainBarFormData);
+ this.mainbar.setLayoutData(this.mainBarFormData);
- this.btn_config = new MainBarRectangleButton(composite, SWT.NONE);
+ this.btn_config = new MainBarRectangleButton(this.mainbar, SWT.NONE);
FormData fd_btn_config = new FormData();
fd_btn_config.bottom = new FormAttachment(100);
fd_btn_config.right = new FormAttachment(0, 57);
@@ -236,7 +238,7 @@ public class MainWindow {
this.btn_config.setImage(new Image(Display.getDefault(), new ImageData(
is)));
- this.btn_open = new MainBarStartButton(composite, SWT.NONE);
+ this.btn_open = new MainBarStartButton(this.mainbar, SWT.NONE);
FormData fd_btn_open = new FormData();
fd_btn_open.bottom = new FormAttachment(100);
fd_btn_open.right = new FormAttachment(35, (MainBarButton.SplitFactor / 2));
@@ -265,7 +267,7 @@ public class MainWindow {
});
this.buttonMap.put(Buttons.OPEN, this.btn_open);
- this.btn_position = new MainBarMiddleButton(composite, SWT.NONE);
+ this.btn_position = new MainBarMiddleButton(this.mainbar, SWT.NONE);
FormData fd_btn_position = new FormData();
fd_btn_position.bottom = new FormAttachment(100);
fd_btn_position.right = new FormAttachment(60, (MainBarButton.SplitFactor / 2));
@@ -294,7 +296,7 @@ public class MainWindow {
});
this.buttonMap.put(Buttons.POSITION, this.btn_position);
- this.btn_sign = new MainBarMiddleButton(composite, SWT.NONE);
+ this.btn_sign = new MainBarMiddleButton(this.mainbar, SWT.NONE);
FormData fd_btn_sign = new FormData();
fd_btn_sign.bottom = new FormAttachment(100);
fd_btn_sign.right = new FormAttachment(85, (MainBarButton.SplitFactor / 2));
@@ -323,7 +325,7 @@ public class MainWindow {
});
this.buttonMap.put(Buttons.SIGN, this.btn_sign);
- MainBarEndButton end = new MainBarEndButton(composite, SWT.NONE);
+ MainBarEndButton end = new MainBarEndButton(this.mainbar, SWT.NONE);
FormData fd_btn_end = new FormData();
fd_btn_end.bottom = new FormAttachment(100);
fd_btn_end.right = new FormAttachment(100);
@@ -371,6 +373,8 @@ public class MainWindow {
} else {
this.mainBarFormData.bottom = new FormAttachment(0, 0);
}
+
+ this.mainbar.redraw();
}
/**