hiCreateCyclicField dimension

Discussion in 'Cadence' started by Nikolaos Kasparidis, Aug 31, 2004.

  1. Hello,
    I am using Custom IC design 5.0.33 and 5.10.41 and have a small
    problem in using hiCreateCyclicField. My problem is that I cannot
    control its size but only its position when I define its 2D
    attributes. Actual graphic tends to get long enough to hold the
    largest object in the list, and so the GUI gets messy (the cyclic
    field overlaps labels when very large names are used, or very large
    gaps exist, when small names are used). I need a fixed size, which I
    cannot get. Let me show a part of the code, where you might detect a
    problem

    Cyclic = hiCreateCyclicField(
    ?name 'Cyclic
    ?choices Elements
    ?prompt " ")
    FormList = cons(list(Cyclic 100:20 160:30 1) FormList)

    The variable FormList holds all the objects to be displayed. The sizes
    of buttons and entry-fields can be controlled accuretly using the
    above format. I also have the same problem with labels, but they are
    more predictable so this is no real problem. Any help would be
    appreciated.
    Thank you
    Nikolaos Kasparidis
     
    Nikolaos Kasparidis, Aug 31, 2004
    #1
  2. Hi Nikolaos,

    Consider using a combo box instead (hiCreateComboField). Here's an example I put
    together some time ago. You can make the combo fields non-editable which means
    you can't type in a value, but just get the choices. The width of a combo field
    is controlled by the field with in the 2D form.

    Andrew.

    /* abTryComboFields.il

    Author A.D.Beckett
    Group Custom IC (UK), Cadence Design Systems Ltd.
    Language SKILL
    Date Feb 18, 2002
    Modified
    By

    ***************************************************

    */

    (defun abTryComboFields ()
    (let (f1 f2)
    (setq f1
    (hiCreateComboField
    ?name 'f1
    ?items '("short" "very long" "extremely long and lengthy")
    ?editable nil
    ?value "very long"
    ?prompt "f1"
    ))
    (setq f2
    (hiCreateComboField
    ?name 'f2
    ?items '("a" "stuff" "c")
    ?editable nil
    ?value "c"
    ?prompt "f2"
    ))
    (hiCreateAppForm
    ?name 'abTryComboForm
    ?fields (list
    (list f1 0:0 300:30 100)
    (list f2 0:30 300:30 100)
    )
    )
    (hiDisplayForm abTryComboForm)
    ))
     
    Andrew Beckett, Aug 31, 2004
    #2
  3. Nikolaos Kasparidis

    Guest Guest

    If you want to be able to control the width, a combo field may be the way to
    go. If you make it non-editable (?editable nil) it essentially works like a
    cyclic.

    With cyclic fields you have to truncate the choices strings if you want to
    limit the width.

    -Pete Zakel
    ()

    "The first rule of intelligent tinkering is to save all the parts."

    -Paul Erlich
     
    Guest, Aug 31, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.