Is it possible to create a panel with JavaScript?

Hi friends
As I´m studying JavaScript and the user interface creation...would like to ask (more for curiosity):
Is it possible to create a new panel for Illustrator using JavaScript? Or this is only possible using C++?
(in the Window Class UI we have the "palette" creation method..so wondering the result of it too)
Thank you a lot
Gustavo

Hi Larry
Thank you a lot for sharing this reference. This has alternative explanations from the JavaScript Tools Guide that already come with the Extended Script Toolkit SDK (I´m reading this and finding very very useful).
My question, however, is not covered in any of the manuals.
I´d like to confirm if a panel (like Brushes, Swatches, Appearance and Layer Illustrator panels) can be made only via C++??? (and not via JavaScript).
Can I assume the Script UI capabilites in JavaScript can resume itself on creating dialog boxes only (not panels that persist, keep opened in the software, also could be docked in the side of app)?
Thank you
Gustavo.

Similar Messages

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Is it possible to create a Column with Conditional Mandatory with another Column?

    Is it possible to create a Column with Conditional Mandatory with another Column?
    For example
    In a Table we have column A, B, C.
    A is Primary Column.
    B is Optional
    C is Conditional Mandatory.
    A B
    C
    12345 ABC
    OK
    12346 NULL
    NULL
    12347 ABC
    OK
    Only if the B Column has the value then only C column should be mandatory

    I guess you can't create a condtional mandatory column directly. However, you can use check constraint to on the column
    create table YourTable
      A int primary key,
      B char(3),
      C int,
      constraint ch_con check(
                                B
    is not null
    or C is null

  • Is it possible to create DVD Templates with Motion for burning Blue Ray DVDs from Final Cut Pro X?

    Is it possible to create DVD Templates with Motion for burning Blue Ray DVDs from Final Cut Pro X?

    As far as I know, motion templates can only be used with DVD Studio Pro. FCP X only lets you add a background image to the DVD menu.

  • Is it possible to create a timestamp with an accuracy of 1ms?

    I want to acquire data with PCI-6023 and write them with a precise timestamp to a file. Is it possible to create a timestamp with an accuracy of 1ms?
    Maybe somebody can tell me experiences with logging data over a time periode up to 24 hours (and time-accuracy of 1ms)?

    Hi Hans, This forum is related to one of National Instruments' automation products rather than data aquisition. Perhaps you will acheive better results if you post your question to one of the "Measurement Devices" forms instead.

  • Is it possible to create a tree with drag-and-drop functionality using ajax

    I saw these samples;
    Scott Spendolini's AJAX Select List Demo
    http://htmldb.oracle.com/pls/otn/f?p=33867:1:10730556242433798443
    Building an Ajax Memory Tree by Scott Spendolini
    http://www.oracle.com/technology/pub/articles/spendolini-tree.html
    Carl Backstrom ApEx-AJAX & DHTML examples;
    http://htmldb.oracle.com/pls/otn/f?p=11933:5:8901671725714285254
    Do you think is it possible to create a tree with drag-and-drop functionality using ajax and apex like this sample; http://www.scbr.com/docs/products/dhtmlxTree/
    Thank you,
    Kind regards.
    Tonguç

    Hello,
    Sure you can build it, I just don't think anyone has, you could also use their solution as well in an APEX page it's just a matter of integration.
    Carl

  • Is it possible to create purchase order with zero value ?

    Is it possible to create purchase order with zero value ?

    Hi,
    There are two scenarios where the purchase order is created with zero value.
    1. Standard Purchase order with Free tick indicator.
    Whenever we expect a material with free of cost from vendor, we use to put the free indicator in item overview.  This means the material is valuated at zero price irrespective of price control in material master. Quanitiy is updated while receipts.
    Conditions tab in item detail doesnt appear.
    2. Consignment PO.
    While creating a purchase order for consignment, the system doesnt ask us the price and the condition tab doesnt appear in item detail.
    An info record for consignment must be maintained before making the GR.
    Hope i have clarified.  If you want any further clarification. please do reply.

  • How do we create a panel with a title on it

    How do we create a panel with a title on it (something like the titled border in java swing)

    Thanks John,
    But, I already have a panel box with many panel form layouts inside and would like to have a title on one of the panel form layouts. So, a panel box isn't the one I am looking for.
    More like the titled border shown in here [http://java.sun.com/docs/books/tutorial/uiswing/components/border.html#demo]
    thanks again
    Anwar

  • Is it possible to create sub-client with in SAP production (PRD) client

    Hello Experts,
    Is is possible to create sub client with in SAP production client?
    The question came to mind is that if I am the father company of two child/sub companies and both these function under my company and the users of all the companies will have different SAP log in . But, I can I create a Main PRD client say 'PRD L1 and under this client I create PRD L2 and PRD L3.
    Is that possible and seems logical?
    Thanks & Regards
    Saurabh

    This is not a question for this forum, because you are trying to discuss security where you should be trying (or rather your FI/CO department should be) to discuss business scenarios.
    I never dreamed (after 20 years doing SAP), that I'd quote the original SAP documentation on clients vs. company codes again, ever - but here it goes:
    Company Code
    Definition
    Smallest organizational unit of external accounting for which a complete, self-contained set of accounts can be created. This includes the entry of all transactions that must be posted and the creation of all items for legal individual financial statements, such as the balance sheet and the profit and loss statement.
    The definition of the company code organizational unit is obligatory .
    Anything bigger goes to a different client.
    Try to come up with a business architecture first and adapt security after, accordingly.

  • Is it possible to create a dynamic(with a select) check constraint?

    create table a (col_to_be_coded_fora number);
    create table b (col_to_be_coded_forb number);
    create table c (col_name varchar2(20), col_code number, col_desc varchar2(20));
    insert into c values ('col_to_be_coded_fora', 1, 'active');
    insert into c values ('col_to_be_coded_fora', 2, 'de-active');
    insert into c values ('col_to_be_coded_fora', 3, 'pending');
    insert into c values ('col_to_be_coded_forb', 10, 'school');
    insert into c values ('col_to_be_coded_forb', 20, 'hospital');
    insert into a values ( 1); -- meaning 'active' for table a, column col_to_be_coded_fora, can go in
    insert into a values (10); -- meaning nothing for table a, column col_to_be_coded_fora, must give error
    insert into b values ( 1); -- meaning nothing for table b, column col_to_be_coded_forb, must give error
    insert into b values (10); -- meaning 'school' for table b, column col_to_be_coded_fora, can go in
    I know i can handle this problem with dividing table c into to tables and creating foreign key relationship.
    in this demo case i have only a and b, 2 tables but i want to encode thousands of tables with a table like c.
    İs it possible to create a dynamic check constraint on a table which selects c table for the inputs that have permision?
    Or do i have to use after insert, update triggers on table a and b to ensure this functionality?
    Is there a smarter implementation for this need, may be a design change?
    Thank you,
    Kind regards.
    Tonguç

    Hi Tonguç,
    A small design change makes it possible to do this with simple foreign key constraints.
    I would do something like:
    ual303@ORKDEV01> CREATE TABLE c (
      2    col_name VARCHAR2(20),
      3     col_code NUMBER,
      4     col_desc VARCHAR2(20),
      5     PRIMARY KEY (col_name, col_code)
      6  );
    Tabel is aangemaakt.
    ual303@ORKDEV01> CREATE TABLE a (
      2    col_to_be_coded_fora NUMBER PRIMARY KEY,
      3     col_name VARCHAR2(20) DEFAULT 'col_to_be_coded_fora' CHECK (col_name = 'col_to_be_coded_fora'),
      4     FOREIGN KEY (col_name, col_to_be_coded_fora) REFERENCES c
      5  );
    Tabel is aangemaakt.
    ual303@ORKDEV01> CREATE TABLE b (
      2    col_to_be_coded_forb NUMBER PRIMARY KEY,
      3     col_name VARCHAR2(20) DEFAULT 'col_to_be_coded_forb' CHECK (col_name = 'col_to_be_coded_forb'),
      4     FOREIGN KEY (col_name, col_to_be_coded_forb) REFERENCES c
      5  );
    Tabel is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_fora', 1, 'active');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_fora', 2, 'de-active');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_fora', 3, 'pending');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_forb', 10, 'school');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_forb', 20, 'hospital');
    1 rij is aangemaakt.
    ual303@ORKDEV01> -- meaning 'active' for table a, column col_to_be_coded_fora, can go in
    ual303@ORKDEV01> insert into a(col_to_be_coded_fora) values ( 1);
    1 rij is aangemaakt.
    ual303@ORKDEV01> -- meaning nothing for table a, column col_to_be_coded_fora, must give error
    ual303@ORKDEV01> insert into a(col_to_be_coded_fora) values (10);
    insert into a(col_to_be_coded_fora) values (10)
    FOUT in regel 1:
    .ORA-02291: integrity constraint (UAL303.SYS_C0033537) violated - parent key not found
    ual303@ORKDEV01> -- meaning nothing for table b, column col_to_be_coded_forb, must give error
    ual303@ORKDEV01> insert into b(col_to_be_coded_forb) values ( 1);
    insert into b(col_to_be_coded_forb) values ( 1)
    FOUT in regel 1:
    .ORA-02291: integrity constraint (UAL303.SYS_C0033540) violated - parent key not found
    ual303@ORKDEV01> -- meaning 'school' for table b, column col_to_be_coded_fora, can go in
    ual303@ORKDEV01> insert into b(col_to_be_coded_forb) values (10);
    1 rij is aangemaakt.
    ual303@ORKDEV01>Cheers,
    Colin

  • Rants: Easier way of creating SWF panels with CS5?

    Last week I got a fairly advanced SWF panel in Photoshop CS4 running executing JSX scripts. But when I started to look into developing for CS5 everything changed and former SWF panels and their scripts do not work anymore in Photoshop CS5. And honestly I think there are way to many complicated little steps in the way to just get started. I am probably stuck on this for several weeks just to get a hello world demo running- and I am not sure If I want that. Getting the CS4 version running was a matter of 3 nights, even though back then the documentation was really hard to find and often incomplete.
    So upon studying the SDK and the tutorials that adobe provides I noticed a few annoying blockers in my way
    Adobe Flash builder dictation, some things are very restrictive and shown only for just that IDE platform. My choice of scripting environment is FlashBuilder however for various reasons (free and coding speed are 2 of them). The documentations and Tutorials however hide many important steps that are going on in the background. If the compiler gets certain arguments I need to know that, same if some ANT scripts or alike deploy files to certain folders.
    upon configuring my computer before scripting I had to change a windows registry key (HKEY_CURRENT_USER\Softwarea\Adobe\CSXS2Preferences, playerDebugMode = 1). However that key entry doesn't even exist to begin with on my Windows 7 computer even though Photoshop CS5, Extention Manager and ExtendScript Toolkit are present and installed.
    I need a special SDK compiler instead of the latest FlexSDK, this makes things only more complicated and confusing. I have it now but to figure that out took a while, as this is completely different from how things used to work with CS4.
    Everything is flex focused it would be nice if some tutorials could have a focus on pure AS3 as well, for those who don't like the Flex framework or GUI.
    CS4 and CS5 (Photoshop) seem to be incompatible in the way one can deploy or create SWF panels, this is a major down for any developer that is interested in supporting booth applications. I happen to work in a environment where still a majority of people work with CS4. Also the CS4 documentation (Photoshop) for the SWF panels seem to have vanished, this makes this issue even worse.
    So what I want is:
    The most minimalistic working example straight to the point just to get a SWF panel in Photoshop CS5 running executing some JSX script using eval for example. This is easy in CS4 but very restricted and complicated in CS5 .
    dropping a SWF file in the Photoshop/plugins/panel folder works but it resizes wrong (even though stage.scaleMode is set to noScale), and any CSXSInterface methods seem to be ignored (CSXSLibrary-2.0-sdk-3.4-public.swc used).
    I think I gave up for now on CS5, to restrictive, complex and incompatible with CS4 are my main complaints- I hope this gets through as some feedback - or maybe there is a answer on all my questions?

    Hello,
    one answer to your last question could be this cookbook, then as you probably already know there's the Photoshop panel developer's guide (the CS5 isn't that different from CS4...)
    As the #1 messy coder around (and not that much skilled), I understand your complaints. I'm focused on Photoshop only, and the panel guide for CS4  was more than enough. My learning curve with CS SDK is, to put it mildly, steep (since I've not really any previous experience with Flex - and I agree, using 3.4 SDK and not 4.0 may lead to some confusion), but I'm optimistically confident that CS SDK for CS6 will be far more usable.
    I find particularly annoying that to make life easier Adobe created CS Extension Builder, but to get it is nearly impossible (at least for me: I don't know if Gmail can't get thru Adobe mail server spam control, but in the last 4 months I wrote several emails to Roger Risdal, the "Partner Product and Business Developer Manager" in order to get info about the developer partnership required, and I got as the only answer a couple of out-of-office autoreply) Rumors say that Adobe's DevNet will undergo some robust changes (when, I don't know)  - I hope they will change their mind about the way Extension Builder will be (or not be) distributed.
    One last optimistic consideration is that the tools needed to deploy an extension (the ucf.jar for instance) and the general workflow (write the manifest.xml, pack everything with that java command line utility into a zip-like file, the .zxp, then write an .mxi to access features like auto-update and re-pack again into *another* .zxp) are far from having a good usability and being straightforward... so far that in my opinion the newer releases will surely be better than this one.
    That said, I understand that experienced developers are happily plunging into CS SDK while I'm having hard times keeping my head above waters, and I'm sure CS SDK will lead to a very interesting future.
    By the way, to drop the SWF in the panel's folder isn't a good idea if you want the extension to have the right dimensions (this is something I've learnt) - the manifest.xml is the right place.
    Ciao,
    Davide

  • Creating a panel with multiple canvasses on it, in complementary colors

        public Dancefloor(Dimension patches, int size, Color color)
            //create JPanel
            super();
            backgroundColor = color;
            numberOfPatches = patches;
            patchSize = size;
            //set Size of Dancefloor, make a conversion because the returned type isn't int but double and the setSize
            //function is only able to handle int
            setSize((new Double( numberOfPatches.getWidth() * patchSize) ).intValue(),
            (new Double( numberOfPatches.getHeight() * patchSize) ).intValue() );
            //set bacground color of the panel
            setBackground(backgroundColor);
            //create a number of patches, as submitted to the constructor(at the moment as Canvas)
            //Create a for loop which will be looped as much times as the number of patches
            for(int d = 0; d < new Double(numberOfPatches.getWidth() * numberOfPatches.getHeight()).intValue(); d++)
                //create a new canvas and set a background for it
                patch = new Canvas[new Double(numberOfPatches.getWidth() * numberOfPatches.getHeight()).intValue()];
                patch[d] = new Canvas();
                patch[d].setBackground(backgroundColor);
                //set another background for the patches that are not even, but have an odd number
                if(d % 2 != 0)
                    float[] colorHSB = color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), null);
                    colorHSB[0] += 0.5;
                    if(colorHSB[0] > 1) {
                        colorHSB[0] -= 1;
                    patch[d].setBackground(new Color(Color.HSBtoRGB(colorHSB[0], colorHSB[1], colorHSB[2])));
        }Above is the code of the constructor of my class called Dancefloor, it attempts to create a panel(the 'dancefloor') with multiple canvasses('patches') on it. The even patches should have the color specified in the constructor, the others should have a complementary color as background. this is done using the last if-statement.
    When executing however, all patches have the color specified in the constructur and so you all you can see is a panel with a background instead of a panel with a patchwork of 2 different color canvasses on it
    I hope this explanation was pretty clear, I hope someone is able to help me out
    thomas

    i would suggest if you are going to use a JPanel, simply create an array of Rectangles that represent all of your patches. Then override the paintComponent(Graphics g) method of the JPanel to and use the fillRect(int x, int y, int width, int height) method from the graphics class to draw all of your rectangles something like this
    JPanel floor = new JPanel() {
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              for (int j = 0; j < myRectangles.length; j++){
                    g.setColor(whateverColor)
                    g.fillRect(myRectangles[j].x, myRectangles[j].y,
                                     myRectangle[j].height, myRectangles[j].width);
    }btw, you can use the field values width and height from Dimension class to retrieve an int value, insted of using getWidth() and getHeight just call myDimension.height or myDimension.width

  • Is it possible to create a page with a signature, that can be then applied to other pages?

    I want to know if I can create a page, with a place for an ink signature, and that signature can be then copied onto other pages within the pdf where the same person's signature is needed.

    I would like to invite you to take a look at my Nugget on Action Engines.
    Since you have a data value that must be available for live updates in more than one place in the code, an Action Engine will provide a reliable method to share that value. You will update the Action Engine any time the control changes. All other function that require that information can read the the value form the Action Engine.
    That method has been in use since LV version 2 and provided the AE is implemented correctly (see Nugget) it gives good performance and helps keep code modular.
    I hope that help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is it possible to create a Synonym with different column names

    Hi,
    I want to create a Synonym with different columns names (Columns not in original table) . I am not sure if this can be done . Any suggessions...
    Thanks in advance....

    Synonyms are not limited to tables. Accroding to the SQL Reference, a synonym is:
    an alternative name for a table, view, sequence, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym.
    In fact, synonyms are not even validated until they are used:
    SQL> create synonym my_synonym for table_which_does_not_exist;
    Synonym created
    SQL> select * from my_synonym;
    select * from my_synonym
    ORA-00980: synonym translation is no longer valid

  • Creating filling panel with insets without gridbaglayout

    Hi,
    This is quite a newbie prob but i can't seem to get it right. I want a Panel with two panels. Both with insets. I want the first to only fill horizontally. The second has to fill-up the rest of the panel. Because Boxlayout and Borderlayout don't support insets with layout i tried the gridbaglayout, but i can't get the second panel to fill the remainder of the panel. It stops halfway.
    contentPane.add(one,
    new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL,
    new Insets(2, 2, 2, 2), 0, 0));
    contentPane.add(two,
    new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
    GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0));
    Can anyone tell me how to do this?
    Much thanks
    Hugo Hendriks

    You can use:
    panel.setBorder(BorderFactory.createEmptyborder(2,2,2,2));
    to set insets on a JPanel. I believe Insets is the "old" way of doing borders.
    Regards,
    Tim

Maybe you are looking for

  • Error with Crystal Reports/VS2010

    I've got a user that is getting the following error when trying to view a report from a .NET desktop application...the type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception I've installed the runtime engine f

  • Issue in OTR creation with Numeric Range of Customer Code

    Dear All, I am facing error while creating OTR with reference to Sales order in SAP TM system. The Error message "Business partner internal ID 0000710420 does not exist" appears when I Use Customer Code as Numeric, whereas if I create customer with A

  • Printout of single journal entry

    Hi All, We have a requirement where client wants to give range of GL accounts in the selection screen but want each and every document, i.e., journal entry to be printed separately. I checked Standard SAP reports, but if we select a document number r

  • Updated to OS 3.0, have two listings for each contact... why?

    Just updated to 3.0, and I quickly noticed more options for the Contacts app, but every listing I had prior now has two listings each. At the top is "All Contacts" - Below that "from my Mac", with groups from my Address Book from my Mac and below tha

  • F6 Option SATA controller

    Hello,  I have 6 new 6427-CTO  D10   I ordered them with Dos to save Money.  Using the  F6 option to load the SATA driver for XP Pro 64bit,  There are about 10 controller drivers to choose from.  None seem to work, the system hangs on   Windows start