From: dean.earley@icode.co.uk   
      
   Jan Hyde wrote:   
   > Dean Earley 's wild thoughts were   
   > released on Wed, 21 Dec 2005 13:26:24 +0000 bearing the   
   > following fruit:   
   >   
   >> Dean Earley wrote:   
   >>> Has anyone had the NodeClick event not firing in VB6 with the VB5   
   >>> Treeview control?   
   >>>   
   >>> It fires correctly when using the cursor keys to select nodes but there   
   >>> is nothing when i click a node.   
   >>>   
   >>> It only appears to be happening in one project on one PC (regardless of   
   >>> whether it is compiled or not. Any other pc works, and the test projects   
   >>> all work but I can't narrow it down to a specific item at fault :(   
   >> After stripping the project down to its bare bones, I got to the code   
   >> that restores the window position/state form the registry.   
   >> This happened to position it on the second monitor (-1024,0).   
   >>   
   >> The NodeClick event will NOT fire if the mouse cursor has an x position   
   >> (and I assume Y as well) less than 0...   
   >>   
   >> That is another for the list that assumes the screen stops at 0   
   >> (sensible assumption on Win9x I admit).   
   >   
   > I don't know the first thing about multiple monitors but I   
   > guess it kinda makes sense, when you minimize a form, it   
   > just moves it off screen, I guess you confused the hell out   
   > of it.   
      
   Minimized is still on the screen, and this was maximised on the monitor   
   to the left of the primary. The window was at -1024,0 to 0,768 thus any   
   "click" on the node had an absolute cursor position less than 0 and it   
   got confused and failed to fire the event.   
      
   Seeing as multi monitor support was added in 98, there is still a lot of   
   apps that fail on odd layouts.   
      
   --   
   Dean Earley (dean.earley@icode.co.uk)   
   i-Catcher Development Team   
      
   iCode Systems   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|