How to make default line segment

is there a way to limit the length of a line segment stay a default length instead of it getting longer as you drag your mouse ? For example in a program called ChemBioDraw you can limit the default length for drawing molecules

No.
You could creae a graphic style that converts an object to rectangle of width X and height 0, then add a rotation effect to get the rotation of the line how you want it, then expand to edit further. This seems like more work than you want and would be very counterintuitive for anyone working on the file.

Similar Messages

  • How can I make the line segment tool repeat several times?

    How can I make the line segment tool repeat several times?

    If this is what you want, hold the ~ key on your keyboard while dragging with the tool.
    If you want spaced copies of the completed line, use the Transform Effects from the Effects menu.

  • How to make new line in JButton.setText()?

    how to make new line in JButton.setText()?
    I want to set the text of jbutton in tow line ,as follows
    | jbutton-line1 |
    | xxxxxxx-line2 |
    i konw i can jbtton.settext("<html>line1<br>line2</html>");
    but i find it's ugly using html,
    is there anyother way to create new line in JButton's Text

    As for the above comment....
    I thought the question was well purposed. Using HTML was not acceptable in this instance, which was made clear, so why critisize his comments? "Using HTML" is a poor solution, it does NOT work in many instances due to browser, OS variations. Usually the "common answer" is never a COMPLETE answer.
    Possible Solution:
    Use JLabels to render the text on the button.
    import javax.swing.*;
    import java.awt.*;
    public class ButtonMaker {
    public static void makeButton(JButton jb, String[] titleList) {
    jb.setLayout(new FlowLayout());
    for (int i = 0; i < titleList.length; i++) {
    JLabel tmpLabel = new JLabel(titleList);
    tmpLabel.setForeground(Color.black);
    jb.add(tmpLabel);
    public static void clearButton(JButton jb) {
    Component[] cList = jb.getComponents();
    for (int i = 0; i < cList.length; i++) {
    if (cList[i] instanceof JLabel)
    jb.remove(cList[i]);
    Known Limitations:
    1. Flowlayout does not work well with single line text buttons... perhaps another layout manager may work better for various buttonsizes-linenumber combos.
    2. Mac OSX : The default UI for Mac OS X (and above it seems), is to have rounded edged buttons. These rounded edges are destoryed when using JLabels, leaving a square, blocky button in its place.
    POSSIBLE SOLUTION:
    (this is ugly and time consuming)
    - create images of the button with text on them.

  • How to make default values in selection field?

    hi,
          i have selection field date , using data element 'QENTST' using following code in view INIT Method. i get the input selection field when i test application.
    DATA: LT_RANGE_TABLE TYPE REF TO DATA.
    CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
      EXPORTING
        I_TYPENAME                     =     'QENTST'
      RECEIVING
        RT_RANGE_TABLE           =     LT_RANGE_TABLE.
    CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
      EXPORTING
        I_ID                                     = 'QENTST'
        IT_RESULT                         = LT_RANGE_TABLE
        I_OBLIGATORY                 = ABAP_TRUE.
    What i need now , to make default value in this selection field( low = sy-datum and high = sy-datum + 10 ) . I have checked , i found one method called... SET_RANGE_TABLE_OF_SEL_FIELD. Bt i m not able to understand how to assign values to input table parameter in this method?
    Thanks In Advance.
    Saurin Shah

    Hi,
    Refer this Article by Thomas on how to make default values in Select Options:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd
    I hope it would solve your problem.

  • How to make Default ALV layout

    Hi,
    I want to make 'STANDARD view' as a default ALV Layout...If anybody execute my ALV Report STARD Layout variant should display by default. Other variant layouts they can select from drill down..
    I know class and method but i don't know how to write code for this with paremeters..Can anybody help on code please..
    CLASS : CL_SALV_WD_C_TABLE
    METHOD : IF_SALV_WD_COMP_TABLE_PERS~SET_STANDARD_VIEW
    My current ALV CODE
      DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      DATA: l_value TYPE REF TO cl_salv_wd_config_table.
      l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
      l_value = l_ref_interfacecontroller->get_model( ).
    Thanks.,
    Subba

    Hi sarbjeet singh,
    Thanks for your reply...
    I didn't understand your answer...Already this view gone to production system and every USER created his own view..
    Now how can make default standard view to all users..
    If i keep Standard view as Intial view and release transport to production is it effected to all users and display standard view as initial view?
    Thanks,
    Subba

  • How to make Default the Higher-Level Manager of the employee

    Dear experts,
    how to make Default the Higher-Level Manager of the employee as Further Participant in performance management ?
    Regards,
    TVS

    Hi,
    The delivered BAdI below defaults in both the appraiser and appraisee as part-appraisers//Default Further Participants.
    BAdI Area: Appraisal Enhancements
    BAdI Definition: HRHAP00_DOC_DEF_DO (Appraisal - Default Further Participants)
    App. Enhn.: DEFAULT_ALL_MANAGERS     
    Implementation: HRTMC_DEF_OTHERS
    Implementation short text: Determine All Managers
    Implement this BADI  in SE18/SE19 and  write the desired code in the  BADI methods
    Hope this will help u out.....
    Regards
    Lakhan

  • How to make default Currency  depending upon plant in table entries

    Hi,,
    How to make default Currency  depending upon plant in table entries?
    I am making entries in SM30.
    I have the following fields in z table.
    plaant , material,month.year,PFvalue,Currency.
    Can  some body throw light for this issue,please?\
    I am familiar  with modification-events.
    With Regards,
    Jaheer

    Hi,
      In PBO, within a LOOP, table control is filled via a Structure/Work Area.
      In that module, code as follows,
    LOOP AT SCREEN.
        IF WA-FIELD1 = C_1 AND SCREEN-GROUP1 = C_G1.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.
      Here, WA is a strcture & FIELD1 is its field, like that...
      I already did this.
      Check it out & Reply.
    Yours,
    R.Nagarajan
    We can

  • How to join multiple line segments to make a fillable polygon

    Howdy,
    I have illustrator CS2 12.0.1. Is there any easy way to create an irregular shaped fillable polygon? The way I currently do this is (1) I use the line segment tool to draw the sides of the polygon, (2) then for each corner of the polygon, I use the direction selection tool to select the corner, then do command-J to "join" the two segments that touch that corner. Only after doing that, I am finally able to use the eyedropper tool to fill the polygon.
    This take a lot of tedious effort. I have LOTS of polygons to draw. Once I have drawn the segments, it seems like I should just be able to select all the segments and have an option that does all the joins at once.
    Or, maybe instead of the line segment tool I could use some path tool. But whenever I have tried that, I end up with curved segments instead of straight ones.
    Can anyone tell me how to do this?
    Thanks for any help,
    Frank B

    Basically I am drawing on top of a bitmapped background which is a satellite map. My polygons are essentially the property lots on this map. So I visually see where the corners are, and I want to make a polygon that I can fill. I actually will fill with a few different translucent colors to indicate different types of lots. This all works fine except that my current means of drawing the polygons is tedious, and it seems like there should be a better way.
    Another way I could solve my problem is if I were able to reshape an existing polygon by dragging its corners to where I wanted them to be. I have not figured out how to do that. Either the entire polygon moves when I drag a corner, or the polygon gets reshaped by the drag in a way I don't want (what I want is to move one corner, and what I get instead seems like one corner stays put and the other three move around to keep constant skewishness; or something).
    Frank

  • How to make a line intersect with a path at random angles?

    How do you make a line intersect with the anchor point of a half circle when you want the line to continue on past the anchor point of the half circle at a random angle?

    Howdy.
    Try this:
    Lock the semicircle. With the pen tool, draw a line from the point of origin to the anchor point of the semicircle. It will still snap even though it's locked.
    Now, we use Jet's scale idea. Select the Scale Tool (S). Click on the point of origin to position the reference point. It will snap. Now, while holding down the Shift Key, drag right and down. The line segment will stay snapped to the endpoint while you drag (highlighted). You can drag it as far as you want.
    That's it.
    Peace,
    Lee
    PS: It's pretty much all Jet's method with the benefit of the OP's screenshot of what he was trying to accomplish. Jet offered the best answer, it looks like to me.

  • How to make default account assignment category in planned order?

    Scneario Description:
    1. Sales order for a configurable parent item is created in ERP & order BOM is changed & transferred to APO. In APO MRP run takes place for that parent item, which creates a planned order with account assignment category "M" (M:Individual Customer w/o KD-CO.
    2. Now based on the dependant requirement generated for parent item, MRP takes place for one of the child item in ERP & purchase requisition gets created for child item.
    Question:
    1. Can anybody help me how i can make default account assignment as "F" (F:Order) in the planned order of parent item?
    2. PR created for child item also has default account assignment category as "M". we wish to change that to "F".
    Thanks & best regards
    Hemchandra & Sandeep Mandhana

    Hi V. Suresh,
    The account assignment category maintained in the requirement class for parent item is 'M'.
    No account assignment category maintained has been maintained in the requirement class Semi-finished component (this component is sent for subcontracting).
    The business process is as follows:
    1. Create Sales Order for Parent say ME_PARENT.
    2. Order BOM for ME_PARENT is created and subsequently cifed to APO.
    3. PP/DS heuristic is run for ME_PARENT.
    4. MRP for component ME_COMP is run in ERP.
    It can be seen that purchase requistion for ME_COMP has a/c assgn category as 'M'. It seems that the ME_COMP has inherited 'M' from ME_PARENT.
    We would like to have no a/c assgn category for ME_COMP.
    Any pointers?
    Regards,
    Sandeep

  • How to make the lines of the table and the template same

    Hello Abapers,
                        I have a requirement, I have made a table in which i have displayed all the values in it, and under that i have taken a template and diplayed the total of it but the lines drawn to the table and the template is different, the table line is dark and the line of the template is lite, how can i make the line of the template dark, i mean the same as the table line. i hope u understand my problem.can u  please help me in solving my problem as the requirement is very urgent.
    HOPE U UNDERSTAND MY PROBLEM
    Thank u in advance  .

    HI,
    Adjust the line width option for template and table,its there under pattern.

  • How to make a line with arrow curve around a circle?

    I've got CS6 and Windows 7. Trying to make a line with an arrow on one end curve around a circle. Actually want it to have a 3D look like it was curving around the back side of a globe. How do you do this? Thanks.

    Perhaps you mean something more like this
    similar technique you create the arrow as a straight stroke path with an arrowhead and make it a symbol
    You then make it a symbol
    you than make a vertical rectangle and use the 3D Revolve Effect to make a cylinder
    then you go to map art
    then you choose in the map art to make the geomtery invisible
    then you ma the arrow symbol and adjust the placement and then adjust the rotation of the cylinder to your likeing.
    If you need a video to follow I'll do one later.

  • How to make curved lines in image more smooth and clear

    How do i make this clear its and image, i want to make the lines really clear and smooth

    Quick and dirty:
    Use Gaussian blur to soften the edges, (I used a value of 2).  The use levels, and drag the black and white sliders towards thge center.
    Much better to create from scratch using the rough graphic as a template.  If it is a one off, then just stroke a path for the circular outlines, and use a layer mask for the break in the inner circle.
    For the curved text, the simplest way is to use the type tool, and then the Create warped text tool from the Options bar, but I doubt you'd get a tight enough curve, so you'll need to use Type on a path.  The easiest way to do that in this case would be to drag out a circular selection with the Marquee tool using the Shift and Alt/Opt keys, and then use the Make work path from selection icon at the bottom of the Paths panel.  Hover the Type cursor over the path and type your text.  If you use Center justified and start at the top, to keep it symetrical, but I just get it close, and fix it with Free Transform.  The rest is straight forward.  I used Areil bold for curved text, and Times New Roman bold for the center text. Use a custom shape for the Tick.  If the tick is not quite to your liking, use the Direct selection tool (a) to drag the points to a better shape.
    If you want to use this in a layout program like InDesign, save the layered document as an EPS file, which will be (mostly) vectored and scaleable in InDesign.  You'd need to use Shape layers for the two circles to make it fully vectored.

  • How to make default personalization options for users

    Hi all,
    How can I make default personalization options for users, so that those will the default options when the user opens the portal BSP applications. Those will be the standard, at later point of time if they want they can personlalize some other fields, but earlier fields will be the default fields and user cant be able to change them.
    Thanks
    Murthy

    Hi Murthy,
    If you use IMG (crmc_blueprint_c) to customize PCUI appl than you can use the personalization feature. If you select 'Not in List' in the IMG for the field in the fieldgroup structure, than this field by default will not be viewable in the List View and will not be checked as 'Visible' in the Personilzation link. So by not selecting 'Not in List' you are giving that field to be viewable and all other fields are available for users to personalize by default.
    If you have maintained the 'List View' using the CRM Designer, than most likely you would lose the above feature, as SAP Standard code considers the CRM Designer as high level of customization.
    Thanks
    Harsh

  • How to make default value for region based on city?

    Dear Experts,
    When city is selected in TRIP or PR05, how to make the default value of city based on region?
    The standard search help givenfot citydoesnt contain any enhancement point?
    Pls suggest how to resolve this!!!
    Thanks In Advance
    Rgrds,
    Sravan

    Hello Sahil
    Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
    For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
    Follow same process for PC.
    GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
    Kiran

Maybe you are looking for