Differences between revisions 2 and 3
Revision 2 as of 2006-04-23 00:47:54
Size: 460
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 3 as of 2008-03-11 10:50:23
Size: 460
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Introduction

This is a small code snippit for getting the correct PositionOfAnEvent when it is captured in a ctrl inside of a wxSplitter

Snippit

   1 def GetTruePosition(self, event):
   2     sashpos = self.splitter.GetSashPosition()
   3     falsex = event.GetX()
   4     truex = sashpos + falsex
   5     print truex
   6     truey = event.GetY()
   7     return truex, truey

Comments

- Jeff Peck (Sanguinus@earthlink.net)

Getting true event positions when using wxSplitters (last edited 2008-03-11 10:50:23 by localhost)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.