Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0b14817

Browse files
author
soheil_h_y
committed
1. Errors of "tab folders in other tab folders" solved.
1 parent82cbca9 commit0b14817

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
Controlcontrol =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
Eventevent =newEvent ();
@@ -3434,6 +3438,7 @@ void updateSelection(int index) {
34343438
if (cssName ==null)cssName ="";
34353439
intidx =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
Controlcontrol =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
Eventevent =newEvent ();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp