[Gambas-user] Its a Bug?...selection

javier romero cjro99 at ...67...
Thu Aug 17 23:41:08 CEST 2006


Oki thanks, i do that in the lostfocus event i di text1.selection.clear

Thanks




----------------------------------------
> From: ronstk at ...239...
> To: gambas-user at lists.sourceforge.net
> Date: Thu, 17 Aug 2006 17:02:32 +0200
> Subject: Re: [Gambas-user] Its a Bug?...selection
> 
> On Thursday 17 August 2006 15:04, javier romero wrote:
> > Hi, in a proyect i have 2 text box and a buttom, when starts i set the focus and select (text1.selection.all) to the first, if i use the tab buttom when the focus goes to the second text the selection of the first text is clear but, if i  click the buttom and in click event i use text2.setfocus() the focus goes to text2 but the selection of text1 is not cleared. The same occurs when i clicked with the mouse over the second text.
> > 
> > I supose when a control lose the focus always the selection is cleared is that correct?
> > 
> > I'm using ganbas 1.0.16
> > 
> > Thanks
> > Javier
> 
> And when the focus go back to text1 ?
> I need the previous selected to get on clip board and past it somewhere.
> 
> The selection is part of the control text1 and text2 has also a selection.
> They do not change if focus is lost.
> If you want that selection is lost use the Text1_Lostfocus() event.
> 
> The transfer of selected part is done with the clipboard.
> Use the right mouse button in the textbox to see a menu for it.
> 
> In any case the both textboxes has there own selection handler
> and buffers for it.
> 
> Just in case you want to do in example:
> 
> public button1_click()
>  text3.text = text1.selection & text2.selection it should stay selected.
> end
> 
> you see why it must stay selected.
> 
> Ron
> 
>  
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

_________________________________________________________________
Descubre Live.com - tu propia página de inicio, personalizada para ver rápidamente todo lo que te interesa en un mismo sitio.
http://www.live.com/getstarted



More information about the User mailing list