hiCreateCyclicField dimension

  • Thread starter Nikolaos Kasparidis
  • Start date
N

Nikolaos Kasparidis

Guest
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
 
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)
))


On 31 Aug 2004 01:57:09 -0700, redhavoc@yahoo.co.uk (Nikolaos Kasparidis) wrote:

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
--
Andrew Beckett
Senior Technical Leader
Custom IC Solutions
Cadence Design Systems Ltd
 
In article <4e44ab2a.0408310057.65f2cf0d@posting.google.com> redhavoc@yahoo.co.uk (Nikolaos Kasparidis) writes:
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
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
(phz@seeheader.nospam)

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

-Paul Erlich
 

Welcome to EDABoard.com

Sponsor

Back
Top