Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

combobox list pops up under its parent window

Help
2005-02-14
2013-03-27
  • Yakov Mindelis
    Yakov Mindelis
    2005-02-14

    I am trying to use combobox and get the following :

    1. when using fvwm2/twm/cde window manager on aix the popup list always pops under the parent window

    2. when using kde wm (rh linux) the list pops ok (displayed above the parrent window)

    Parts of the popup list are visible only if the parent window isn't big enough to cover the list.

    I tried to display from linux on window managers  on aix and from aix on linux display - the aix window namagers always hide the popup window.
    It happens with the demo that comes with rexxtk.
    Rexxtk is 1.2, tcl/tk are 8.3 on linux and 8.4.9 on aix.

    BTW(little bit ot): I had to expose unsupported command  in rexxtkbase.c to make combobox work with tcl/tk 8.4.9:
    "tk::unsupported::ExposePrivateCommand *\n"  

    TIA,
    Jack

     
    • Yakov Mindelis
      Yakov Mindelis
      2005-02-15

      Further investigation on the matter revealed this:

      Instruction "wm deiconify" on the "popup" object seem to have no effect when "overrideredirect" is set.
      Unsetting the flag before the "wm deconify  and setting it back right after, causes the popup to raise but with the defaul wm decorations.

      Is there a way to raise the popup using  rexxtk commands without modifying the librexxtkcombo.a?

      Thanks in advance,
      Jack

       
    • Yakov Mindelis
      Yakov Mindelis
      2005-03-01

      Ok,
      Looks like I got the solution:

      added "raise $widgets(popup)\n" after the "wm deiconify $widgets(popup)\n" (l. 654 in extensions/rexxtkcombobox.c of rexxtk1.2) and viola:-)

      Now the popup is always shown above the main window.

      Enjoy,
      Jack

      PS: since this list seems to be in deep sleep,  gone to wake up some ppl...