XtVaCreatePopupShell...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
XtVaCreatePopupShell...

Submitted by Anonymous on Mon, 12/16/2002 - 22:21.

I have created a ToolTip class to be used for each Widget. So far it is working except for a small glitch.

(1) I create the Popup via XtVaCreatePopupShell and use the Top for topLevelShellWidgetClass I get the following behavior...
When this functionality is called on Sub-Dialogs the subdialog moves and is centered with the Parent of the Sub-Dialog, then the Popup is shown. This is frustrating, since this causes Sub-Dialogs to move around on the screen.

(2) I create the Popup via XtVaCreatePopupShell and use XtParent(Parent) for the topLevelShellWidgetClass I get the following behavior...
When the functionality is called the Parent is resized before showing the Popup. I attempted to get the Width and Height of the Parent before creating the Popup and then set these parameters back once the Popup was created. This works for most instances. However, if I get the TextField or List objects of a Combobox and try to use this functionality on them... the Widths and Heights are incorrent and the sizing is skewed.

Any Help would be appreciated.
Thanks.
C. Lamb

Wed, 12/18/2002 - 22:05#1

Wed, 12/18/2002 - 22:05#1

ICS_support

XtVaCreatePopupShell...

Hmm! I haven`t looked at this implementation of ToolTips. It is a different implementation from the one that existed in the ICS EPak, I believe, before that software was rolled into Motif 2.2.

I could imagine that the tips software works by walking up the hierarchy of the widget so as to find the top-level shell and so as to calculate the offsets and then the real-screen coordinates where the tip should be displayed. And I could imagine that it does so incorrectly, probably in using the wrong test to determine the bounding shell.

Please isolate the behavior in the smallest test case possible and submit it to the interface at http//bugs.motifzone.net .