Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
custom button
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nitin Gopi  
View profile  
 More options Feb 10 2012, 6:22 am
From: Nitin Gopi <nitin.g...@gmail.com>
Date: Fri, 10 Feb 2012 16:52:46 +0530
Local: Fri, Feb 10 2012 6:22 am
Subject: custom button

Hi
I want to create a custom button component, in which I want the label of
the button to be 'Submit' by default. So I created a subclass of button and
in the constructor used super.label = 'Submit'. I also read some where that
it is better to use getter, setter methods and override them to change some
property. Which one is better way?
I also want to know how can I change the cornerRadius of the button in the
custom button class? I think that cornerRadius property is not inherited by
the subclass, then how can I change it?

With Regards,
Nitin

--
You can only depend on yourself. The cavalry ain't coming.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mahesh blue  
View profile  
 More options Feb 11 2012, 5:31 am
From: mahesh blue <bluemahesh...@gmail.com>
Date: Sat, 11 Feb 2012 16:01:10 +0530
Local: Sat, Feb 11 2012 5:31 am
Subject: Re: [flex_india:34831] custom button

Hi nitin u can implement this by using skinclass
<s:button skinclass= "select createskin from menu it will display the
window give the name and click on ok it will give u skinnable button xml


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mohit Kumar  
View profile  
 More options Feb 11 2012, 5:36 am
From: Mohit Kumar <mhtkm...@gmail.com>
Date: Sat, 11 Feb 2012 16:06:44 +0530
Local: Sat, Feb 11 2012 5:36 am
Subject: Re: [flex_india:34831] custom button

super.label is correct way to do this. As far as setters and getters are
concerned,  They are only used if you need to perform some other task while
changing the properties.

For corner radius you will have to use setStyle property like:
setStyle("cornerRadius",2);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Akki  
View profile  
 More options Feb 11 2012, 10:47 pm
From: Akki <contacttoak...@gmail.com>
Date: Sat, 11 Feb 2012 19:47:08 -0800 (PST)
Local: Sat, Feb 11 2012 10:47 pm
Subject: Re: custom button
Label Assignment is simple property so you can directly assign that
property. Bindable getter/setter are usefl when you want to perform
something more than assignment.
Corner radius can be set using setStyle but if you want to have some
custom control then you can use updateDisplayList() in skin class of
your button (hope you are using Spark Button) and then control that
property.

But just for label assignment creating a custom button is not a good
idea!!

Thanks,
Akhil Mittal

On Feb 11, 3:36 pm, Mohit Kumar <mhtkm...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nitin Gopi  
View profile  
 More options Feb 12 2012, 12:06 pm
From: Nitin Gopi <nitin.g...@gmail.com>
Date: Sun, 12 Feb 2012 22:36:34 +0530
Local: Sun, Feb 12 2012 12:06 pm
Subject: Re: [flex_india:34837] Re: custom button

Hi All,
Thanks to everybody who replied to my query.
@Akhil I was reading custom components and experimenting the setter and
getter methods, so I tried to use the label property for that.
Can you give any instance where these setter, getter properties can be
usefull. When do we use comitproperties, updatedisplayliste etc. If you can
give link to any resource that would be appreciated.

--
You can only depend on yourself. The cavalry ain't coming.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »