Jump to content

Recommended Posts

Posted
Hi, 

 

 

 

 New Components  IPhone Style Buttons   -   FormFields, Toolbar, Button Toggles. 

 


 

 

post-1298-0-66256700-1415370016_thumb.png

 


 

 

For documentation of the properties of the components see Doc.txt (sencha documentation in zip File) .

 

Only tested with Delphi XE3,XE4 and Unigui 0.96,0.97,0.98,0.90 (03/09/2015)  I think it also works with version 0.95. 

 

I do not think there are big problems with the other version of Delphi. 

  . 

 

The folder Files (in zip)  contains the files js + css. 

 

 

 

 

1) Build and install UnixToggleButton.dpk,UnixToolBarToggleButton.dpk,UnixFormToggleButton.dpk 

 

 

2) compile and run senchaToggle.dpr 

 

 

Have fun. 

 

Let me know! 

 

Tested with Unigui  0.99.50 (03/09/2015) 

 

 

Salvatore Marullo

  • Upvote 2
  • 4 years later...
  • 3 weeks later...
  • 6 months later...
Posted
    initComponent: function()
    {
        var me = this;
        me.callParent(arguments);
        me.addEvents(
                /**
                 * @event beforechange Fires before this toggle is changed.
                 * @param {Ext.form.Checkbox} this This toggle
                 * @param {Boolean|String} state The next toggle state value if boolean
                 *            mode else the label for the next state
                 */
                 'beforechange',
                 'userevent',
                /**
                 * @event change Fires when the toggle is on or off.
                 * @param {Ext.form.Checkbox} this This toggle
                 * @param {Boolean|String} state the new toggle state value, boolean if
                 *            in boolean mode else the label
                 */
                'change');
    },

Problem for sencha >4 is "addEvents" method is removed in sencha. What is alternative it ?

Can any one help  for this?

regards.

Posted
1 hour ago, Freeman35 said:

Problem for sencha >4 is "addEvents" method is removed in sencha. What is alternative it ?

Just try to comment out all the calls to the addEvents method.

Posted

Thank you very much.

I got one question more

    unregisterToggleListeners: function()
    {
        Ext.destroy(this.dd);
        //this.el.un('mouseup', this.onMouseUp, this);
        this.un('mouseup', this.onMouseUp, this); <== is this right way ? removed "el" 
    },

regards

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...