Skip to main content



      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 03:04 Go to next message
Eclipse UserFriend
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 250 times)

[Updated on: Fri, 27 January 2012 03:05] by Moderator

Re: Need a JFace expert to fix some small dialog problems [message #784249 is a reply to message #784218] Fri, 27 January 2012 03:48 Go to previous messageGo to next message
Eclipse UserFriend
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 06:10 Go to previous messageGo to next message
Eclipse UserFriend
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 07:17 Go to previous messageGo to next message
Eclipse UserFriend
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 11:38 Go to previous messageGo to next message
Eclipse UserFriend
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 11:42] by Moderator

Re: Need a JFace expert to fix some small dialog problems [message #784785 is a reply to message #784514] Fri, 27 January 2012 20:09 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 27 January 2012 22:12 Go to previous messageGo to next message
Eclipse UserFriend
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 16:50 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 11:15:07 EDT 2025

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

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

Back to the top