How to create a MenuButton-like control (skin)?

Hi,
I want to create a MenuButton-like control.
But instead of popping up a ContextMenu, I want my own popup in that place. (I want the user to chose from a set of icons, which are displayed in a TilePane).
Unfortunately I am stuck with the basic button skin.
If I derive from MenuButton and override fire(), this method isn't called (unlike if I derive from Button).
If I derive from Control and set a skin, I don't know, what to do, so that the skin looks like a MenuButton. If I derive the skin from MenuButton, I again don't get the ActionEvent.
I also copied the style from class "button" from caspian.css and renamed it to my control name. It loads the skin, but e.g. the background-color is not applied.
Any advise?

Sure it can be done in AI, so what is actually your question?
Mylenium

Similar Messages

  • How to create an object like "Control Account" in JE? u5982u4F55u7F16u5199u63A7u5236u79D1u76EEu63A7u4EF6

    I want to create a user screen like Journal Entry. How could I create an object like "Control Account" in JE?
    我想编写一个象u201C日记帐分录u201D那样的屏幕,但是不知道其中u201C控制科目u201D列的控件如何编。请教各位高手。谢谢
    Edited by: An Ping Zhang on Sep 15, 2009 4:57 AM

    Dear An Ping Zhang,
    The "Control Account" column in JE is used ChooseFromList.
    You could refer to SDK sample
    SDK\Samples\COM UI\VB.NET\17.ChooseFromList.
    BTW: you could post your question in Chinese into SAP Business One 中文论坛
    /community [original link is broken]
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • How to create a "Explorer" like in java

    i'm just wonderin if there's a way on how to create "Windows Explorer" like in Java wherein you can view all your directories with yellow folder icon and also you can view all your files and drives....
    And when you double click the yellow folder icon it will then expand and will show all the subfolders and files ...
    How????
    Thanks!

    Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
    i'm still confused on where will i get the entire directories of my drives...
    thanks

  • How to create report image like artwork demo

    Dear Pakars
    How to create report image like artwork demo ?
    Thanks
    Imansyah

    Hello,
    Are you asking how to include images in a report? If so, take a look at the declarative blob support documentation -
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How to create cost element in controlling

    how to create cost element in controlling for Direct meterail.
    i have to create for each materail or on rm consumption is enough
    please give me replay
    thanks

    Hi Nagaraju,
    First you create the required account as cost element through FS00 and select your gl account and edit cost element and give 1 in cost element category.
    Afterwards in OKB9 You create the cost element whether it is required for Bus Area mandatory, profit centre mandatory and Valuation area is mandatory.  Based on your selection you have to assign 1, 2 or 3.  Ex. You have selected for consumption account profit centre is mandatory.  You give 3.  and you have to assign the cost centre against profit centre.  Then automatically your consumption will post to the cost centre.
    BSR

  • Do you know how to create Front Panel like Web,

    Do you know how to create Front Panel like Web, I mean like we pointed the word and click it will do another process instead by clicking push button.
    If possible, i can click the link in the table... Any idea anyone
    Solved!
    Go to Solution.

    Hi ezam,
    can you define more clearly exactly what you would actually like to do, and ill have a further look into it. I think smercurio_fc has understood it as I have, and is right with the activeX.
    any way, give a shout back with exactly what you want to do and we see what we can do,
    Richard
    Richard S
    Applications Engineer
    Certified LabVIEW Associate Developer
    National Instruments UK&Ireland

  • How to create bdc with table control

    hi all.
    please some body tell me how to create bdc with table control
    or suggest any www with screen shots
    thanks in advance ,
    aparna

    Hi AParna,
    Its very Simple.
    ALl you have to do is set up a counter based on the number of lines in the tabke. when the counter reaches the number of lines in the table hit the next page button which is at the top of every screen in SAP.
    Please refer to the following BDC program I had developed using Table control,
    this is for ME01 transaction.
      LOOP AT T_EORD_HED.
        SELECT SINGLE * FROM MARA WHERE MATNR = T_EORD_HED-MATNR.
        IF SY-SUBRC = 0.
          PERFORM BDC_DYNPRO      USING 'SAPLMEOR' '0200'.
          PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                        'EORD-MATNR'.
          PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM BDC_FIELD       USING 'EORD-MATNR'
                                        T_EORD_HED-MATNR.       "'58335'.
          PERFORM BDC_FIELD       USING 'EORD-WERKS'
                                        T_EORD_HED-WERKS.       "'0253'.
          L_COUNT = 1.
          LOOP AT T_EORD WHERE MATNR = T_EORD_HED-MATNR
                           AND WERKS = T_EORD_HED-WERKS.
            SELECT SINGLE * FROM LFA1 WHERE LIFNR = T_EORD-LIFNR.
            IF SY-SUBRC = 0.
    * Look into the if condition below
              IF L_COUNT = 010.
                L_COUNT = 1.
                PERFORM BDC_DYNPRO      USING 'SAPLMEOR' '0205'.
                PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'EORD-MATNR'.
                PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                       '=NS'.
                L_COUNT = L_COUNT + 1.
              ENDIF.
              PERFORM BDC_DYNPRO      USING 'SAPLMEOR' '0205'.
              PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                            'EORD-AUTET(01)'.
              PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                            '/00'.
              CONCATENATE 'EORD-VDATU' '(' L_COUNT ')' INTO OPR_FIELD.
              WRITE SY-DATUM TO T_EORD-VDATU.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-VDATU.
              CONCATENATE 'EORD-BDATU' '(' L_COUNT ')' INTO OPR_FIELD.
              WRITE T_EORD-BDATU TO V_BDATU.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            V_BDATU.
              CONCATENATE 'EORD-LIFNR' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-LIFNR.
              CONCATENATE 'EORD-EKORG' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            '0001'.
              CONCATENATE 'EORD-RESWK' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-RESWK.
              WRITE T_EORD-MEINS TO V_MEINS.
              CONCATENATE 'EORD-MEINS' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            V_MEINS.
    *          CONCATENATE 'EORD-EBELN' '(' L_COUNT ')' INTO OPR_FIELD.
    *          PERFORM BDC_FIELD       USING 'OPR_FIELD'
    *                                        T_EORD-EBELN.
              CONCATENATE 'EORD-EBELP' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-EBELP.
              IF T_EORD-FLIFN NE SPACE OR T_EORD-FRESW NE SPACE OR
                 T_EORD-FEBEL NE SPACE.
                CONCATENATE 'RM06W-FESKZ' '(' L_COUNT ')' INTO OPR1_FIELD.
                PERFORM BDC_FIELD       USING OPR1_FIELD
                                              'X'.
              ENDIF.
              IF T_EORD-NOTKZ <> ''.
                CONCATENATE 'EORD-NOTKZ' '(' L_COUNT ')' INTO OPR_FIELD.
                PERFORM BDC_FIELD       USING OPR_FIELD
                                              'X'.
              ENDIF.
              CONCATENATE 'EORD-AUTET' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-AUTET.
              L_COUNT = L_COUNT + 1.
            ENDIF.
          ENDLOOP.
          PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                        'EORD-MATNR'.
          PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                        '=BU'.
          CALL TRANSACTION 'ME01' USING I_BDCDATA
                        MODE UP_MODE
    *                     optIONS  FROM l_opt
                        MESSAGES INTO I_BDCMSGCOLL.
          PERFORM FORMAT_OUTPUT.
        ENDIF.
      ENDLOOP.

  • Can anyone please guide me how to create a table like employe table with 10

    Hi,
    can anyone please guide me how to create a table like employe table with 10colums.
    after that we need to update the colums with personal details......like name1,name2,address,city,zip...etc.
    using the RFC we need to update the personal details coulums (either select query or Insert command)
    if you have any program logic similar to this requirement please share with me...that would br greatly helpfull to me...
    thanks in advance
    srinivas

    Hi....
    We are having one table and now i am going to update that table's fields...
    for that in RFC function module we need to enter the fields in importing parameters (which are mandtory in table)
    and in source code just write like following....
    ( try to under stand that it contains some previous used table nad field and stucture and work area and function module names)
    FUNCTION ZL2C_UPDATE_MYCUSTOMER.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(USR_ID) TYPE  USRID
    *"     VALUE(LOGO_ID) TYPE  KUNNR
      DATA ls_mycust TYPE zl2cmy_customer.
      DATA: name1 TYPE name1_gp.
      DATA: sharpoint_url TYPE url.
      ls_mycust-usr_id        = usr_id.
      ls_mycust-logo_id       = logo_id.
      SELECT SINGLE name1 FROM kna1 INTO name1 WHERE kunnr = logo_id.
        ls_mycust-name1       = name1.
        SELECT SINGLE sharpoint_url FROM zl2c_CUSDASHBRD INTO sharpoint_url WHERE logo_id = logo_id.
          ls_mycust-sharpoint_url = sharpoint_url.
          INSERT into zl2cmy_customer values ls_mycust.
          COMMIT WORK.
        ENDFUNCTION.

  • ABAP HR How to create infotype with table control in it like Infotype 0008

    Hi Experts.
    I need help from u guys. My client requirement is to create custom infotype just like 0008 infotype which contain table control to save amount and wage types. I try to create infotype with table control using PM01, but that table control is in display mode only, i almost search every where to create custom infotype with table control but what ever threads in forum all are they unanswered and most of the threads for creating infotype. But i already done with infotype , but my main problem is table control.
    If any one have some suggestion for this please share with me.
    <removed by moderator> i am looking for positive reply.
    Edited by: Thomas Zloch on Aug 30, 2011 12:54 PM

    Hi
    I've created several infotypes with a Table Control and it is always the same story. You have to create a custom Z table to store the Table Control data (if you can have unlimited records), so in the PSXXXX structure you need to add a TABNR field to link the PAXXXX table and the Z one, just like the type table OM infotypes.
    Then in your code you have to control every possible operation, INS, MOD, DEL... and update the Z table accordingly (the standard code won't do that)
    If your TC fields appear in display mode, take a look at the Groups 1 and 3 in your fields, the must be set with the usual values for a PA infotype.
    If you have more questions, just ask,
    Regards

  • How to create a button like the one pictured here

    How would I create a button like the print button below?
    I was thinking actually make it two separate buttons placed next to each other. The print button obviously would just be a modified boolean, that's easy. But the drop down is a bit harder. I figure I could customize a drop down but because I haven't been able to play around with it in LabVIEW (don't have it at home) I'm not sure if you can modify the alignment of the box that actually drops down etc. Is the drop down box location and look something you can modify within the control editor?
    I'm guessing I could also use .net correct? But I am trying to keep it all with just control modification in LabVIEW if possible. Thanks.
    CLA, LabVIEW Versions 2010-2013
    Solved!
    Go to Solution.
    Attachments:
    buttonexample.PNG ‏6 KB

    for(imstuck),
    I'd use a multicolumn listbox and toggle it's visibility when the user clicks on the button.  I've attached an example:
    ~Simon
    Attachments:
    8-2-2010 2-04-25 PM.png ‏24 KB
    Print Drop Down Snippet.png ‏55 KB
    Print Drop Down.vi ‏29 KB

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • SAPUI5-How to create custom Split Page control

    I want to create a custom split -like page control using sap.m library instead of Splitter.This page should contain two areas left and right
    content with different width.How to create this type of page as a custom control?
    Please help me with this.

    Hi,
    I think There is no need to create Custom Page for the labels.
    To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    1. Create a page window and assign it to a page.
    2. Choose Edit --> Main windows.
    A dialog box appears.
    3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.
    4. Enter values in the fields Spacing and Number in the Horizontal group if you want to use multiple columns. You can ignore the fields in the Vertical group.
    5. Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the Horizontal and Vertical groups.
    Also Check these links.
    how to create labels in sap script?
    labels in script
    Labels in Scripts
    Regards
    Shiva Kumar

  • How to create a profile to control the access to Query Designer 2004s

    Hi all,
    I saw the note Note 962530 - NW04s: How to restrict access to Query
    Designer 2004s , where in alternative solution there is the approach on
    how to create a database table and modify the function module to control the access.
    However, we need to a security profile check that can prevent or allow
    who can access 04s tools. Because this is easy to maintain and we don't need to modify the database table time to time.
    Please update if it is feasible to have a check within the profile
    of the users to acces 04s query desinger. This way we can control
    effectively who can access new tools.
    Thanks,
    Dicky

    I can suggest that as this is a Security you might wanna ask the Person who is handling Security in your office.
    He can add different Roles which can then control their acess.
    For e.g. if you want that your user should be able to run Specific Queries a,b,c,d created by you.
    I will suggest interact with SEcurity Personal and ask him to create a Role X.
    You can then publish  your queries in Role X.
    So your users will have acess and security for X and they will then run the queries from them.
    Likewise, different other options are also there.
    If your queries are on Planning cube then things like giving them acess to Tools should take place similarly in different fashion.
    Your user can also use Query desinger and can opne queries from Roles .
    Hope this helps.

  • How to create array for activex control

    Now I am using microsoft form 2.0 combo box activex control in LabVIEW. My problem is I cannot create control array for the combobox like in visual basic. In visual basic, if we want to create control array for combo box or else, we just copy and paste onto the same form.
    For example if I copy combo1 and paste it onto the same form it will become 2 combo box i.e combo1(0) and combo1(1). So,how can I make same like that in labview using that activex?

    I'm sorry,I do not really understand. I've tried what have you told me by using automation refnum, but it is not working.
    I attached the file. if, let say , I want to make this three combobox red back colour simultanously, how to do it?
    Attachments:
    combo_box_activex.vi ‏28 KB

Maybe you are looking for