Get several panels in an extension

Hello

I'll have set up several signs in my extension. I saw similar posts here, but what he has laid down for them does not solve for me!

My first Panel looks in good condition, but by clicking on the menu for the second option does nothing.

I have a WidgetBoss for each:

Class

{

kPanelAWidgetBoss,

kPalettePanelWidgetBoss,

{

IID_IPANELMENUDATA, kCPanelMenuDataImpl,

}

},

Class

{

kPanelBWidgetBoss,

kPalettePanelWidgetBoss,

{

IID_IPANELMENUDATA, kCPanelMenuDataImpl,

}

},

ALocaleIndex for each:

resources LocaleIndex (kPanelAResourceID)

{

kViewRsrcType,

{

kWildFS, k_Wild, kPanelAResourceID + index_enUS

}

};

resources LocaleIndex (kPanelBResourceID)

{

kViewRsrcType,

{

kWildFS, k_Wild, kPanelBResourceID + index_enUS

}

};

The separate group for each Member:

resources involved (kPanelAResourceID)

{

{

1 group in the list

kPanelAResourceID,

kPluginID,

kNotResizable,

kPanelAWidgetActionID,

"",

kPanelAMenuPath,

kPanelAMenuItemPosition,

0,0,

c_Panel,

}

};

resources involved (kPanelBResourceID)

{

{

2nd Panel in the list

kPanelBResourceID,

kPluginID,

kNotResizable,

kPanelBWidgetActionID,

"",

kPanelBMenuPath,

kPanelBMenuItemPosition,

0,0,

c_Panel

}

};

A type definition:

type PanelAWidget (kViewRsrcType): PalettePanelWidget (ClassID = kPanelAWidgetBoss)

{

CPanelMenuData;

};

type PanelBWidget (kViewRsrcType): PalettePanelWidget (ClassID = kPanelBWidgetBoss)

{

CPanelMenuData;

};

And a definition of the resource itself:

resources PanelAWidget (kPanelAResourceID + index_enUS)

{

__FILE__, __LINE__, / / macro location

kPanelAWidgetID, / / WidgetID

kPMRsrcID_None, / / RsrcID

kBindNone, / / Binding (0 = none)

0, 0, 207, 95, / / framework: left, top, right, bottom.

kTrue, kTrue, / / Visible, Enabled

kFalse,                                                                                // Erase background

kInterfacePaletteFill, / / Color Erase

kFalse,                                                                                // Draw dropshadow

kPanelATitleKey, / / name of Panel

{

}

kInternalPopupMenuNameKey / / menu shortcut name (internal)

};

resources PanelBWidget (kPanelBResourceID + index_enUS)

{

__FILE__, __LINE__, / / macro location

kPanelBWidgetID, / / WidgetID

kPMRsrcID_None, / / RsrcID

kBindNone, / / Binding (0 = none)

0, 0, 207, 95, / / framework: left, top, right, bottom.

kTrue, kTrue, / / Visible, Enabled

kFalse,                                                                                // Erase background

kInterfacePaletteFill, / / Color Erase

kFalse,                                                                                // Draw dropshadow

kPanelBTitleKey, / / name of Panel

{

}

kInternalPopupMenuNameKey / / menu shortcut name (internal)

};

PanelB could not be found.

I guess I'm missing something obvious. Can anyone help?

Thank you

Liz

Maybe cleaning all InDesign caches will help you. Otherwise, I recommend adding features of resizing, just for the test.

Tags: InDesign

