coordinates

From: Anton Fokin (fokin@tsl.uu.se)
Date: Fri Feb 25 2000 - 13:38:11 MET


Hi rooters,

1. I have noticed that TGPopup window is drawn inside a TGWindow it belongs
to, i.e. it gets shrinked according to size of the parent window. It is not
very convinient in a case of a relatively narrow window containing a
listtree or whatsoever. A user supposes to press right mouse button to
invoke a popup. If the menu has submenu, etc. and doesn't fit into fParent
window, it doesn't look nice. Can I do something about it?

2. I tryed instead of using fMsgWindow in TGPopupMenu constructor change to
fClient->GetRoot(). It helps, except menu is placed accordingly to its
parent and it is not a right parent in this case. What should I do to
translate my calls back to right coordinates?

gVirtualX->GetWindowSize(fMsgWindow->GetId(),x,y,w,h)
and
PopupMenu->PlaceMenu(x+GetX()+ev->fX, ...)

doesn't work...


Best regards,
Anton



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET