How to send commands to command button to look like an event

Hi all
I am trying to find the proper way to send a software command to a command button.
For example say you have a simple (OK) command button, within that command button the callback function has multiple lines of code that are run from within that one callback.
Now what I want to do is call the (OK) button in another function as if the user pushed the button without effectively having the function to wait for all the process in the (OK) callback to finish, I want it to call the (OK) button and get out of its function and continue on.
What I have seems to work but I am not sure if this is the proper way of coding it.
Code sample to turn on =1and off 0:    OK Callback (panelnumber =2, controlnumber = 2, event=2 , callback= NULL, event1=0, event2=0)
if(ON)
SetCtrlVal(panelmain, PANELMAIN_OK,ON)
OK(2,2,2,NULL,0,0);
else
SetCtrlVal(panelmain, PANELMAIN_OK,OFF)
OK(2,2,2,NULL,0,0);

You can call the callback function as any other function, see e.g. here

Similar Messages

  • Disabled button to look like selected button

    I have a set of toggle buttons. If I wanted to disable a button the moment it was clicked, but not have the user know that this was done, how could I set the disabled button to look like a clicked button?
    I tried using
    ImageIcon disabledIcon = (ImageIcon) button.getIcon();
    button.setDisabledIcon(disabledIcon);
    button.setDisabledSelectedIcon(disabledIcon);But this made the button look like an unclicked button. The clicked button has the exact same icon in the middle, but the rest of the button is darker.
    Any help appreciated!

    may be you want like this,
    <a id="btnLink" class="brnLink" href="javascript:Form.submit('myAction')"/>
         <img id="next" src="/images/next.gif" />
    </a>

  • I downloaded Firefox 3.6 and now my tool bar is gone. No back arrows, forward arrows, file, edit, view, history, bookmark, tools....how do I get my web browser to look like a regular browser again?

    I downloaded the new Mozilla web browser and I had a Bing homepage setting. I changed back to yahoo but I ever since downloading I dont have any back arrows, forward arrows, file, edit, view, history, bookmark, tools, address bar....how do I get my web browser to look like a regular browser again?

    For details of how to restore the menus see [https://support.mozilla.com/kb/menu+bar+is+missing]
    Once the menus are back, you can use the View menu, then select Toolbars and click on the names of the toolbars to toggle displaying them.

  • I have an ipad 2 and I noticed I have over 3000 emails in All Mail. I want to know how can I delete these emails. It looks like you can only do it one at a time. It will take me forever. Please help me.

    I have an ipad 2 and I noticed I have over 3000 emails in All Mail. I want to know how can I delete these emails. It looks like you can only do it one at a time. It will take me forever. Please help me.

    You can only delete them one at a time on the iPad. If you have an IMAP email account, go to your email in on the server using a web browser and select as many as you can at a time and delete them that way. That action will be reflected on the iPad. In IMAP - whatever you do on one device syncs across all devices. If you have POP email - start deleting one at a time.

  • How can i fix my icons they all look like negatives and xrays

    HOW CAN I FIX MY ICONS THEY ALL LOOK LIKE NEGATIVES AND XRAYS

    System Prefs > Universal Access > White on Black OFF.

  • Did Did the designers of the Federal Health Care Insurance Exchange get hired on at Verizon?...given how the pre-order is going it sure looks like it

    Did Did the designers of the Federal Health Care Insurance Exchange get hired on at Verizon?...given how the pre-order is going it sure looks like it

    You keep using the word insurance. Do you pay extra for insurance from Asurian or is your iPhone being replaced under the manufacturer warranty ? This second option is not insurance so you would have to contact Asurian directly. With this insurance there is a paid premium each month on your cell invoice, you have to pay a deductible to get your replacement device which can run up to $200
    Verizon cannot assist you at the store under insurance, only manufacturers warranty and they can give you the phone number and web site address to start your claim process.
    In the future get your iPhone insurance through Apple Care, its only $99 for the two years and you just walk into the Apple Store near you and get service.
    Good Luck

  • How to create a 3-state button (similar look as OK button) that toggles between 3 different colors.

    How do I create a 3-state button that looks similar to the OK button except it changes to 3 different colors every time it is pressed. Does anyone have such a control ready for use that I can just drop in my front panel?

    With a picture ring you can implement a 3 color button without any code. Look at the attached customized control.
    I have imported the picture of a boolean in three different items and
    colored them. I centered the text and hide/made transparent uneeded
    graphic elements. I set the size of the decrement arrow to cover all
    the picture and made it transparent so when you click on the control
    you decrement the value of the ring and change the picture/color
    Edit: you'll notice that the picture is not fullt covered by the
    decrement arrow so if you click near the bottom of the button, the
    picture ring will show its normal behavior displaying all 3 available
    items
    Message Edité par Jean-Pierre Drolet le 07-07-2005 10:07 PM
    LabVIEW, C'est LabVIEW
    Attachments:
    3COLORSBUTTON.vi ‏8 KB

  • How to send a mail with rich text content like using outlook

    Hi All. I have a serious problem. When we send the mail from
    outlook express or yahoo, we can send the mail with the text appearing
    in the mail with bold font , with different colors, underlined etc.
    If i type this kind of text in any word processor and mail that content through java mail then the message should be received by the recepient with all that bold,color and underlines etc as it is. Can anybody please help me in this case ASAP.

    Go to this site and download the htmlArea Javascripts. Embedd them in your HTML and it will turn your normal HTML Text Area into Rich Text Area. Your real code will include all HTML tags. For example if you select some text and make it bold , the real HTML output will look like <B>YOUR TEXT </B>. So i guess your recipient should be able to receive HTML contents.
    http://www.interactivetools.com/products/htmlarea/

  • How do I get my Web Form - to look like - Paper Form

    I have several fairly complicated forms in PDF and WORD.
    I was hoping the acrobat form wizard could convert them and then i could import them to formcentral to be then embedded as html forms on website.
    Problem is:
    1. imported forms can not be converted into embedded html
    2. from reading help, i would have to re-design/author the form from scratch.
    Which I am willing to do:
    Provided:
    1. I can actually create a form that looks like the original online (or similar to)
    2. I can then print this as PDF (so that it looks exactly like the original pdf) or that it actually fills the original PDF fields from the original pdf document.
    IS THIS POSSIBLE?
    put another way..
    I want to have a form online that looks like the form on paper.
    the client can fill it out.
    submit
    it sends him a copy of the completed form
    it sends us a copy of the complted form
    if it needs to be changed, a staff member can edit it.
    what do I have to do to achieve this?
    THANK YOU VERY MUCH FOR HELP!!!

    For details of how to restore the menus see [https://support.mozilla.com/kb/menu+bar+is+missing]
    Once the menus are back, you can use the View menu, then select Toolbars and click on the names of the toolbars to toggle displaying them.

  • How do I make the tool bar displays look like Firefox 3.6?

    I have gotten used to the order of the tool bars and would like to make them look like the previous version of Firefox (3.6). Is there a way to move them up or down in FF 4.0?

    #<u>If you are not seeing the Menu Bar (File, Edit, View History, Bookmarks, Tools, Help)</u> hold down the ALT key while pressing the three keyboard letters VTM.
    #*<u>To turn off the Menu bar at any time and use the Firefox button</u> (click on it to drop down the new Menu), click View > Toolbars, click on Menu Bar to remove the check mark. You can always turn it on again using the ALT+V+T+M in step 1 above.
    #<u>To move the tabs below toolbars</u>, click View > Toolbars, click "Tabs on top" to un-check it. '''''NOTE: Instead of View > Toolbars, you can click in any blank space on any toolbar to open the dialog.'''''
    #<u>To display other toolbars not being displayed</u>, repeat this process View > Toolbars and click on items that do not have a check mark; that will place a check mark next to those items and cause them to be displayed.
    #<u>To move items around on the toolbars</u>, you can drag them to the desired location when the Customize Toolbar window is open: View > Toolbars > Customize.
    #'''<u>The Reload/Refresh button and the Stop button have been "unified/combined" on the right end of the URL/Location/Address bar</u>''' (where you type a site address).
    #*When the Customize Toolbar window is open (View > Toolbars > Customize), the two separate buttons are shown between the URL/Location/Address bar and the Search bar. You can drag those 2 buttons wherever you want them but the order is important when the two are adjacent to one another (side-by-side) :
    #**Refresh/Reload on the left and Stop on the right, the buttons will be "unified/combined"
    #**Stop on the left and Reload/Refresh on the right, the buttons will be separated
    #**If left between the URL/Location/Address bar and the Search bar:
    #***Refresh/Reload on the left and Stop on the right, the buttons will be "unified/combined" as part of the URL/Location/Address bar on the right end of it
    #***Stop on the left and Refresh/Reload on the right, the buttons will be individually shown outside and to the right of the URL/Location/Address bar
    See:
    *https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars
    *http://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+buttons+are+missing

  • How to expect what my print job will look like?

    I had a colored picture that I wanted to print. My printer is white and black. I wanted to see how the black and white will look like before actually printing it. I used a free online service to convert to black and white before printing. Any other way to do that?

    The place to set black and white probably depends to some extent on your printer and possibly the application you are printing from.  Here is how it worked for me when printing from Safari:
    I had to click the dropdown that says "Safari" here (toward the lower right):
    From there, I chose "Print Settings" and could then check the "Greyscale" box as shown here:
    Your settings may well vary depending on your printer.

  • How to send file as attachment and call RFC to trigger event in ECC?

    Hello,
    A file is retrieved from FTP into PI (w/ NO MAPPING required - just pass through) and placed on the ECC appl. Server. Then, a RFC is made to trigger an event to process the file in ECC.  However, a RFC cannot be called in the graphical mapping if there is no mapping required.
    I have seen this Blog, u201CFile to R/3 via ABAP Proxyu201D, http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1847. [original link is broken] [original link is broken] [original link is broken]  But we are told not to touch the file as it will be converted in ECC by a program.
    Also, I read that using ABAP proxy-PI-FTP, I can do a pseudo mapping, simple one node, (just so a RFC can be triggered) and also pass the file as an attachment.  Letu2019s say this works:
    Question 1:  What configuration steps in the FTP adapter that will allow me to u201Calsou201D send the file as an attachment? 
    Question 2: (Continue with ABAP proxy option) How do I control where will it be deposited so that the program can access it?
    Question 3:  If this is not the best approach, how many steps would I need to do it in BPM (i.e. pick up the file from FTP, place it on appl server, and trigger a RFC to call an event to process file)?
    Thanks for any suggestions!
    John_Xi

    I have read those two help file and was able to use it in the ABAP proxy code.  Thanks.
    This is the current outcome.  I totally understand that SAP PI communicates via XML.  So when PI picks up a file that contains XML tags, the Inbound proxy is triggered.  I can see its processing in SM50.  However, when I give the Sender FTP adapter a non-XML file to pick up, the Inbound Proxy does not trigger.  The file itself should be read into memory so that I can save it to the application server via ABAP code (with no mapping).  That is why there is no operation mapping
    The reason I am using using FTP to ABAP proxy is because I need to call a subsequent RFC step to process the file.  Else, I will just use FTP to File Adapter scenario.
    Question 1: I am thinking that that file is the attachment.  Is that where I am incorrect and I still need to send in an XML file with the attachment as an addition?
    Question 2: Is this the best approach or should I use BPM?  If BPM, what steps do I need?

  • How can I create a button that looks like this?

    Hey everyone,
    I'm trying to create a button in photoshop for a web project I'm working on and I found something similar to what I'm trying to do already being used online. I'm trying to get something similar to the bottom row of buttons in this image:
    The bottom row of buttons uses a gradient overlay effect... but there is a small darker area in the top left corner of each of those images. It looks to be exactly the same in each image... meaning I'm guessing it's not hand drawn with something like the burn tool?
    How would I go about doing something similar? What's the easiest way to reproduce the effect shown above keeping it consistant from button to button?

    One way is using layers.
    Color layer on the botton so changing colors simply change color layer.
    Place all your image effects on the overlying layers.

  • Do think the firefox back and forwoard button should look like what it look like in netscape?

    Netscape is the ancestor of firefox.i think it would be greater if firefox would use its ancestors back and forward button to show respect.if you agree with me click i have this problem too button and well show firefox what we want.

    The Firefox button displays by default only in Windows Vista and Windows 7. You '''''can''''' have it display in Windows XP
    '''Menu Bar'''<br />
    *right-click empty space at the end of the Tab Bar, click "Menu Bar" to place a checkmark
    *Menu Bar checked = Menu Bar on; Firefox button off
    *Menu Bar un-checked = Menu Bar off; Firefox button on
    *Other methods of doing the same:
    **click Firefox button > Options, click Menu Bar
    **Quick toggle Menu Bar on/off: ALT+V+T+M
    To have the Menu Bar '''''temporarily''''' display when the Firefox button is on, press the ALT key or the F10 key to make the Menu Bar appear and use your mouse to make selections from the temporarily displayed Menu Bar. Why would you want to do this? The selections available are different.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Why do the site identity buttons not look like what you are showing on the information page?

    Just read the email about security from Firefox. I do have the identity button show up in a color, but I do not get the passport officer, nor do I get the information in the drop-down window. All I get is "Verified by: ... or "This site does not supply identity information."

    On Windows, you can switch between a classic menu bar and a compact menu opened with an orange button with the word Firefox.
    You can switch between these using one of these methods:
    * right-click a blank area of the tab bar and turn Menu Bar on or off
    * View menu > Toolbars > Menu Bar
    * orange Firefox button > Options triangle > Menu Bar
    Does that help?
    To get to the tab preferences, you can do this:
    orange Firefox button (or Tools menu) > Options > Tabs
    To remove the Ask toolbar, you can go here:
    orange Firefox button (or Tools menu) > Add-ons > Extensions category
    You might still have to do a little cleanup after removing an extension, if it changed your home page, new tab page, search provider, etc. Please describe any remaining problems in more detail.
    Hope this helps.

Maybe you are looking for

  • Start date is in the past: today scheduling

    Dear all, How can I fix that error: *Start date is in the past: today scheduling* *Message no. C7030* Diagnosis The start date determined in scheduling is in the past. In customizing, you have defined the number of days that the start date is allowed

  • REGUH and REGUP Performance issues?

    Hi all, I am trying to build a program based on below select query. Will it create performance problem in Production as REGUP is a cluster table.   SELECT          LAUFD          LAUFI          ZBUKR          LIFNR          VBLNR   FROM REGUH   INTO

  • Importing oracle 9 dump to oracle 8

    I was wondering if dump file from oracle 9 can be imported to oracle 8. If yes, is there anything to be done in creating a dump file in oracle 9? Thanks in advance.

  • Advantages and disadvantages of APEX?

    Hey Guys, what would you say are the advantages and disadvantages of APEX? I am interested in the opinion of you as developer! (I know that there are a lot of information given by Oracle......) I would be very glad if you can post some short advantag

  • How do i make more GB on my ipod

    how do I make more room for GB on my ipod