Similar Questions

  • In Yahoo Mail, when you compose an email I get a Panel "asking to leave this page. It does not matter that I choose to stay or leave, the Panel will appear again... and again... the only way is to force enough Firefox and start all over... help please...

    In Yahoo Mail, when you compose an email I get a Panel "asking to leave this page. It does not matter that I choose to stay or leave, the Panel will appear again... and again... the only way is to force enough Firefox and start all over... help please...

    Some extensions or toolbars can add such a report.

    It can also be part of the code on a page to prevent dataloss if you began to type text (composing a new mail) and you try to close this tab.

    You should be able to close this report and close the active tab.

    What I posted above is applicable to all platforms, including Mac.

  • In order to get several features of tab line do I downgrade to the version of firefox that supports one applications below?

    I want to show the tabs on multiple lines in firefox.

    While Firefox allows you to have as many tabs that you want to open at any time, if you exceed the width of the screen, you will then need to scroll left and right to see. I want to have multiple rows of tabs.

    In order to get several features of tab line do I downgrade to the version of firefox that supports one applications below?

    What are the best options for several features of tab line?

       Tab Kit - https://addons.mozilla.org/en-US/firefox/addons/versions/5447
       Tab Mix Plus - https://addons.mozilla.org/firefox/addon/tab-mix-plus/
       Tab Utilities - https://addons.mozilla.org/firefox/addon/tab-utilities/
    

    Best regards
    Bubba

    Extensions 'Tab Mix Plus' and "Tab Utilities" support Firefox 10.0a1, so no need to downgrade your old Firefox 7.0.1 for an even older version.

  • several panels, only close reminder?

    Basic question.  I am using a button leave common through several panels in my project.  So with a single callback function, I have a couple nested switch statements, the first of course check out of EVENT_COMMIT and other down looking for the active panel.  For example:

       switch (panel)         // TODO: this isn't working. panel variable doesn't seem to be changing
             {
                case AUTOPANEL:
                printf("AUTOPANEL");
                HidePanel(autopanel);
                        DisplayPanel(frontpanel);
                        break;
                case MANPANEL:
                printf("MANPANEL");
                HidePanel(manualpanel);
                        DisplayPanel(frontpanel);
                        break;
                case PASSPANEL:
                printf("PASSPANEL");
                HidePanel(passpanel);
                        DisplayPanel(frontpanel);
                        break;
                    case FRONTPANEL:
                printf("FRONTPANEL");
                QuitUserInterface(0);
                        break;
                }
    

    However, when I do that, I get very unpredictable behavior.  It would appear that the switch on the Panel is not what, in my view, that it should be in the callback.  The value of the Group seems not to match the value of the macro for the respective panels that I when I click on their buttons QUIT.

    Just to add some details to the answer of Wolfgang, consider that you can load the Panel even more than once, and each instance of the latter will have an independent life!

    Situation is as follows:

    • Whenever you load a Panel, you use the ID of the resource with the file name; as you noted, resource Panel ID are unique in the same UIR file, so the file name + resource ID symbolizes a single object.
    • When you actually load the Panel, LoadPanel returns a handle to the Panel, which, in turn, he identifies among the panels in memory; If you load the Panel once, the handle will be different. The system ensures that the Panel handles are unique in the application, so that each of them identifies a unique object. With the help of the handle Panel to manipulate the Panel itself or controls on that allows you to distinguish between all the existing objects that accurate that you are interesting in even if you have previously loaded several instances of it
    • When you talk to a control on a Panel, you use the ID of control with the handle of the Panel; the resource ID are unique in the same panel, new Panel manage + control ID identifies a unique object of all those in memory
  • Filling Panel Photoshop HTML Extension with a txt file entries.

    Hello

    I'm trying to find a way to read in a file of separate txt comma values of a table using javascript, then using the suite to fill an extension in PS CC2015 Panel that I write.

    Examples of entries in the txt file would be something like this:

    0,255,0, polished metal, 255, 255, 255

    77,200,0, Metal satin, 200, 200, 200

    Each entry represents a specific color with a defined material type value.

    The HTML Panel should then be filled with a button for each entry in the array into a table, the function of the buttons would be defined by a few simple extendscript.

    I could just write the HTML/Script to do this, but we need the Panel to update based on the txt file, so we can easily add/remove entries or values to update without having to get the updates for the extension.

    So far, I managed to read the txt file and return the entries in the txt file in a listbox from the code js on the net but it is not quite what I'm after because it only lists entries in a one-dimensional array and returns the set of line, rather than the table separated by commas that I need.

    This whole process in extendscript was fairly simple

    I read that reading txt file in a table that I need will be easily using PHP, but I have no PHP experience and have no idea if it would work even in a panel of Photoshop extended.

    If anyone has the directions on how to return an array with 2 dimensions in javascript that would be great.

    Thank you.

    If you create the file yourself, JSON is often used for such (in fact name is short for Javascript Object Notation). So first create data.json

    [{ "r":0, "g":255, "b":0, material:"Polished Metal", "r2":255, "g2":255 ,"b2":255},
    { "r":77, "g":200, "b":0, material:"Satin Metal", "r2":200, "g2":200 ,"b2":200}]
    

    Then in Javascript, it's just

    var data = JSON.parse(file_content)
    data[0].g = 120
    data[1].material = "Rusty Metal"
    file_content = JSON.stringify(data) // updated content to be written in file
    

    If the file is in the current format is not editable probably makes no sense. But learn JSON anyway: tutorial json for beginners learning to program part 1 JavaScript - YouTube

  • When starting a new spreadsheet in numbers I always get several sheets. How to remove?

    When I start a new spreadsheet, I always get several sheets. How to change it and how to remove additional sheets?

    Hi Dean,

    What model you open?

    To delete a sheet, click the v on the tab of the sheet and choose Delete in the menu that opens.

    Kind regards

    Ian.

  • How to get several beep?

    Hello

    I want to get several beeps output if a comparison condition gives output as true.

    Can someone tell me how to get several beep?

    Put the beep function in a loop with a small wait for the statement.

  • When I try to open my homepage from Yahoo using Firefox I get a panel display message 'connection to the server was reset while the page is loading. Try again "#Cure please!"

    When I try to open my homepage from Yahoo using Firefox I get a panel display message 'connection to the server was reset while the page is loading. Try again "#".
    Cure please!

    Do you find it with other browsers?

    If not, then try asking using Firefox for a.

    That you get with other sites with Firefox?

  • When I print I get several pages with a feel a little on all the pages I want to print

    When I print, I get several pages with what I print with a few lines on each page until what I printed is finished.

    mamorse,

    Thanks for the additional info. Lets try to download and execute printing and scanning doctor found here. It may fix a lot on its own, but otherwise it will give us a better idea of what is happening. The weakness of the signal is not likely the culprit (because he worked for a long time) but we can try to change that if other steps fail.

  • Whenever I have to connect on facebook, I get several schannel error messages 36874 and schannel 36888

    Whenever I login to facebook, I get several error messages for schannel 36874 and schannel 36888 in schannel 36888 sequence shows 40 mortals, then 107.le how block or stop this?

    Hi Stephane_patrick,

    Thank you for writing to Microsoft Communities.

    According to the description of the problem, it seems that you are unable to access\open the Internet Face book site.

    Until we start troubleshooting on this issue please provides us additional information by answering a few questions, this will help us better solutions to the problems.

    1. other sites work well?

    2. have there been recent changes to the computer before the show?

    3. what web browser do you use?

    Please go ahead and try to optimize Internet explorer by following the steps mentioned in this link.

    How to optimize Internet Explorer: http://support.microsoft.com/kb/936213/no

    Important: Reset Internet Explorer to its default configuration. This step will disable also any add-ons, plug-ins or toolbars that are installed. Although this solution is fast, it also means that, if you want to use one of these modules in the future, they must be reinstalled.

    Please follow these recommended steps and post if you still experience the problem.

  • Getting error on CO after extension of CO

    Hi all

    Im getting this error after the extension of CO

    In the Preparationjava.sql.SQLException query error: parameter IN or OUT to missing index: 3

    The cause code is


    String Item = row.getAttribute("InventoryItemId").toString ();

    String Org = row.getAttribute("OrganizationId").toString ();

    String say = row.getAttribute("LineAdjustedPercent").toString ();

    Dim Ext = row.getAttribute("Attribute1").toString ();


    Dim Query = "select CODE a.secondary_uom_code, (select b.unit_of_measure from MTL_UNITS_OF_MEASURE b where b.uom_code = a.secondary_uom_code) UOM, xxtmxc_primary_selling_suom (: 3: 1: 4)" PSUOM from mtl_system_items_b where a.inventory_item_id =: 1 and a.organization_id =: 2 and a.secondary_uom_code is not null ";"

    It is this function that is the cause, guidance on this topic would be great.

    Kind regards

    Louisette

    Dim Ext = (String) row.getAttribute ("Attribute1");

  • Was able to download and install the Prime Minister, but cannot install Photoshop Elements - get several error messages (software hacked, etc.).  Any ideas?

    Was able to download and install the Prime Minister, but cannot install Photoshop Elements - get several error messages (software hacked, etc.).  Any ideas?

    Download from adobe.com or prodesigntools.com site.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

    window using the Lightroom 3 link to see these "important Instructions".

  • Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC

    Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC

    This should be corrected in the next version.

  • AJAX get several tabular values II

    Hello
    Example "Multiple Get Ajax in the tabular values II" Denes Kubicek
     http://apex.oracle.com/pls/otn/f?p=31517:241:5798812617243::NO 
    does not include the buttons cancel, delete, send and add a line. But when the tabular form is created by APEX form has these buttons. The example is not intended for insert and update the data for this example. But I need to extend this powerful example to insert rows by clicking Add a line Update lines when you click Submit. Before I even try to implement a process to update I need to inform me if possible values (null) displays when you click on add a line in my example apex.oracle.com and Insert. Ajax get several II tabular values from the example has no data just static buttons, but within my application, I created standard buttons. Can someone help me remove these values (null) is displayed in the select and having also the standard text boxes appear when you click on the button Add a line?
    SELECT    '<img src="#IMAGE_PREFIX#list_gray.gif" '
           || 'onclick="popUp2(''f?p=&APP_ID.:3:&SESSION.::::'
           || 'P3_ROWNUM:'
           || '#ROWNUM#'
           || ''', 700, 700);" '
           || 'style="cursor:pointer;">' book,
           apex_item.text (32,
                           NULL,
                           80,
                           100,
                           'style="width:290px" ',
                           'f32_' || '#ROWNUM#'
                          ) subjects,
           apex_item.text (33,
                           NULL,
                           80,
                           100,
                           'style="width:50px;text-align:right" ',
                           'f33_' || '#ROWNUM#'
                          ) prices,
           apex_item.text (34,
                           NULL,
                           80,
                           100,
                           'style="width:130px" ',
                           'f34_' || '#ROWNUM#'
                          ) authors,
           apex_item.text (35,
                           NULL,
                           80,
                           100,
                           'style="width:20px;text-align:right" ',
                           'f35_' || '#ROWNUM#'
                          ) qtys
      FROM my_book_store
    My test on apex.oracle.com application has buttons that display (null) for each apex_item.text, when you click Add a line. Any information on this matter is greatly appreciated. In addition, data is stored in the my_book_store table, but it does not display as a table, is there a way to display data in a table based on the select statement? I think that's the reason for which the data is displayed only when selected.

    Published by: Charles on November 26, 2012 09:10

    woopsies! Normally, I add a block above html of the page of connection with them, but who has forgotten. It is apex_demo/demo

  • AJAX get several tabular values I

    Hello
    All those put in place the great example of damien Kubicek - ApEx
    -Section III - Ajax solutions get several tabular values I have? Within the
    my test apex.oracle.com workspace for that I've set up this example
    My tabular presentation. I created the table my_book_store and I also exported
    the site and imported data in the my_book_store table in
    Apex. Oracle.com test site. My table and data are the same as an example but
    I get this error
    failed to parse SQL query: ORA-01403: no data found
    Here's the code I added within the application. If someone sees
    everything that is not correct please point my error or errors please.

    Create the Table Script
    CREATE TABLE  "MY_BOOK_STORE" 
       (     "BOOK_ID" NUMBER, 
         "BLOB_CONTENT" BLOB, 
         "MIME_TYPE" VARCHAR2(4000), 
         "SUBJECT" VARCHAR2(4000), 
         "PRICE" NUMBER, 
         "AUTHOR" VARCHAR2(100), 
         "TOPIC" NUMBER
       )
    /
    
    
    CREATE UNIQUE INDEX  "SYS_IL0003125020C00002$$" ON  "MY_BOOK_STORE" (
    /
    Header HTML
    <script language="JavaScript" type="text/javascript">
    
    function f_set_multi_items_tabular(pValue, pRow){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    }    
    
        gReturn = get.get('XML');
    
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    }

    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    }
    }
    }
    }
    get = null;
    }

    </script>

    Tabular Form - Region Source
    SELECT     apex_item.select_list_from_query
                         (31,
                          NULL,
                          'SELECT subject d, ' || 'book_id r FROM my_book_store',
                             'style="width:250px" '
                          || 'onchange="f_set_multi_items_tabular(this.value,''#ROWNUM#'''
                          || ')"',
                          'YES',
                          '0',
                          '- Select Book -',
                          'f31_' || '#ROWNUM#',
                          NULL,
                          'NO'
                         ) book,
               apex_item.text (32,
                               NULL,
                               80,
                               100,
                               'style="width:190px" ',
                               'f32_' || '#ROWNUM#'
                              ) subject,
               apex_item.text (33,
                               NULL,
                               80,
                               100,
                               'style="width:50px;text-align:right" ',
                               'f33_' || '#ROWNUM#'
                              ) price,
               apex_item.text (34,
                               NULL,
                               80,
                               100,
                               'style="width:130px" ',
                               'f34_' || '#ROWNUM#'
                              ) author,
               apex_item.text (35,
                               NULL,
                               80,
                               100,
                               'style="width:20px;text-align:right" ',
                               'f35_' || '#ROWNUM#'
                              ) qty
          FROM my_book_store
    Application process - Set_Multi_Items_Tabular
    DECLARE
       v_subject   my_book_store.subject%TYPE;
       v_price     my_book_store.price%TYPE;
       v_author    my_book_store.author%TYPE;
       v_qty       NUMBER;
    
       CURSOR cur_c
       IS
          SELECT subject, price, author, 1 qty
            FROM my_book_store
           WHERE book_id = :temporary_application_item;
    BEGIN
       FOR c IN cur_c
       LOOP
          v_subject := c.subject;
          v_price := c.price;
          v_author := c.author;
          v_qty := c.qty;
       END LOOP;
    
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       HTP.prn ('<body>');
       HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
       HTP.prn ('<item id="f32_' || :t_rownum || '">' || v_subject || '</item>');
       HTP.prn ('<item id="f33_' || :t_rownum || '">' || v_price || '</item>');
       HTP.prn ('<item id="f34_' || :t_rownum || '">' || v_author || '</item>');
       HTP.prn ('<item id="f35_' || :t_rownum || '">' || v_qty || '</item>');
       HTP.prn ('</body>');
    END;
    I have two elements of the Application

    TEMPORARY_APPLICATION_ITEM and T_ROWNUM

    Hi Charles,

    Basically, there are few questions here

    First of all I don't know what causes the Oracle error

    failed to parse SQL query: ORA-01403: no data found
    

    I just rename the columns and back return that fixed the issue. I guess that the metadata of the apex was damaged for some reason any.

    There is no problem with your javascript or the application process.

    The issue has been with your application to the element Protection of Session State has been Restricted - can not be set browser and you try to set their via JavaScript which will fail, I changed it to unlimited use.

