>>>>> On Tue, 9 Apr 2002 17:12:02 +0200, "Kuiper, Luuk" <[EMAIL PROTECTED]> said:

  Luuk> When using Lesstif 0.93.18 (but also other versions) I encounter then
  Luuk> following problem:

  Luuk> After creating a popupmenu I want to display it at position (100, 100) (or
  Luuk> whatever other position).
  Luuk> But it is alway displayed at (0, 0).

  Luuk> After creation of the popupmenu then next statements are executed:

  Luuk>     hPMenu = create(notifier->topWin, 0, TRUE);
  Luuk>     if (this->hPMenu  == 0) 
  Luuk>     {
  Luuk>         return;
  Luuk>     }
  Luuk>     int x = 100;
  Luuk>     int y = 100;
  Luuk>     XtVaSetValues(hPMenu, XmNx, x, XmNy, y,
  Luuk>                   XmNwhichButton, 3, 0);
  Luuk>     XtManageChild(this->hPMenu);

  Luuk> After the XtVaSetValues statement hPMenu contains the following:

  Luuk> See what has happend with the values of x and y.

  Luuk> I don't see this behaviour when using OSF/Motif on Dec Alpha, Sun or Linux
  Luuk> with OpenMotif.

  Luuk> Every suggestion or explanation is welcome.

FWIW, I set initial menu positions using XmMenuPosition() with a hand-built
event and that works on all version of Motif/Lesstif.

__Martin
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to