John Labenski <jlaben...@gmail.com> wrote: (01/06/2009 04:01)
>I don't really understand what you're trying to do. You first said >that Raise() works, but you couldn't make it active since there is no >function for this. I checked and I didn't see one either. Are you >really sure that that your UI can only work if you bring your app to >the foreground and make it active when the mouse go into the window? >What's wrong with the user dragging stuff onto the app and then >clicking the app the raise and focus it? > As far as I know, Raise() just changes a place in a sequence of numbers, some kind of refresh or redraw has to happen to redaw all windows in the system if they have to appear on top of any others. I tried following Raise() with FRAME:Update() and FRAME:Refresh() both singly and together though, and nothing happened. What I want to do is drag a file to the window so it gets loaded, replacing the previously displayed track data on the chart. That way I can see some line and if I want to see how a different track across the same space differs I can watch the change as the new replaces the old. This needs the Raise() to work the instant the file is dropped, at the latest, ideally the moment the draged file pointer arrives in the window. Lower() works fine to make the window drop visibly to the back the instant the file is dropped, I just want Raise() to work likewise to bring it to the front. Maybe the problem is NOT in Raise(). I read yesterday that it has more than it's fair share of problematic history, but maybe in this case the Z-order assignment is fine, but the window just isn't getting redrawn unless it had focus even while it was inactive, so all other windows, being redrawn, will appear over it if their precendence is higher in Z-order that the wxLua frame's previous place in that order. But having tried FRAME:Update() and FRAME:Refresh() and SetFocus() on the frame and on the child window, and SetFocusIgnoringChildren on the chart's parent panel, and anything else I can think of with equal non-effect, I have no idea what to do next. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users