Skip to content

Commit 0b14817

Browse files
author
soheil_h_y
committed
1. Errors of "tab folders in other tab folders" solved.
1 parent 82cbca9 commit 0b14817

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/custom/CTabFolder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,8 +3340,11 @@ void setSelection (int index, boolean notify) {
33403340
Control control = item.control;
33413341
if (control != null && !control.isDisposed ()) {
33423342
control.setVisible (false);
3343+
control.handle.style.display = "none";
33433344
}
33443345
}
3346+
3347+
33453348
// OS.SendMessage (handle, OS.TCM_SETCURSEL, index, 0);
33463349
updateSelection(index);
33473350
// int newIndex = OS.SendMessage (handle, OS.TCM_GETCURSEL, 0, 0);
@@ -3356,6 +3359,7 @@ void setSelection (int index, boolean notify) {
33563359
if (control != null && !control.isDisposed ()) {
33573360
control.setBounds (getClientArea ());
33583361
control.setVisible (true);
3362+
control.handle.style.display = "block";
33593363
}
33603364
if (notify) {
33613365
Event event = new Event ();
@@ -3434,6 +3438,7 @@ void updateSelection(int index) {
34343438
if (cssName == null) cssName = "";
34353439
int idx = cssName.indexOf(key);
34363440
if (idx == -1) {
3441+
34373442
items[index].handle.className += " " + key;
34383443
items[index].rightEl.className = items[index].cssClassForRight();
34393444
items[index].handle.style.height = (OS.getContainerHeight(buttonArea) + 3) + "px";

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/TabFolder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ void setSelection (int index, boolean notify) {
986986
Control control = item.control;
987987
if (control != null && !control.isDisposed ()) {
988988
control.setVisible (false);
989+
control.handle.style.display = "none";
989990
}
990991
}
991992
// OS.SendMessage (handle, OS.TCM_SETCURSEL, index, 0);
@@ -1006,6 +1007,7 @@ void setSelection (int index, boolean notify) {
10061007
*/
10071008
control.setBounds (getClientArea ());
10081009
control.setVisible (true);
1010+
control.handle.style.display = "block";
10091011
}
10101012
if (notify) {
10111013
Event event = new Event ();

0 commit comments

Comments
 (0)