Results 1 to 2 of 2

Thread: Need help using the Class DwtCheckbox

  1. #1
    ankurankan is offline Junior Member
    Join Date
    May 2012
    Posts
    7
    Rep Power
    3

    Default Need help using the Class DwtCheckbox

    I am unable to insert a checkbox using DwtCheckbox class and am not sure how to do that. If someone could explain how to do that or just write an example code.
    Thank you.

  2. #2
    hugo@dlshk is offline Active Member
    Join Date
    Feb 2012
    Posts
    30
    Rep Power
    3

    Default

    This is the code that treat as view params in zmdialog
    Code:
    var container = new DwtListView({parent:this.getShell(),noMaximize:false});
    container.setSize("250", "150");
    container.setScrollStyle(Dwt.SCROLL);
    container.setPosition(DwtControl.RELATIVE_STYLE);
    
    var view1 = new DwtComposite(container);
    view1.setSize("250", "100");
    view1.getHtmlElement().style.overflow = "auto";
    view1.getHtmlElement().innerHTML = this._createSendDialogView();
    
    this.check = new DwtCheckbox({parent:container,
    						name:"approverSendEmaildialog_check",
    						checked:true,
    						posStyle:Dwt.RELATIVE_STYLE,
    						id:"approverSendEmaildialog_check",
    						index:1
    						});
    this.check.setText(locale_text_approverSendEmaildialog_check_value[this.localeId]);
    this.check.setEnabled(false);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: 03-29-2014, 01:31 PM
  2. installing zdesktop on debian 6 64-bit
    By malayo in forum General Questions
    Replies: 0
    Last Post: 04-26-2011, 06:38 PM
  3. Replies: 0
    Last Post: 02-03-2011, 03:40 PM
  4. 4.5GA FC5_64: Convertd Crashes - wrong ELF class
    By dlbewley in forum Installation
    Replies: 1
    Last Post: 01-18-2007, 11:42 AM
  5. Model super class & communication factories
    By smies in forum Developers
    Replies: 3
    Last Post: 11-10-2005, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •