How to make a custom control or dial rotate properly

I am trying to make a custom dial by replacing the needle with a picture of a human leg. However, when I try importing the picture into the Customize mode the leg rotates, but it is always pointing up-down. I want to make it so the toes of the leg move to each tick mark and knee is at the pivot point. How can I change this? Thanks!

What LV does now it does rather well.
Over the years I have only heard a cry for this feature a handful of times so it appears the demand for this feature is quite limited.
NI put their resource where it will do the most good. If the was an out cry for this feature (That I want by the way) Ni would concider it.
I had a detailed discusion with R&D over this issue. I do not remembe the detaitls so I don't think I will reveal any secrets but here goes...
Most graphics in LV are represented using a method that deals with them as a rectangle with a top left and bottom right corner. the Needles etc are special little critters that use anoth represntation that goes back to features originally exposed for old MACs. AS long as the image used to rreplace the needle is of the proper type LV can rotate it. Example is the "Arrow" decorations. THese are in the propber form and can be used to replace the needle.
I explored what it would take to expose the ability to create those special widget myself end with R&D walking away shaking thier heads and I got the impression I should not hold my breath.
So that is waht I know about the "why" behind why we are limited in rotating images.
But as mentioned above there are multiple work-arounds available so use one of those and if you really want the rotating image stuff, submit a suggestion.
Your brother in wire,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How to make a custom TableModel for ResultSet

    Hi,
    I am doing my University Team Project using Java and MySQL what would be the best way to implement a custom TableModel for a JTable that shows the data from the MySQL database.
    I've googled it for a couple of hours but all I can really find is examples of how to add static data into the jTable.
    The updating of the database through Java works fine, but I would like to show the results in a JTable.
    I need help on how to implement a TableModel that uses a ResultSet to populate a JTable.
    Any examples of how to make a custom TableModel or links to something that shos me how to do it would be great.
    Thanks
    Shazan Miah

    I've googled it for a couple of hours but all I can really find is examples of how to add static data into the jTable.Then you need more googling practice on picking the appropriate keywords to narrow down a search. Words like "jtable resultset" yielded many hits. Of course I'm partial to the one I suggested that was found in the Swing forum.

  • How to use the custom control ?

    Hi Friends,
    plz help to use of  custom control in screen painter ?
    and how to use the custom control ?
    Thanking you.
    Regards,
    Subash.

    HI,
    Screen Elements
    A screen can contain a wide variety of elements, either for displaying field contents, or for allowing the user to interact with the program (for example, filling out input fields or choosing pushbutton functions). You use the Screen Painter to arrange elements on the screen.
    You can use the following elements:
    ·        Text fields
    Display elements, which cannot be changed either by the user or by the ABAP program.
    ·        Input/output fields and templates
    Used to display data from the ABAP program or for entering data on the screen. Linked to screen fields.
    ·        Dropdown list boxes
    Special input/output fields that allow users to choose one entry from a fixed list of possible entries.
    ·        Checkbox elements
    Special input/output fields that the user can either select (value ‘X’) or deselect (value SPACE). Checkbox elements can be linked with function codes.
    ·        Radio button elements
    Special input/output fields that are combined into groups. Within a radio button group, only a single button can be selected at any one time. When the user selects one button, all of the others are automatically deselected. Radio button elements can be linked with function codes.
    ·        Pushbuttons
    Elements on the screen that trigger the PAI event of the screen flow logic when chosen by the user. There is a function code attached to each pushbutton, which is passed to the ABAP program when it is chosen.
    ·        Frame
    Pure display elements that group together elements on the screen, such as radio button groups.
    ·        Subscreens
    Area on the screen in which you can place another screen.
    ·        Table controls
    Tabular input/output fields.
    ·        Tabstrip controls
    Areas on the screen in which you can switch between various pages.
    ·        Custom Controls
    Areas on the screen in which you can display controls. Controls are software components of the presentation server.
    ·        Status icons
    Display elements, indicating the status of the application program.
    ·        OK field
    Every screen has a twenty-character OK_CODE field (also known as the function code field) that is not displayed directly on the screen. User actions that trigger the PAI event also place the corresponding function code into this field, from where it is passed to the ABAP program. You can also use the command field in the standard toolbar to enter the OK field. To be able to use the OK field, you need to assign a name to it.
    All screen elements have a set of attributes, some of which are set automatically, others of which have to be specified in the Screen Painter. They determine things such as the layout of the screen elements on the screen. You can set the attributes of screen elements in the Screen Painter - either for a single element, or using the element list, which lists all of the elements belonging to the current screen. Some of the attributes that you set statically in the Screen Painter can be overwritten dynamically in the ABAP program.
    with regards,
    sowjanyagosala

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to make a custom toolbar to put various items in?

    Formerly, there used to be an option by which I could add some sort of "custom toolbar" and then add various kinds of buttons into it, like the downloads button, home button, history, save page, etc.
    Now when I customise the toolbars (right click on main topbar>Customize), I can only add things in the given bar, which already has an address bar, a search box, and a few extensions.
    Please advise on how to make custom toolbars if there's an option I may have missed - possibly misplaced to somewhere else by the update to 29.

    If your navigation toolbar is too crowded, right-click an empty area of the tab bar and check "Menu Bar" or "Bookmarks Toolbar", or both. Buttons can also be placed on the tab bar. You can also drag icons you use infrequently into the the ≡ Menu Button panel.
    * [[Customize Firefox controls, buttons and toolbars]]
    The "Classic Theme Restorer" add-on provides an Additional Toolbar, as well as an Add-on Bar at the bottom of the window. Add-ons like "The Add-on Bar (Restored)" and "Status-4-Evar" provide only an add-on bar at the bottom of the window.
    * https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    * https://addons.mozilla.org/firefox/addon/the-addon-bar/
    * https://addons.mozilla.org/firefox/addon/status-4-evar/
    * [[How to make the new Firefox look like the old Firefox]]
    * [[What happened to the Add-on Bar?]]
    * [[What happened to the Status Bar?]]

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • How to make a custom template the default for Apple Mail (10.7.5)?

    Hi,
    I'm OK with making a new custom template in Apple Mail.  It shows up fine once under "custom" in the stationary pane (and once I take off signature in a new email).  But... that's a lot of trouble to go through everytime I want to send an email.
    So the question is: can I make my custom template my default for all my emails, unless I want to manually change it?  Seems like this should be possible but I can't figure it out and haven't run into any solutions (only on how to make a template).
    Do I really have to select it each time?
    Best,
    Joel

    As an FYI: I just solved the problem by going the "low road." I'll be a bit laborious in case someone else wants a solution at a later date (I know I Googled the topic and found nothing). I experimented by simply:
    Opening a new email message
    Selecting my custom template
    Copying the custom signature (Select All)
    Opening another new email message
    Selecting Edit on the Signature pulldown menu
    Hitting the plus symbol to create/add a new signature in the pane
    Pasting into the new signature
    Naming it
    Selecting "Choose signature" at the bottom of the signatures pane
    And violà!!
    It now appears as a possible selection *and* as the default.
    Better yet - it is now my default and will work as a reply to an email.
    I think I got it all right in the list above.
    OK, granted, this is a pretty simply signature - a list of my website, SoundCloud, twitter etc with those names in bold and a graphic of my color logo - but... it works! YMMV.
    Give it to Apple to make it so simple that any fool could do it (that would be me), you wouldn't need a "specialized" app, and - of course - there wouldn't even be instructions on how to do it!
    Best,
    Joel

  • How to make my SLIDER control the movement of animations: ( fast & slow)

    hello!
    i wanna do water dropping animations. using a slider, to controlled how fast and slow the animations can be.
    please help me!!!

    I need help about controlling my animations with slider.
    I already know about slider & water dropping animations, but how to make this 2 things interract.
    Right now i have slider and water dropping animations, but when i scroll my slider up and down, my animations still with the same speed.
    In my opinion, i think, i need to make one func/method that take var from slider and transfer it to water dropping var(controlling the speed of anim...).
    eg: (coding)
    //class bla...bla...bla...
    JLabel sliderValue = new JLabel("Value = 25"); // slider var
    JSlider sliders = new JSlider(JSlider.VERTICAL, 0, 50, 25);
    WaterDropPanel drop = new WaterDropPanel(); // waterdropclass
    JButton start = new JButton("Start"); // start anim...
    JButton stop = new JButton("Stop"); // stop anim...
    //waterdrop class...
    class BulatanPanel extends JPanel implements Runnable
    private Thread runner;
    int yPos = -20;
    int yMove = 4;
    void playAnimation()
    if (runner == null);
    runner = new Thread(this);
    runner.start();
    void stopAnimation()
    if (runner != null);
    runner = null;
    public void run()
    Thread thisThread = Thread.currentThread();
    while (runner == thisThread)
    yPos += yMove;
         if (yPos > 310)
         yPos = -20;
    repaint();
    try
    Thread.sleep(10); // var controlling the speed of anim...
         catch (InterruptedException e) {}
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D)comp;
    comp2D.setColor(Color.black);
    comp2D.fillRect(0, 0, 250, 240);
         comp2D.setColor(Color.red);
    comp2D.fillOval(110, yPos, 20, 20);
    // slider event handling... ( In my constructor)
    public void stateChanged(ChangeEvent e)
    sliderValue.setText("Value = " + ((JSlider) e.getSource()).getValue());
    I'M SORRY IF ITS TOO LONG

  • How to make a custom table?

    Ok, so an assignment is due today. I am up to the last part and what you need to do it make a custom graph, I have an iMac (OS X Yosemite) and I need to make a table like the one showed on the image I attached. If you look on the right hand side of the image, you see a row that says "Size" with three custom made columns which says: "Width", "Thickness and "Length". Please tell me, how I can make a custom table like the one below? Thanks.

    Select a group of cells, right-click on them and choose Merge Cells from the pop-up menu:
    Description, Material and Qty are two cells selected down and merged, Size is three cells selected across and merged.
    Hope this helps.

  • How to make the custom field enable/disable in ME21n/ME22n/ME23n trans

    Hi Experts,
    I need help.
    I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only)  even in Display mode. How to make the field is non editable in display mode and editable in change mode.
    I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.
    How to make this field to behave as standard fields?
    Please reply me <removed by moderator>
    Thank you in advance.
    Best Regards,
    Divakar.
    Edited by: Thomas Zloch on Mar 2, 2012

    If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM
    lv_changeable = im_header->is_changeable( ).
      LOOP AT ch_fieldselection ASSIGNING <fs>
        IF lv_changeable IS INITIAL.
          <fs>-fieldstatus = '*'. " Display
        ELSE.
          <fs>-fieldstatus = '+'. " Change
        ENDIF.
    endloop.

  • How to make Google custom search results appear on a new page?

    Anybody got any idea how to make the search results appear on a separate page? I'm using the Google custom search to get generated code to place on my pages, after providing some 'guidance' information on the look and feel of it. Normally, Google will provide you with a few options to choose from to determine how your results will look and by default one would choose the "two page" option whilst going thru the setup process. One page for the search box on your own page and one for the results page.
    However, if you don't want a 'google-generated' results page but want the layout that's in line with the look of your site AND have the search box already on there for any repeat searches it becomes more tricky. I tried doing it one way, which I found one a blog tutorial but so far no sucess. The 'search box' code that I inserted onto one of my pages to test didn't show up the search box at all in preview or the live page...
    Anybody got any generic code that can be adapted (that they know works) or know of any tutorial that explains how to achieve this? Preferably Google related, as I'm using its custom search.
    In addition, I believe that recently Google have deprecated the use of iframe in its search results pages so for anybody that was using an earlier version of this facility it may no longer work properly and hence the solution might have to be modified. Not an expert, so not sure how much this fact will affect the final code, just a thought.
    Any ideas/solutions will be greatly appreciated. Thanks.

    hello adrianm12, this should be possible through the metro settings ("search"). also see [https://bugzilla.mozilla.org/show_bug.cgi?id=941292 bug 941292]...

  • How to make a simple control value comparison a user event?

    Hey everyone,
    I am trying (with no luck) to figure out how to make an event out of a simple control comparison without having to put the controls inside a while loop to be polled or in the event structure.
    For example; how do I make an event when 'numerical control 1' equals 'numerical control 2'?
    I know that I could have these inside a while loop with the event structure and then wire the comparison to a boolean, then reference the boolean's value change event.  But rather, I would like to create an event for the comparison without the boolean and outside the while loop such that the loop doesn't have to run through the comparison each time, and doesn't have to poll the controls and bool.
    Thanks for the help

    Attached is a simple user event structure that I was thinking about.  Using this you can decouple the control from the comparison, it just works on valye comparisons.  Since it uses the event structure there is no polling and is very CPU friendly.  I have allowedfor the comparison to be linked to the "Value 1:value change event" and the compare button true event.  I hope this is what you were looking at.  Also since it is a user event which is dynamically registered you can register/unregister it at will durring execution making it a flexable event handler.  It might be alittle buggy because I have spent about 3 minutes developing it (particularry when passing values into the event structure there might be a state issue from the data flow so local variables are a better choice)
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA
    Attachments:
    CompareEventvi.vi ‏49 KB

  • How to make a custom theme a default theme?

    Hi gurus,
    I want to change the internal default theme to the one I've created but the option to make the custom theme a default theme is greyed out, how do i make it not to be greyed out? I'm using SAP Sourcing 10.0 (Please see attachements)
    Your assistance will be highly appreciated.
    Kind regards,
    Sabelo.

    Hello Sabelo,
    Hope you can solve your issue by doing these actions:
    Shutdown the NetWeaver system
    Delete the node folders server0, server1, serverx (/usr/sap/SID/SID/j2ee/cluster)
    Start the NetWeaver system
    When you start the system it will recreate the node folders and they should be in a synchron state as it loads the complete content out of the database. This means that it will create your custom theme on all nodes.
    Best regards
    Parth Raval

  • How to make a custom cursor

    How do you make a custom Cursor with the Cursor class, so that I can use it in my program.
    And also, how do you make a LookAndFeel??

    To make a cursor use:
    createCustomCursor public Cursor createCustomCursor(Image cursor,
                                     Point hotSpot,
                                     String name)
                              throws IndexOutOfBoundsException, HeadlessException
    Creates a new custom cursor object. If the image to display is invalid, the cursor will be hidden
    (made completely transparent), and the hotspot will be set to (0, 0). Parameters:hotSpot - the X
    and Y of the large cursor's hot spot. The hotSpot values must be less than the Dimension returned
    by getBestCursorSize().name - a localized description of the cursor, for Java Accessibility use.
    Throws: IndexOutOfBoundsException - if the hotSpot values are outside the bounds of the cursor.

  • How to make a custom calendar

    how can I make a custom calendar

    Nathan,
    What happens if you click on a calendar in the "Sources" pane and select File>Get Info?
    You should be presented with a window which allows you to select from one of several default colors, plus "Other..."
    ;~)

Maybe you are looking for