Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-2007, 05:08 AM
Active Member
 
Posts: 32
Default how to set image for Dialog box's standard buttons??

Hello,

How to set an image for the standard buttons provided in DwtDialog class.For e.g i have this sample snippet:

Code:
...editorProps is defined here
var view = new DwtComposite(this._appCtxt.getShell());
this._questPropertyEditor = new DwtPropertyEditor(view,true);
var pe = this._questPropertyEditor;
pe.initProperties(editorProps);
var dialog_args = {
	title	:	"Add Details",
	view	:	view
};

this._questDlgPropertyEditor = this.zimlet._createDialog(dialog_args);
var questDlg = this._questDlgPropertyEditor;
pe.setFixedLabelWidth();
pe.setFixedFieldWidth();

questDlg.setButtonListener(DwtDialog.OK_BUTTON,
					  new AjxListener(this,function() 
					  {	
							if(!pe.validateData()) {return;}

							this._addQuestDataToTable();

					  } ) );

}
Now if i want to set images for this OK and Cancel buttons can it be done.If yes,then how??

Thanks.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.