Using ADM for create custom drawed items

Hi,
I've started a new color selector plugin for CS3. The Win version works well. But the Mac version doesn't call the draw procs (set by Item Suite's SetDrawProc).
I've create all items on the dialog box by ADM Dialog Suite (CreateItem).
All the track and notify procs are called. The dialog's draw proc also called. But the individual item-s draw proc doesn't.
The dialog created by this:
ADMInt32 item = gGlobalData->gDialogSuite->Modal
gGlobalData->gPluginRef,
GetLocalizedString(locDialogCaption),
0,
kADMModalDialogStyle,
DoUIInit,
NULL,
kADMTrackEnterBeforeDialogDoesOK
In DoUIInit :
_item = gGlobalData->gDialogSuite->CreateItem(dialog, Enums::kItemColorWheel, kADMUserType, &_colorWheel, ColorWheelItemInitProc, NULL, 0);
In ColorWheelItemInitProc:
gGlobalData->gItemSuite->SetDrawProc(item, ColorWheelDrawProc);
gGlobalData->gItemSuite->SetTrackProc(item, ColorWheelTrackProc);
The ColorWheelTrackProc's called the ColorWheelDrawProc doesn't.
I've tried other item types also. They didn't worked too.
The ADM Doc says: ADM dialogs, ADM items, and ADM entries can all have custom draw handlers, which
draw the object on the screen.
So where is the truth?
Regards
Zoltán

Thank you for your notice (twice).
In the future release of this plugin we will use native dialog code for win and mac. Until then we have to use ADM. Right now we have no other choice because of the deadline.

Similar Messages

  • Few queries about foreign revaluation for vendor/customer open items

    I am trying the transaction F.05 for the first time for vendor & customer open items in foreign currency. I have a few queries:-
    1. The ouput contains 2 exchange rates. One is picked from the transaction header. My query is from where is the other rate being picked up. In my current system, I could make out that exch rate in transaction header is being picked automatically from table OB08....however I am unable to deduce the source of the 2nd exch rate.
    2. What is the significance of "balance sheet preparation valuation". Earlier in test runs, only "new difference" was getting populated. However the user wanted to see "old diff" also. So while doing some trial run in test client, I checked the "bal sheet prep valu" and posted.....after this run, I am getting values in "old diffe" and "new diff" also. And the posted amount is the difference of the two. What is the significance and ideal way?
    3. Should the entry be reversed if I am revaluating at year end? Why I am asking is because in some threads I read that revaluation at year is not to be reversed....
    Thanks,
    SM

    1. To find out difference latest date(Key Date for OI Overview) will be taken by comparing with document posted dated. Based on that system shows diffrences
    2.   The items are valued using the exchange rate valid at the key date. The
          difference determined in local currency is output and posted. The
          valuation can also be done for parallel local currencies and according to
          different valuation approaches (HGB, GAAP).
          The result of the valuation is required for the creation of the financial
          statements. You should therefore carry out the valuation before the
          grouping of receivables and payables with program SAPF101. The valuation
          difference is then noted in the document. Use the valuation areas to
          calculate a different valuation method, or to save the result for further
          processing activities.
    3.   we need to reverse entries .

  • Still possible to create  custom web items in WAD 7.0?

    Hi,
    in WAD 3.5 I was able to create custom web items and use them in the WAD after making the correct entries in the RSRRENDERER tables. Today I tried to do the same in an 7.0 environment, however, I didn't find my web item in the left hand side in the WAD. Is it still possible to create you own web items in 7.0?
    Kind regards,
    Tom

    Hi,
    Pls chk this;
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/spat/index.htm?sp1=SAPKW70012]
    SAPKW70012 - change the last 2digits to the SPlevel you need to see all the included notes in that SP
    Hope this helps,
    regards
    CSM Reddy

  • Why use Dreamweaver for create web pages

    Hi I am new in Dreamweaver and I want to know why use Dreamweaver for create web pages?

    Twitter
    http://twitter.com/altweb
    Blog
    http://alt-web.blogspot.com/
    Site
    http://alt-web.com/

  • Using instruction for creating field catalog to archive object "MM_MATNR"

    Hi all,
    I need a using instruction for creating a new field catalog to archive object "MM_MATNR". I'd like to create a field catalog using some fields of tables mara, makt, mvke and marc.
    Thanks for your help!

    Hi,
    Go to following link;
    [Material Master Archiving|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f75a80-867f-2d10-7aa6-ac164e43e89f?quicklink=index&overridelayout=true]

  • Regarding creation event in user exit for create customer

    hi gurus,
    in user exit how to create event for create customer
    regards
    vijay

    Hi
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    mark if helpful
    Regs,
    Tushar Mundlik

  • BADi used for creating customer own data in transaction me52n

    Hi experts,
    please any one tell me what is the procedure for creating or changing. How to get access for customer own data in transaction me52n. How to get authorization checks.
    thank you,
    regards
    vijay krishna

    Hi
      check this link.
    Name of Badi used with transaction ME52N
    Thanks
    Viquar Iqbal

  • What are the methods used for creating customer

    i have to upload a text file and create customer using idoc .can any one suggest the methods used to fullfil this requirement

    Hi,
    Upload the file using the function module GUI_UPLOAD into an internal table then try to pass the values from the file to the segments in the idoc DEBMAS03 using the function module MASTERIDOC_CREATE_DEBMAS to create the customer.
    Any doubts regarding you can clarify.
    Thanks&Regards
    Sarves

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • Use Tax for Free of charge items

    Here is the scenario:
    In our Business, there is a process to give a Free item with mostly all the products sold online. In SAP, we will create regular sales order with 1 line item as TAN and other item category as TANN.
    The Business wants to calculate Use tax on the 2nd line item where Net value=0. As we use the same Pricing procedure, we cannot charge different taxes based on line item.
    The other option was to send the cost details to Vertex, so that they can store it in Vertex and use for Tax calculations. The technical issue is that whenever the Net value=0, Vertex RFC is not called.
    We have proposed to create a report in SAP which will tell them the order details with Free items but this is not acceptable to Business.
    Has anyone worked on such scenario where Use tax is calculated on the Sales side for Free of charge items.

    The basic concept in tax is seller can levy the appropriate tax on the items which they are billing.  This being the case, I am not sure, why for a free of charge item, tax should be levied.  Can you please share in which Business process, this is being followed.  Needless to mention, if at all you want to achieve this requirement, have a separate condition type for this free goods, set as statistical, so that, only tax portion would be posted to FI.
    G. Lakshmipathi

  • Using SDK to create custom XMP panel in Bridge CS4

    Using the SDK materials how exactly does one go about creating their own custom XMP panel for Bridge CS4?
    I feel like I'm getting close- I was able to copy the BasicControlSamplePanel folder from SDK to my local C drive @
    C:\Documents and Settings\tony\Application Data\Adobe\XMP\Custom File Info Panels\2.0\panels
    I figure once that file is in the right place I can simply modify it to get custom fields
    Now when I did this I noticed in Bridge when rightclicked on an image and clicked file info- the  BasicControlSamplePanel tab was visible but upon clicking on BasicControlSamplePanel tab there was nothing in this dialogue box. Tried restarting computer- and still nothing- seems like it is the correct folder what do I need to do to get the properties to show up
    Help please
    Thanks
    Tony

    Hi Tony,
    please refer to the section "Creating custom XMP properties using XML" in the XMP FILEINFO SDK PROGRAMMER’S GUIDE for information how to create custom panels for the metadata panels in applications like Bridge or Premiere.
    Regards
    Jörg
    Adobe XMP

  • Profit Center for Vendor/Customer line item in F-02

    hi all,
    We have implemented SAP ECC 6.
    At the time of vendor line item posting, there is no input field for profit center.
    Can anyone please tell the way out for Profit Center field pop up in case of t-code like f-02 for vendors & customers
    Abhishek

    Please note the following:
    - On FBL5N and alike customer/vendor line item reports you won't find
    the field profit center filled; hence you can't directly input it during document entry (as pre-mentioned)
    and the profit center for customer/vendor gets inherited (as of document splitting functionality) from the document other line item(s) (according to the defined document splitting rules...)
    - Yet you can use the below reports (with New G/L.) to get the customer/vendor line items wise reporting over a profit center (i.e. unlike FBL5N & showing the inherited customer/vendor profit center in the G/L. view)
    S_AC0_52000887 - Line Items->Open Items->Receivables: Profit Center
    S_AC0_52000888- Line Items->Open Items->Payables: Profit Center
    In both reports you can use:
    "Custom Selections" -Dynamic Selections Icon- enabling you to filter the output according to
    a. Customer line items specific data entered within the posted document(s)
    b. General ledger items of the G/L. view of the posted document(s)
    & the "Output type" includes like most of the New G/L. Reports:
    - Graphical report output
    - Classical drill-down report
    - Object list (more than one lead column)

  • Fields for creating a line item

    Hi
    can anyone tell what are the fields that must be populated in VBAP table to create a line item in a sales order.

    Hi Jayanth,
    it depends on the specific field group customizing which fields are required, which are optional, which are not open for input and which get default values.
    You may ask a functional or try in the transaction.
    Regards,
    Clemens

  • How to use CSAP_MAT_BOM_MAINTAIN for deleting / changing sub-items?

    I'm trying to use CSAP_MAT_BOM_MAINTAIN for BOM create / change / delete.
    Issue: This Function module is not working when I'm trying to delete / change sub-items of a BOM. I'm getting update termination (ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC) during BOM post.
    Is there a way to fix this?
    (1) BOM creation part is working fine
    (2) BOM item (without any sub-item change) change / delete is also working

    hi
    The following parameter are important parameter and mandatory
    Matnr ;  Enter the material Number
    BOM_USAGE : Ther many BOM available that is sales BOM and Production BOM etc  here you need to mention usage of BOM that is for sales or production
    I_STKO : Enter the BOM Header information  . Note : Ask your Functional consultand
    Apart form this parameter, all are optional so do worry
    regards
    anand kumar

  • Using DMR for multiple GR line item

    Hi,
    I would like to ask for some clarification in using DMR.
    For example is I have multiple line item for a GR with separate Inspection Lot Number. How will it be handled during DMR?
    A scenario is for a example, I have 10 lot. First 9 lot skipped then 10th lot inspected, then if fail do normal inspection for the next 5 lot.
    How will the system behave if GR is done at the same time for the 10 line item.
    Thank you,
    Raymond

    Dear Raymond
    Also there is another dimension to this. There are two type of timing fo Dynamic modification rule
    1) Dynamic Modification at Lot Creation
    For dynamic modification at lot creation, the quality level is updated when an inspection lot is created. The system assumes that the forthcoming inspection will lead to an acceptance of the inspection lot or characteristic.
    An inspection lot, which is created immediately after the quality level is updated, uses the information in the updated quality level without a usage decision having been made.
    If dynamic modification is carried out at lot creation and the inspection lot is subsequently rejected, the system updates the quality level again when the usage decision is made. The new inspection stage is used by the system to calculate the sample sizes for the next inspection lot.Changing the quality level does not affect inspection lots that were created in the meantime.
    2) Dynamic Modification with the Usage Decision
    For dynamic modification with the usage decision, the system updates the quality level when you make the usage decision. At this point, the system evaluates the conditions for an inspection stage change based on the dynamic modification rule and, depending on the results of the current inspection, it determines whether or not the inspection stage should occur.
    Regards
    Gajesh

Maybe you are looking for