Re: [Gambas-user] Setfocus issue

2008-06-26 Thread Ron
Benoit Minisini schreef: > On jeudi 26 juin 2008, Ron wrote: > >> Benoit Minisini schreef: >> >>> On mercredi 25 juin 2008, Ron wrote: >>> Hi, I have a window with 2 Textboxes I want to give focus to TextBox2 upon loading of the form, if I open the form as a norma

Re: [Gambas-user] Setfocus issue

2008-06-26 Thread Benoit Minisini
On jeudi 26 juin 2008, Ron wrote: > Benoit Minisini schreef: > > On mercredi 25 juin 2008, Ron wrote: > >> Hi, > >> > >> I have a window with 2 Textboxes I want to give focus to TextBox2 upon > >> loading of the form, if I open the form as a normal window, it's ok. > >> Textbox2 gets the focus. > >

Re: [Gambas-user] Setfocus issue

2008-06-26 Thread Ron
Benoit Minisini schreef: > On mercredi 25 juin 2008, Ron wrote: > >> Hi, >> >> I have a window with 2 Textboxes I want to give focus to TextBox2 upon >> loading of the form, if I open the form as a normal window, it's ok. >> Textbox2 gets the focus. >> If I load the form on a workspace, TextBox2

Re: [Gambas-user] Setfocus issue

2008-06-25 Thread Benoit Minisini
On mercredi 25 juin 2008, Ron wrote: > Hi, > > I have a window with 2 Textboxes I want to give focus to TextBox2 upon > loading of the form, if I open the form as a normal window, it's ok. > Textbox2 gets the focus. > If I load the form on a workspace, TextBox2.SetFocus doesn't work. > > See attach

Re: [Gambas-user] Setfocus issue

2008-06-25 Thread Ron
Like so: --- PUBLIC SUB Button3_Click() OpenPage(FBarcode) END ' load a page onto the workspace PUBLIC SUB OpenPage(hForm AS Form) Workspace1.Add(hForm) Workspace1.ActiveWindow = hForm hForm.SetFocus END --- Instead of: PUBLIC SUB Button1_Click() FBarcode.Show END Regards, Ron

Re: [Gambas-user] Setfocus issue

2008-06-25 Thread M0E Lnx
what do you mean load it from a "workspace" On Wed, Jun 25, 2008 at 3:23 PM, Ron <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a window with 2 Textboxes I want to give focus to TextBox2 upon > loading of the form, if I open the form as a normal window, it's ok. > Textbox2 gets the focus. > If I l

[Gambas-user] Setfocus issue

2008-06-25 Thread Ron
Hi, I have a window with 2 Textboxes I want to give focus to TextBox2 upon loading of the form, if I open the form as a normal window, it's ok. Textbox2 gets the focus. If I load the form on a workspace, TextBox2.SetFocus doesn't work. See attached example project Do I have to reread the do