[api-dev] How to move viewcursor into a Form.textbox

2008-12-03 Thread Fernand Vanrie
Hallo all, I trye to get with some basic codelines the "focus" off a textbox in a form (the cursor must be ready to fill in a text) i tryed this code oviewcursor = thiscomponent.CurrentController.viewcursor. myRange = ofrom.Textbox1.start oviewcursor.gotorange(myrange, false) but get a u

Re: [api-dev] How to move viewcursor into a Form.textbox

2008-12-03 Thread Cor Nouws
Hi Fernand, Fernand Vanrie wrote (3-12-2008 14:37) I trye to get with some basic codelines the "focus" off a textbox in a form (the cursor must be ready to fill in a text) i tryed this code oviewcursor = thiscomponent.CurrentController.viewcursor. myRange = ofrom.Textbox1.start oviewcurs

Re: [api-dev] How to move viewcursor into a Form.textbox

2008-12-03 Thread Frank Schönheit - Sun Microsystems Germany
Hello Fernand, > I trye to get with some basic codelines the "focus" off a textbox in a > form (the cursor must be ready to fill in a text) something like controlModel = ThisComponent.DrawPage.Forms.getByName( "formName"). _ getByName( "controlName" ) control = ThisComponent.CurrentCont

Re: [api-dev] How to move viewcursor into a Form.textbox

2008-12-03 Thread Fernand Vanrie
Cor and Frank, Frank Schönheit - Sun Microsystems Germany wrote: Hello Fernand, I trye to get with some basic codelines the "focus" off a textbox in a form (the cursor must be ready to fill in a text) something like it works like a charm, i will never understand the difference bet

Re: [api-dev] How to move viewcursor into a Form.textbox

2008-12-03 Thread Frank Schönheit - Sun Microsystems Germany
Hi Fernand, > it works like a charm, i will never understand the difference between > Model and Control :-) A model exists exactly once - like the document in which it lives exists once, even if you do a "Window / New Window", which opens a new window where the very same document is displayed. S