Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Jobs and employment » Need a JFace expert to fix some small dialog problems(About titleareadialog)
Need a JFace expert to fix some small dialog problems [message #784218] Fri, 27 January 2012 08:04 Go to next message
He Heng Huang is currently offline He Heng HuangFriend
Messages: 4
Registered: January 2012
Junior Member
I developed a TitleAreaDialog, but there are several problems as below:

1. The image in title area is not vertically centered;
2. The line separator width is not corresponding and matched to the end of text widget;
3. The dialog isn't resizable, I tried to put the setShellStyle(getShellStyle()|SWT.Resize) everywhere without success. Each time it will hide the border of the dialog and not resizable.
4. No line separator between the main area and the button bar.
5. The height of the title area isn't automatically adjustable with the text length.
6. Some other errors.

Will pay for solving the problem.
  • Attachment: ui.zip
    (Size: 6.93KB, Downloaded 221 times)

[Updated on: Fri, 27 January 2012 08:05]

Report message to a moderator

Re: Need a JFace expert to fix some small dialog problems [message #784249 is a reply to message #784218] Fri, 27 January 2012 08:48 Go to previous messageGo to next message
Rahul Shukla is currently offline Rahul ShuklaFriend
Messages: 12
Registered: April 2011
Location: Pune India
Junior Member

Hi ,

can you send me more details on
Re: Need a JFace expert to fix some small dialog problems [message #784325 is a reply to message #784249] Fri, 27 January 2012 11:10 Go to previous messageGo to next message
He Heng Huang is currently offline He Heng HuangFriend
Messages: 4
Registered: January 2012
Junior Member
Rahul Shukla wrote on Fri, 27 January 2012 03:48
Hi ,

can you send me more details on <a href="mailto:shukla2009@gmail.com"></a>

What else information you want?
Re: Need a JFace expert to fix some small dialog problems [message #784363 is a reply to message #784325] Fri, 27 January 2012 12:17 Go to previous messageGo to next message
Rahul Shukla is currently offline Rahul ShuklaFriend
Messages: 12
Registered: April 2011
Location: Pune India
Junior Member

Hi I require snap shot what u have and sketch what u want +
your platform details ,
because I run the java file given by you and the dialog is resizable
Re: Need a JFace expert to fix some small dialog problems [message #784514 is a reply to message #784218] Fri, 27 January 2012 16:38 Go to previous messageGo to next message
Anuradha G is currently offline Anuradha GFriend
Messages: 18
Registered: October 2010
Junior Member
I can fixed this. already fixed re-size issue.
use

public AddLinkDialog(Shell parentShell) {
super(parentShell);
setShellStyle(SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER
| SWT.APPLICATION_MODAL | SWT.RESIZE | getDefaultOrientation());
}

contact me via theanuradha (at) gmail (dot) com

[Updated on: Fri, 27 January 2012 16:42]

Report message to a moderator

Re: Need a JFace expert to fix some small dialog problems [message #784785 is a reply to message #784514] Sat, 28 January 2012 01:09 Go to previous messageGo to next message
He Heng Huang is currently offline He Heng HuangFriend
Messages: 4
Registered: January 2012
Junior Member
I tried to add setShellStyle(getShellStyle()|SWT.Resize|SWT.MAX) without success. Maybe it's due to the libarary problem in my computer.

Attached picture is the snapshot after adding the above. Please see the picture from this link: www.cheapsubmit.net/images/dialog.gif
Re: Need a JFace expert to fix some small dialog problems [message #784840 is a reply to message #784785] Sat, 28 January 2012 03:12 Go to previous messageGo to next message
Anuradha G is currently offline Anuradha GFriend
Messages: 18
Registered: October 2010
Junior Member
you need to add

setShellStyle(SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER
| SWT.APPLICATION_MODAL | SWT.RESIZE | getDefaultOrientation());


not setShellStyle(getShellStyle()|SWT.Resize|SWT.MAX)
Re: Need a JFace expert to fix some small dialog problems [message #785338 is a reply to message #784785] Sat, 28 January 2012 21:50 Go to previous message
Rahul Shukla is currently offline Rahul ShuklaFriend
Messages: 12
Registered: April 2011
Location: Pune India
Junior Member

Hi ,


You need to do two things

1) Override

protected int getShellStyle() {

return SWT.MIN|SWT.MAX|SWT.RESIZE;
}

this will solve your resize problem

2)In your createContent method add

Label titleImageLabel = getTitleImageLabel();
FormData data=(FormData)titleImageLabel.getLayoutData();
data.top = new FormAttachment(body,14);

this is a work around the value "14" can be change as per your image to get the Icon in center.

if this solution works for you please let me know

Thanks
Rahul Shukla
Previous Topic:Eclipse RCP Developers Wanted - Alameda, CA
Next Topic:Offers Eclipse RAP/RCP development services
Goto Forum:
  


Current Time: Thu Mar 28 22:52:33 GMT 2024

Powered by FUDForum. Page generated in 0.07844 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top