Maybe you are looking for

  • Re: Satellite L850 - 0C9 - cannot use USB3.0 external HARD disk

    Hello! I am looking for help from you guysbecause I can't use my NEW SEAGATE USB 3.0 drive HARD EXTERNAL 2 to with my labtop (L850 - 0C9) My labtop has 2 blue USB ports and I guess it's USB 3.0 and I checked it manual. but when I tried to copy data t

  • No network work - computer laptop IdeaPad Z4070 and Linux Fedora 20

    Salam, Salvation Currently, I am not able to connect to the internet using my laptop IdeaPad Z4070 using Linux Fedora 20. The network device is detected as: Rev10 Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet ControllerSmart Wireless attache

  • Print Spooler service stops still.

    I am facing a very grim situation, because of the Vista PCs always Printer Spooler service stops. After stopping these services all usury priters hidden and I can't add a printer. Aftet I I restart manually from the services but a few seconds it stop

  • Series of HP Photosmart 7510 went offline

    My sudden printer Photosmart 7510 series went offline.  Now it has just worked well for a year with Windows 8 and 8.1.  Today, it is now said that it is in offline mode.  Anyway the systems indicate that it should work.  The power is on, the wireless

  • Windows 7 is more validated

    My copy of Windows 7 Professional is valid, but now I get a message that is not.  I recently reloaded the OS due to a problem that couldn't be solved otherwise.  I use the OS reloaded in the months preceding this validation error message started appe