El dom, 11-12-2016 a las 02:34 +0000, Pete Lomax escribió: ...... > > To clarify: When I press the menu key on the keyboard, I want to show a popup > menu positioned on the relevant tab, to mimic what happens when I use the > mouse and right click on the tab. In the latter case (RIGHTCLICK_CB) I can > use the CURSORPOS attribute to position the menu, which is perfectly fine, > but I cannot think of anything that would work in a similar fashion for a > keypress (ideally with the top left of the menu centered on the tab title). >
If all tabs are visible (there is not arrows to move through many tabs) I think you can approximate the tab position based in the size of the tab container, the size of the child (to get the rectangle where are displayed the tabs) and the size of the title in pixels (using TABPADDING and CHARSIZE). Germán ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users