Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 2932 Details for
Bug 18267
[Widgets] CoolBar: Lock the Coolbars doesn't give up space
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
setLocked(boolean lock) fix
CoolBarPatch.txt (text/plain), 1.54 KB, created by
Rob Hughes
on 2003-01-09 01:46:37 EST
(
hide
)
Description:
setLocked(boolean lock) fix
Filename:
MIME Type:
Creator:
Rob Hughes
Created:
2003-01-09 01:46:37 EST
Size:
1.54 KB
patch
obsolete
>--- CoolBar.java 2003-01-08 23:40:36.000000000 -0700 >+++ CoolBarNew.java 2003-01-08 23:41:17.000000000 -0700 >@@ -780,20 +780,29 @@ > */ > public void setLocked (boolean locked) { > checkWidget (); >+ if (this.locked == locked) return; > this.locked = locked; >+ setRedraw (false); > int count = OS.SendMessage (handle, OS.RB_GETBANDCOUNT, 0, 0); >- REBARBANDINFO rbBand = new REBARBANDINFO (); >- rbBand.cbSize = REBARBANDINFO.sizeof; >- rbBand.fMask = OS.RBBIM_STYLE; >- for (int i=0; i<count; i++) { >- OS.SendMessage (handle, OS.RB_GETBANDINFO, i, rbBand); >+ REBARBANDINFO[] bandInfos = new REBARBANDINFO[count]; >+ for (int i = 0; i < count; i++) { >+ bandInfos[i] = new REBARBANDINFO(); >+ bandInfos[i].cbSize = REBARBANDINFO.sizeof; >+ bandInfos[i].fMask = OS.RBBIM_STYLE | OS.RBBIM_ID | OS.RBBIM_CHILD | OS.RBBIM_CHILDSIZE | OS.RBBIM_IDEALSIZE | OS.RBBIM_SIZE; >+ OS.SendMessage (handle, OS.RB_GETBANDINFO, i, bandInfos[i]); >+ } >+ for (int i = 0; i < count; i++) { >+ OS.SendMessage(handle, OS.RB_DELETEBAND, 0, 0); >+ } >+ for (int i = 0; i < count; i++) { > if (locked) { >- rbBand.fStyle |= OS.RBBS_NOGRIPPER; >+ bandInfos[i].fStyle |= OS.RBBS_NOGRIPPER; > } else { >- rbBand.fStyle &= ~OS.RBBS_NOGRIPPER; >+ bandInfos[i].fStyle &= ~OS.RBBS_NOGRIPPER; > } >- OS.SendMessage (handle, OS.RB_SETBANDINFO, i, rbBand); >+ OS.SendMessage (handle, OS.RB_INSERTBAND, i, bandInfos[i]); > } >+ setRedraw(true); > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18267
: 2932