How can we set two events in a single button ???

HI
I created a button named bold , when i click it first time the textarea texts will became as bold..
I created another button bold cancel when i click at that button textarea texts will became plain...
But how can i set that controls in a single button (in button bold) ???
Would anybody please tell me ...

I would have one event listener that is aware of a boolean variable that has scope outside of the event listener, isBold for instance?
When you click on the button, have the event listener toggle the boolean variable and then if true, set the text to bold, if false set the text to plain.

Similar Messages

  • How can I set an event to repeat on a week day rather than a numerical day of each month?

    How can I set an event to repeat on a week day rather than a numerical day of each month? I see an option at the bottom of the repeat window .... but I cannot use it. Actually, when I try it freezes up my Calendar.
    Lorrene Baum Davis

    These scrrenshots are from Snow Leopard - I would think that Lion wouldn't be too much different.

  • How can I set two different emails in only one contact form?

    How can I set two different emails in only one contact form?

    To enter multiple email address with the Contact Form Widgets:
    Click the Options icon for the selected widget, then
    In the Email to box, enter multiple emails by delimiting them with a semi-colon. For example: [email protected];[email protected]
    Cari

  • How can we give two name for a single material ??

    Hi friends
    how can we give two name for a single material ??
    e.g.. if single material is sold to different customer by different names
    then how can we do that ??

    Yes
    you can achieve it thro CMIR in T code VD51
    Go to T code VD51 choose that customer and material combination and click on to its details blue lens on application tool bar
    In the screen which is coming ,enter your description in the CUSTOMER DESCRIPTION tab the second one and save
    Now create a sales order and see
    Your requirement will be fulfilled
    If a material is pen description is ball pen in material master and for customer A you have defined it as Pen 1 and description as Super ball pen in VD51
    If a material is pen description is ball pen in material master and for customer B  you have defined it as Pen 1 and description as  VerySuper ball pen in VD51
    Now in sales order the description will appear as Super ball pen for Customer A
    Now in sales order the description will appear as Very Super ball pen for Customer B
    Hence the material pen whose description is ball pen in MMR will appear as super ball pen for customer A and very super ball pen for customer B
    Hope you have checked the field info record in VOV8
    I have tried this tested this and getting it
    Regards
    Raja
    Edited by: ramanathan raja on Dec 8, 2008 5:54 PM

  • TS3714 how can i set an event in the calander to repeat on 2nd thurday of every month

    how can i get an event to show in calander every 2nd thursday every momth

    Try the app "Week Cal".

  • How can I set an event that occurs on the same day, not date, every month? Like Thanksgiving is on the third Thursday of November

    On my PowerBook, I was able to set up events to show up on a specific day repeating each month, say the first Thursday.  How can I get that on the iPad 2?

    For your repeating even, I'm assuming this is your Yahoo calendar? that isn't a Firefox issue, I suggest you try to contact yahoo.
    For the other issue, try the following:
    Update to Firefox 15. Then, [[Reset Firefox – easily fix most problems]]

  • How can I Generate two different reports from single execution of Test cases in NI teststand

    Hi,
    My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
    Solved!
    Go to Solution.

    Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
    The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property. 
    Also, be aware that step's post-expression is not executed in case of error in the step.
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    SequenceFilePostStepRuntimeError_Demo.seq ‏7 KB

  • Latest IOS 7.1 Release - How can I set calendar events to the minute. This was enhanced in ios7 and now has gone back to 5 minute blocks. Why???/

    In IOS6 you could only set calendar appointments at 5 minute intervals. This was fixed in IOS7 but has reverted back in the latest release of IOS7.1. Why? IS there any way to override it. It means I have to go back to my old method of putting my actual golf tee time in the description of the appointment.

    Design change with iOS 7.1. Tell Apple you don't like this here:
    http://www.apple.com/feedback/iphone.html

  • HT1660 How can I maintain two separate itunes accounts on one single device without erasing either set of data?

    How can I maintain two separate itunes accounts on one single device (iPhone 4) without erasing either set of data when syncing with itunes?

    Hi,
    Depends on what you trying to setup but for purchases, you can roll down at the very end of the iTunes/AppStore pages to logout of your current account and then login into a different one.  Then your purchase will be billded to this new account.  Everything will sync as you used to but in order to use the purchased content in iTunes or other devices, you will need to authorize them (you can have up to 5 devices authorized for an account).

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • HT5620 How can I set up two separate accounts on one iPad?

    How can I set up two separate accounts on one shared iPad?

    The iPad is meant to be a single user device.
    It is possible to use multiple ID's on an iOS device, but when you switch ID's and download content with another ID, you associate the device with that ID for 90 days and lock yourself out of the other ID for that 90 day period.
    So while it is possible, it's not advisable.

  • How can I set up my Mac for two users to share photos, music etc

    How can I set up my Mac for two users to share photos, music etc?

    On the Mac with the libraries you want to share:
    iTunes Preferences click on the Sharing tab and put a tick in 'Share by library on local network'.
    iPhoto Preferences click on Sharing and put a tick against 'Share my photos'.
    When launching the same apps on other Macs on the network the libraries should be available, listed on the left.

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • How can I set up a wi-fi network, using one time capsule and two airport express

    how can I set up a wi-fi network, using one time capsule and two airport express ?
    The time capsule is near the Mac. ok
    The first Airport is on the corridor, ok, works well and the App on the iPad signals so, ok
    But when I plug the next Airport on another room nearby nothing happens, and signals disconected ....
    is the signal so weak that is not able to go to ono room to the other ?

    Well, even if you have the first express set up to extend the network, the second express can only extend from the TimeCapsule.
    Maybe you got walls of sheetrook in the way, or kitchen/bathroom tiles, etc, dampening the signal rapidly.

  • How can I insert an event in my clendar and set it to repeat every 3 months?

    Anybody knows how can I create an event on my iphone 5 calendar and set it torepeat every 3 months?

    If you happen to have Apple computer(s), and you are synching your iPhone calendar to your computer's calendar, you can set up an "every 3 month" period on your computer.  Simply use the calendar app on your Apple computer, access the event, access "Repeat", choose "custom", then "Monthly", then set up the interval you want.  It will sync with and properly be represented on your iPhone.

Maybe you are looking for

  • JSP, BC4J : Allowing users to choose from List of values when in Insert mode

    Hi, I have a requirement in which the user would be able to select a value from a combobox for populating a field when inserting a new record. The list of values in the combo box is derived from a look up table in the database. How can do this? Thank

  • How to add a comment for each row on the output of a report?

    I would like to add a comment (field) for each row on the output of report? This comment should to be saved as well. Is there a way i can do that? Regards, Ram

  • Assign a value from an wsdl:arrayType="xsd:string[]"

    Hi to everyone, I'm new at this issue of Bpel. I'm a developing a simple process and I need to communicate my process with a Web Services that returns a wsdl:arrayType="xsd:string[]", this is the type of the wdsl of the web service: <complexType name

  • How do you reset the PMU on an ibook G3?

    My man just got a refurbed ibook G3 and on the first night it went to sleep and it won't seem to charge and I've read that the PMU needs to be reset but I don't know how to do this.  Can someone help?

  • Submit batch job and return control to the user

    Hi Have a situation where we need to submit a batch report and then return control to the user of the application before the report is finished. What is the best way to do this? The old application is written using Java and the application is using t