realbasic-nug
[Top] [All Lists]

Window.Left and WIndow.Top incorrect

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Window.Left and WIndow.Top incorrect
From: Greg O'Lone <rbnuglist@stretchedout.com>
Date: Tue, 28 Jul 2009 22:16:33 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I'm attempting to create an autocomplete menu for an editfield (2009r2.1) that appears at the text insertion point and having a problem with the placement of the menu. It seems that when I call TrueWindow.Left and TrueWindow.Top from a subclass of an editfield, I am not getting the coordinates of the window, but the window behind it.

Mac OSX 10.5.7 -> Windows Vista SP1 (also a problem on XP)

AutocompleteField (Subclass of Editfield)
on a TabPanel
on a Document Window
in front of another document window
inside an MDI window

So what I'm attempting to do is to position another window with a listbox on it at the cursor position within the AutocompleteField. Problem is that TrueWindow.left and TrueWindow.Top are returning the top-left corner of the window BEHIND the top window.

Anyone seen something like this before?

So far, I've been unable to reproduce it in a smaller app and I'm bound by a contract on the full project. If I find a way to trim it down, I'll post an example.

Greg O'Lone
Stretched Out Software
http://www.stretchedout.com


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>