Solved by ptrblck in post #4 
              
              
                Could you post your code here so that we can have a look? 
Based on your description, it should work, and we cannot debug any further without seeing the code.