Problem in Placing a form in specific position

  • Thread starter Reotaro Hashemoto
  • Start date
R

Reotaro Hashemoto

Guest
Hi,

I've created a form and filled it.. Then when I try to display it
using:
hiDisplayForm( formName list(1000:200) )

To place in specific location on screen, it always get displayed in a
fixed location regardless of the location i give to the function?

Notice that I have hiGetCIWindow()->formPlacement="default"

So, where's the problem?

Thanks,
Ahmad
 
Hi,
Found this in Sourcelink Solution Number: 11491814

Problem statement:
I am using KDE3.3 Windows Manager on RHEL4.0 Linux machine. I am
creating a form and
displaying it using hiDisplayForm().

form = hiCreateAppForm(?name 'testcase ?formTitle "Testcase" ?fields
list(
hiCreateButton( ?name 'button ?buttonText "Testcase") ) )
hiDisplayForm(form '(10 10))
OR
hiDisplayForm(form '(500 500))

In both above cases, the form is displayed at the same location in the
centre of the
window and not at the specified coordinates. How to display the form
at the
specified coordinates?

Solution:
To do this you need to bring up the "Control Center" (from the main
toolbar menu).

=> In the KDE Control Center select "Desktop", under Desktop select
"Window-Specific Settings".

=> This will bring up a dialog. Click "New..." in the upper right-
hand corner to bring
up a "New" dialog. Now bring up any DFII HI form (for example:
CIW-->Options-->User Preferences). Click the "Detect" button in the
KDE
settings dialog, then click on the User Preferences Form (you'll get a
cross cursor
after clicking "Detect").

=> This will bring up another dialog. Make sure "Use whole window
class (specific
window)" is selected then click "OK". This will fill in the fields on
the previous
KDE form.

=> Click the "Geometry" tab, click the box next to "Placement", select
"Force" in the
first cyclic next to Placement, and select "No Placement" in the
cyclic to the right
of that.

=> Go to the "Workarounds" tab and select "Window type", then from the
next cyclic
select "Force", and then from the right-hand cyclic select "Normal
Window". Then
click "OK", and then click "Apply" on the "Window-Specific Settings"
dialog. Now the
DFII HI forms should be placed as requested by DFII, rather than how
KDE wants to
place them.


Best Regards,
I-FAB
 
Thanks a lot I-FAB,

I'm not using KDE. I'm using IC514 under Linux RHEL5 with GNOME
Desktop.

Thanks,
Ahmad

On Jul 9, 7:00 am, I-F AB <cop0...@gmail.com> wrote:
Hi,
Found this in Sourcelink    Solution Number:    11491814

Problem statement:
I am using KDE3.3 Windows Manager on RHEL4.0 Linux machine. I am
creating a form and
displaying it using hiDisplayForm().

form = hiCreateAppForm(?name 'testcase ?formTitle "Testcase" ?fields
list(
hiCreateButton( ?name 'button ?buttonText "Testcase") ) )
hiDisplayForm(form '(10 10))
OR
hiDisplayForm(form '(500 500))

In both above cases, the form is displayed at the same location in the
centre of the
window and not at the specified coordinates. How to display the form
at the
specified coordinates?

Solution:
To do this you need to bring up the "Control Center" (from the main
toolbar menu).

=> In the KDE Control Center select "Desktop", under Desktop select
"Window-Specific Settings".

=> This will bring up a dialog.  Click "New..." in the upper right-
hand corner to bring
up a "New" dialog.  Now bring up any DFII HI form (for example:
CIW-->Options-->User Preferences).  Click the "Detect" button in the
KDE
settings dialog, then click on the User Preferences Form (you'll get a
cross cursor
after clicking "Detect").

=> This will bring up another dialog.  Make sure "Use whole window
class (specific
window)" is selected then click "OK". This will fill in the fields on
the previous
KDE form.

=> Click the "Geometry" tab, click the box next to "Placement", select
"Force" in the
first cyclic next to Placement, and select "No Placement" in the
cyclic to the right
of that.

=> Go to the "Workarounds" tab and select "Window type", then from the
next cyclic
select "Force", and then from the right-hand cyclic select "Normal
Window". Then
click "OK", and then click "Apply" on the "Window-Specific Settings"
dialog. Now the
DFII HI forms should be placed as requested by DFII, rather than how
KDE wants to
place them.

Best Regards,
I-FAB
 
In article <8b06e9e1-17ce-48fe-8587-7190a8fc6a17@t13g2000yqt.googlegroups.com> Reotaro Hashemoto <ahmad.abdulghany@gmail.com> writes:
I've created a form and filled it.. Then when I try to display it
using:
hiDisplayForm( formName list(1000:200) )

To place in specific location on screen, it always get displayed in a
fixed location regardless of the location i give to the function?

Notice that I have hiGetCIWindow()->formPlacement="default"

So, where's the problem?
The location is a "hint" to the window manager. Your window manager is free
to disreagard location hints if it so desires and depending on its
configuration.

Because a form is a "transient", some window managers (again, depending on
configuration) will try to place it "intelligently" and ignore location hints.

If you change the formPlacement option to one of the other legal values
("left", "top", "bottom", "right", "center"), does that change the location?
Also, what is the value of hiGetCIWindow()->formRelativeTo?

-Pete Zakel
(phz@seeheader.nospam)

"Nostalgia isn't what it used to be."
 

Welcome to EDABoard.com

Sponsor

Back
Top