Problem in Placing a form in specific position

Discussion in 'Cadence' started by Reotaro Hashemoto, Jul 8, 2009.

  1. 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
     
    Reotaro Hashemoto, Jul 8, 2009
    #1
  2. Reotaro Hashemoto

    I-F AB Guest

    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
     
    I-F AB, Jul 9, 2009
    #2
  3. Reotaro Hashemoto

    Ahmad Guest

    Thanks a lot I-FAB,

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

    Thanks,
    Ahmad
     
    Ahmad, Jul 9, 2009
    #3
  4. Reotaro Hashemoto

    Guest Guest

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

    "Nostalgia isn't what it used to be."
     
    Guest, Jul 10, 2009
    #4
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.