Drawing API How to resize the box

Hi Just wondering is any one knows any examples or code to resize the box or any shape with specific points, drawn dynamically?
Looking for something like www.kitchenplanneronline.com
Thanks,

You just redraw the shape as needed. It should be fast enough to look as though you're scaling, stretching it, but you're really just drawing it over and over according to your handle positions.

Similar Messages

  • Drawing API How to resize the box through

    Hi There, Just wana know if I have created a box or L shape box dynamically, how it can be resized through specific points.
    I have a project something like www.kitchenplanneronline.com and when you select a Layout section it gives you points to modify the size of the box.
    Any help would be appreciated.
    Thanks in advance.
    Fred.

    when you startDrag() of one of the resize points, start a loop that repeatedly redraws your shape.

  • How to update the BOX version of the Logic Pro 9 in Mountain Lion??

    Hi!
    How to update the BOX version of the Logic Pro 9 in Mountain Lion?
    For example,  if tomorrow will be new updates for Logic Pro for exapmle 9.1.8. (now I have 9.1.7) Will I not able to get it?? Now should I buy the second Logic pro??
    Recently I have got answer from App Store support:
    "Max, since you have not purchased the app in the App Store, you can't get updates directly in App Store. In this case, you will need to purchase the updated version in the App Store so you can get further updates."
    It's... I bought Logic Pro 9 + MainStage +  + +++ .... in the Apple Retail Store and what now?? Updates works perfect in Snow Leopard.
    I can't understand...
    Can you help me please? =)

    Max,
    Rest assurred, you will get updates via the App store. What will happen is when you install the box version, the Mac App Store will ping when there is an update to download(for free), much like any other Apple app(Garageband, iWork, etc) regardless of where you bought it from. If it's installed, it will check for updates.
    If the Mac App store doesn't show an update that you know is out, simply down it directly from support.apple.com and apply it.
    Hope this helps. If so, LIKE the post.
    Glenn

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Guys, i want to ask on how to resize the images into 1200 pixels wide?

    Guys, i want to ask on how to resize the images into 1200 pixels wide, how to do it? and what are the step by steps on doing that? thank you!!!

    See this link: http://forums.adobe.com/docs/DOC-3691

  • How to resize the hard drive

    how to resize the hard drive

    You can usually find your Mac and the instructions to do so by looking it up on this page.
    http://support.apple.com/specs/

  • How large is the box? (online orders)

    I just got word that my 15" shipped this morning (yay!). I went to the campus bookshop to look at the MBPs there, and I saw that the actual box for the MBP is very small. I was wondering how much larger the box that that box is shipped in?

    It's a shrink-wrap fit but don't worry. The method and type of foam used by Apple ensures a very safe transport. If in fact, this is your concern. To be more specific: 5.5 x 19.25 x 19.25 inches.
    Regards,
    2.16 MBP (FW 1.0.1) Week-12 build   Mac OS X (10.4.6)   G4 Tower (OS 9/10), Dell 620 WorkStation (XP Pro), Gateway P4 (XP Home)

  • How do you resize the box and font size when adding comments

    We add numbers and comments to our  technical drawings but we cannot seem to control the font size or the color of the font.

    <<...I create the box sometimes it is 1 character wide...>>
    I'm not sure how are you getting that 1 character width sometime (that is really strange), ideally, it is always 10/12 characters width.
    <<...I would like to make the 1 character wide format as the default if it is possible... >>
    No, I don't think it is possible to make 1 character width as default. If someone wants 1 character width, just Click-n-Drag (like you draw a box).
    <<... I have to shorten it by click and drag and that takes time especially when I have to add 300 numbers...>>
    Copy/paste doesn't make sense here??
    If Outline and Background color is not needed, than why don't you use "Add or Edit Text Box" (aka Typewriter)
    Goto 'Tools' pane > Content > Edit Text & Objects > "Add or Edit Text Box"

  • How to get the BOX Serial No.

    Someone, know how I can get the BOX Serial Number?
    I tried with: java.lang.System.getProperty();, but i retrieve only the Company Manufacturer:
    java.lang.System.getProperty("havi.implementation.vendor");
    I see this in HAVI documentation Api but, i not found how i can get the serial number, anyone know what i can do? Or where i can find the right Api? or if is write in a file in the system and what file?
    Thank you

    I'm glad that you found the site useful.
    The closest thing to a complete list of properties that's available is in the MHP spec in section 11.3.1.1, part g (yes, they couln't have hidden it much better)
    The properties that must be supported by an MHP receiver are:
    - file.separator
    - path.separator
    - line.separator
    - dvb.returnchannel.timeout
    - dvb.persistent.root (only available if the application has permission to access the persistent filesystem)
    There are a couple of extra properties that you can get from the Xlet Context using getXletProperty():
    - dvb.org.id
    - dvb.app.id
    - dvb.caller.parameters
    dvb.org.id and dvb.app.id give you the organisation ID and application ID for that application, as indicated in the application signalling. dvb.caller.parameters gives you the arguments that were passed to the Xlet if it was started by another app using the application listing and launching API - if it was started in the normal way then this is empty. A few more details about these is given in part 11.7.1.1 of the MHP spec.
    This information should make it up on to my website sometime soon - I'm busy working on some OCAP tutorials at the moment, but once those are done I plan to revisit some of the MHP stuff and update/expand it.
    Hope this helps,
    Steve.

  • How to resize the video in Compressor?

    Hi all, my first post here,
    I just know  we can't optionaly resize the video in Final Cut Pro and
    using the compressor can resovle this problem,
    It's not very convenient to resize the video in FCP.
    i wanna ask how can i  resize the video in compressor
    Thanks a lot

    First, you should carefully think why you'd need to resize. You can export from FCP X to the standard sizes, both HD and SD. Do you really need some nonstandard size?
    Keep in mind that usually you'll get the best quality if you edit in the desired final size, rather than resizing afterwards.
    If you do need to create a video in some nonstandard size, like, say 1080x1920 (i.e. in "portrait" form), there is a way to do it:
    http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial
    With Compressor you have many pre-made defaults for different kinds of devices. Also, you can export to Quicktime and tweak the settings to get a desired size.
    1-Drag one of the existing settings (in the example below, I used SD 480p)
    2-Select it
    3-In the Inspector, select the "Geometry" tab
    4-Choose "Custom" and enter the desired size.
    5-Change the other properties (such as codec, under the "Encoder" tab), as needed
    5-Choose "Save As..." and save it (give a suggestive name, say "Portrait") so that you can later reuse it as needed.

  • How to resize the columns of a table?

    Hi there!
    I want to resize the column of a JTable(constructed via AbstractTableModel) to
    fit the exact width of the word in the header?
    Can anyone tell me how to do this thing?
    Regards,

    import java.awt.*;
    import javax.swing.table.*;
    public class ColumnResizeDemo extends javax.swing.JFrame {
        public ColumnResizeDemo() {
            initComponents();
            TableColumn column = null;
            for (int i = 0; i < jTable1.getColumnModel().getColumnCount(); i++) {
                column = jTable1.getColumnModel().getColumn(i);
                String hv = column.getHeaderValue().toString();
                JTableHeader th = jTable1.getTableHeader();
                FontMetrics fm = th.getFontMetrics(th.getFont());
                column.setPreferredWidth(fm.stringWidth(hv)+5);
        private void initComponents() {
            jLabel1 = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTable1 = new javax.swing.JTable();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Column Resize Demo");
            jLabel1.setText("Sets column width to fit exactly the corresponding header value");
            getContentPane().add(jLabel1, java.awt.BorderLayout.NORTH);
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                    new Object [][] {
                        {null, null, null, null},
                        {null, null, null, null},
                        {null, null, null, null},
                        {null, null, null, null}
                    new String [] {
                "Title 1", "Title 0002", "Title 0000003", "Title 00000000000004"
            jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
            jScrollPane1.setViewportView(jTable1);
            getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
            pack();
        public static void main(String args[]) {
            new ColumnResizeDemo().setVisible(true);
        private javax.swing.JLabel jLabel1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTable jTable1;
    }

  • How  to resize the column header according to row data

    Hi,
    How can i resize the column header according to row date .. means if data is small header should be small and vice versa ,...
    Any help is appreciated .. Snippet will be more helpful .
    Thanks,
    Shekhar

    Oxley (binkley) blogged about this: http://binkley.blogspot.com/2006/01/getting-jtable-columns-widths-to-fit.html
    Christian Ullenboom | tutego

  • How to resize the menu,address and bookmark toolbars. Not the font but the toolbar sizes

    I'm trying to reduce the overall space of the top of the firefox page.
    I have the menu and the the bookmarks tool bars checked and between those 2 and the address and site header it takes up way to much real estate.
    My font size is good but the wasted area is way to much and I can't seem to find the simple answer to looking for addons and themes to just resize the height of the space.
    This is the new 33.1 and up to this point all custom has been a breeze.
    Thanks much.

    Hello,
    Have you considered running Firefox in [[How to make Firefox and websites go full screen|Full Screen mode]]? There is also an extension that hides the toolbars until you hover your mouse over the top of the screen:
    * https://addons.mozilla.org/en-US/firefox/addon/fullscreen-toolbar-hover/
    You can change the size of your toolbars by using the userChrome.css file, or by installing [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish] and using one of these styles:
    * https://userstyles.org/styles/9349/navigation-location-bar-minimal-height
    * https://userstyles.org/styles/9350/menu-and-searchbar-minimal-height-dm
    * You can edit the code of the style to suit your needs better. I don't know how it will affect the current interface, so if you find that Firefox becomes unusable after using this style, load Firefox in [[Troubleshoot Firefox issues using Safe Mode|Safe Mode]] and uninstall Stylish to remove it
    ** Alternatively, if the address bar still works, type in '''about:addons''' in your address bar, and go to the User Styles tab, then disable/remove the style
    For more information on userChrome.css:
    * http://kb.mozillazine.org/index.php?title=UserChrome.css

  • How to resize the Region's width

    Dear all,
    i am using apex 4.2.2 , oracle database 11g R2, internet explorer 9.
    i have created a region in HOME Tab for navigation menu.
    but its width is covering the width of whole page.
    how could i resize the width of the navigation region?
    Thank you so much.

    Hi Maahjoor ,
    you can set height with same code,
    just check with the different style properties
    in Region attributes put the below code.
    style="width:300px;height:200px;"
    Regards,
    Jitendra

  • How to resize the itunes window in mavericks?

    How can I resize the itunes window in mavericks if the window is larger than the screen?
    Since the window is larger than the screen I cannot use the scroll-bar anymore properly...
    And since resizing is in the lower right corner that leaps out of the screen I can't resize it...
    any clues anyone?

    https://discussions.apple.com/message/16758346#16758346

Maybe you are looking for

  • CDs burned from iTunes don't play in CD player.

    This is a relatively new issue - I've never had this problem before. They appear to burn correctly. Sometimes the CD player will correctly identify the number of tracks but when I hit play the CDs just spin around without playing. Other times it the

  • Calling one application into another

    how can i call one application file into another so that session should not expire in any way Has anyone done such like that

  • Signature for text messages

    Does anyone know how to add a signature to text messages?

  • Iweb hit counter stats

    I know I can get a 3rd party hit counter, but I am curious if I can see how many hits my site has received without visiting the site itself? In the old, old .mac Homepage you could see how many hits yoru site received when you logged into your .mac a

  • Are there any troubles with high rdisp/max_wprun_time?

    Are there any unpredictable negative effects while setting this parameter large values (for example, 1000 or 2000 seconds?)