Cadence IC 6.1 Form Placement

E

eyn

Guest
Does anyone here having issues with Cadence IC 6.1 when it comes to
form placement? In the old Cadence (say 5.10), all forms remembers
their old locations and we are able to add the following code to
customize where the form should appear:

ciw = hiGetCIWindow()
ciw->formPlacement = "center"
ciw~>formRelativeTo = "currentWindow"
ciw~>optionFormPlacement = "center"
ciw~>optionFormRelativeTo = "currentWindow"

However in IC 6.1, forms no longer follow the CIW settings and they do
no remember their old location as well. I try to play around with
KWin's special window settings but the results isn't very satisfying:
I am able to make forms remembering their old locations but now all
forms share the same location instead of remembering their individual
last location.

Does anyone have any solution to this? I believe this is an issue
related to the Qt lib used for Cadence 6.1's UI (the old 5.10 uses
Motif as mentioned in this thread:
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/fd716040700b4494).
 
On Nov 3, 4:58 pm, eyn <dream...@gmail.com> wrote:
Does anyone here having issues with Cadence IC 6.1 when it comes to
form placement? In the old Cadence (say 5.10), all forms remembers
their old locations and we are able to add the following code to
customize where the form should appear:

ciw = hiGetCIWindow()
ciw->formPlacement = "center"
ciw~>formRelativeTo = "currentWindow"
ciw~>optionFormPlacement = "center"
ciw~>optionFormRelativeTo = "currentWindow"

However in IC 6.1, forms no longer follow the CIW settings and they do
no remember their old location as well. I try to play around with
KWin's special window settings but the results isn't very satisfying:
I am able to make forms remembering their old locations but now all
forms share the same location instead of remembering their individual
last location.

Does anyone have any solution to this? I believe this is an issue
related to the Qt lib used for Cadence 6.1's UI (the old 5.10 uses
Motif as mentioned in this thread:http://groups.google.com/group/comp.cad..cadence/browse_thread/thread/...).
My current solution, as briefly mentioned in my previous post, is to
set up special window settings (Kwin's feature?) for EACH form based
on their window class and window title, for example I'll set up a
"remember last position" rule for window that have "Virtuoso" window
class and "Stretch" in window title. The only drawback is you will
need to set up each form individually once and for all. Those forms
that you haven't set up will go back to their "default" starting
location (in my case, right at the center of my dual screen i.e. each
screen gets half of the form *shakes head*), which does not obey the
rules you set in CIW->formPlacement.
 
eyn wrote, on 11/04/08 22:00:
On Nov 3, 4:58 pm, eyn <dream...@gmail.com> wrote:
Does anyone here having issues with Cadence IC 6.1 when it comes to
form placement? In the old Cadence (say 5.10), all forms remembers
their old locations and we are able to add the following code to
customize where the form should appear:

ciw = hiGetCIWindow()
ciw->formPlacement = "center"
ciw~>formRelativeTo = "currentWindow"
ciw~>optionFormPlacement = "center"
ciw~>optionFormRelativeTo = "currentWindow"

However in IC 6.1, forms no longer follow the CIW settings and they do
no remember their old location as well. I try to play around with
KWin's special window settings but the results isn't very satisfying:
I am able to make forms remembering their old locations but now all
forms share the same location instead of remembering their individual
last location.

Does anyone have any solution to this? I believe this is an issue
related to the Qt lib used for Cadence 6.1's UI (the old 5.10 uses
Motif as mentioned in this thread:http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/...).

My current solution, as briefly mentioned in my previous post, is to
set up special window settings (Kwin's feature?) for EACH form based
on their window class and window title, for example I'll set up a
"remember last position" rule for window that have "Virtuoso" window
class and "Stretch" in window title. The only drawback is you will
need to set up each form individually once and for all. Those forms
that you haven't set up will go back to their "default" starting
location (in my case, right at the center of my dual screen i.e. each
screen gets half of the form *shakes head*), which does not obey the
rules you set in CIW->formPlacement.
If you have a dual-head screen, in xinerama mode (i.e. one big desktop, spread
over the two screens), then center will of course be the centre of the whole
desktop, not an individual screen. That's the same in IC5141 and IC61.

Probably using center doesn't make sense...

I know there are thoughts to try to add better support for xinerama type
dual-head arrangements. There are also these functions:

; set the default locations of dialog boxes and forms (which
; don't explicitly have their location defined)
hiSetDBoxDefaultLocation(xcoord:ycoord)
hiSetFormPosition(xcoord:ycoord)
; set the location for a specific form (must have form variable defined)
hiSetFormLocation(s_formName xcoord:ycoord)

See cdnshelp for more details.

Regards,

Andrew.

--
Andrew Beckett
Senior Solution Architect - Cadence Design Systems Ltd (UK)
 

Welcome to EDABoard.com

Sponsor

Back
Top