Le 25/11/2015 09:07, Rolf-Werner Eilert a écrit : > In one of my older projects, there was kinda timeout after 2 minutes of > inactivity. In the TreeView the next parent was jumped at and "clicked" > to let the data of the child disappear from screen. This is the code, > "baum" is the TreeView: > > baum.MoveParent > baum.Item.Selected = True > baum_Click > > Now in Gambas3, when the program doesn't have the focus anymore, I get a > "Null object" error at the baum.Item.Selected line. > > I know, Item is for the internal cursor. And I want the real cursor. But > Current is readonly, right? So how can I set the visible cursor? Or does > the error come from something quite different? > > Regards > Rolf >
Provide more code. If baum.Item returns NULL, that should mean that MoveParent() failed. -- Benoît Minisini ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user