hiCreateCyclicField dimension
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
hiCreateCyclicField dimension

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Nikolaos Kasparidis
Guest





Posted: Tue Aug 31, 2004 12:57 pm    Post subject: hiCreateCyclicField dimension Reply with quote

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

Back to top
Andrew Beckett
Guest





Posted: Tue Aug 31, 2004 2:39 pm    Post subject: Re: hiCreateCyclicField dimension Reply with quote

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:

Quote:
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
Back to top
Pete nospam Zakel
Guest





Posted: Tue Aug 31, 2004 10:21 pm    Post subject: Re: hiCreateCyclicField dimension Reply with quote

In article <4e44ab2a.0408310057.65f2cf0d@posting.google.com> redhavoc@yahoo.co.uk (Nikolaos Kasparidis) writes:
Quote:
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

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB