Search found 54 matches: setsel

Return to advanced search

Re: Richedit5 SendMsg

by Antonio Linares
Wed Aug 11, 2021 5:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Richedit5 SendMsg
Replies: 5
Views: 760

Re: problems after update to MacOs 11.1 (Big Sur)

Hello Antonio,

Today I updated my OS to MacOs 11.3.1 and the problem with the setting SetSel() is back again :(

Any suggestions?
by plantenkennis
Fri May 14, 2021 2:13 pm
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: problems after update to MacOs 11.1 (Big Sur)
Replies: 11
Views: 2299

problems after update to MacOs 11.1 (Big Sur)

... |nkey| IF (nKey < 127 .AND. nKey <> 13, (RK_Search(oGetZoek:GetText, nSortOrder), oGetZoek:SetFocus(), oGetZoek:SetSel(100,1)), ), IF (nKey == 13, oBrwMain:SetFocus(), ) }  It seems the SetSel() does not work anymore. Is there ...
by plantenkennis
Sat Jan 23, 2021 11:21 am
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: problems after update to MacOs 11.1 (Big Sur)
Replies: 11
Views: 2299

Re: Contents of the input field

Since I need to get the text from someone else's application, the Getwindowtext(hWn) function will return an empty value.
I solved this problem using clipboard

SendMessage(hWn, EM_SETSEL, 0, -1)
SendMessage(hWn, WM_COPY, 0, 0)
buf:=oClp:GetText()
by Natter
Wed Nov 13, 2019 6:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Contents of the input field
Replies: 2
Views: 503

Re: GET sin longitud con espacios blancos

He mirado el prg edit.prg de la clase TEdit()...
SetLimitText(n) para limitar la longitud.

@ 300,40 EDIT oEdit VAR cVar SIZE 280,22 PIXEL OF oWnd
oEdit:SetLimitText(30)

Metodos SelectAll()
y otros como SetSel() que deben heredar de TControl.

Iré investigando!!!


Un Saludo,
Xevi.
by Xevi
Mon Dec 18, 2017 10:57 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GET sin longitud con espacios blancos
Replies: 16
Views: 2685

Re: How to make memo edit in dialog automatic selectnone?

Thanks,
This line was enough for my purposes.
oGet1:bGotFocus = { || oGet1:SetSel( 0, 0 ) }
by Gale FORd
Thu Aug 24, 2017 2:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to make memo edit in dialog automatic selectnone?
Replies: 5
Views: 1000

Re: Cómo poner color a control GET con campo MEMO?

... CLR_BLACK, CLR_WHITE) } aoGetsBem[04]:bGotFocus := { || aoGetsBem[04]:SetColor( CLR_BLACK, nRGB( 255,255,45 )), aoGetsBem[04]:setsel(0,0), aoGetsBas[12]:setpos(0) } aoGetsBem[04]:cToolTip := 'Informe a Descrição do BEM (Ex: Imóvel na Rua São Paulo, 23 - Bairro Centro)' Um abraço, ...
by alexpdasilva
Thu Nov 19, 2015 5:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: poner color a control GET con campo MEMO? (SOLUCIONADO)
Replies: 2
Views: 506

Re: Mejoras para scintilla

Antonio, no recuerdo bien ese comportamiento, pero comprueba que al cargar el fichero después mandas el foco al control, o lo más sencillo quizás sea enviar un mensaje para colocarte en la primera posicion del documento ::Send( SCI_GETCURRENTPOS, 0, 0 ) o eliminar las selección ::Send( SCI_SETSEL, 0...
by cnavarro
Sat Dec 20, 2014 11:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Mejoras para scintilla
Replies: 1037
Views: 839526

Ver un Get a Campo MEMO con When .F.

... lo uso para poner el cursor al inicio del memo) REDEFINE GET odesaux_c2 VAR xdesaux_c2 MEMO ID 925 OF oDlg WHEN Z_EDIT .and. eval({ |oget| oget:SetSel(0,0),.t. },odesaux_c2) sI observan uso una Variable Z_EDIT = .T. cuando quiero que editen y uso Z_EDIT = .F. para Blorquear su edicion... 8) ...
by lubin
Thu Nov 21, 2013 8:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ver un Get a Campo MEMO con When .F.
Replies: 9
Views: 1469

Re: GET con tamaño indefinido

Cristobal,

El edit del browse pertenece al browse, y no a las columnas. Se usa uno solo para todas.

Luego solo tienes que quitar el comienzo:

oBrw:oEditGet:bGotFocus := { | o , hC | oBrw:Descripcion:oEditGet:SetSel( 0, 0 ) }
by Antonio Linares
Wed Apr 24, 2013 11:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GET con tamaño indefinido
Replies: 12
Views: 1505

Re: GET con tamaño indefinido

Cristobal,

Ese es el comportamiento por defecto de un Edit de Windows.

Para cambiarlo tendrias que usar bGotFocus y que desde ahí no se seleccione nada:

oEdit:bGotFocus = { || oEdit:SetSel( 0, 0 ) }
by Antonio Linares
Wed Apr 24, 2013 8:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GET con tamaño indefinido
Replies: 12
Views: 1505

Re: ComboBox

Colin, We have traced it and Method GotFocus() is called, but the calls to ::SetCurPos() or ::SetSel() don't work from within the method. Called externally, they are fine. I have done lots of tests. I have search the web for some hints, but found nothing yet. In the menatime ...
by Antonio Linares
Mon Feb 18, 2013 1:50 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: ComboBox
Replies: 12
Views: 4211

Re: New User of FiveLinux

... TGet to evaluate a bGotFocus if defined: METHOD GotFocus() CLASS TGet   ::SetCurPos( ::oGet:pos - 1 )   ::SetSel( 0, 0 )   if ::bGotFocus != nil      Eval( ::bGotFocus, Self )   endifreturn nil so now we ...
by Antonio Linares
Thu Feb 14, 2013 11:43 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: New User of FiveLinux
Replies: 7
Views: 3326

Re: autocomplete in get

... ::nCase) // ADDED BY RAMESH BABU P on 19-06-2011 nLength := len( rtrim( cItem ) ) cItem += space( nLength - len(cItem) ) ::SetText( cItem ) ::SetSel( nPosCursor -1, nLength) // Select found text ::oGet:Buffer = Pad( cItem, Len( ::oGet:Buffer )) // add by:ss-bbs return(.t.) endif ::HideSel() ...
by Maurizio
Thu Jun 23, 2011 4:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: autocomplete in get
Replies: 15
Views: 9177

Re: Campo MEMO

... TITLE cArticulo REDEFINE GET oNotas VAR mNotas MEMO ID 4002 OF oDlg COLORS nRgb(0,0,255),nRgb(128,255,255) oNotas:bGotFocus = { || oNotas:SetSel( 0, 0 ),; oNotas:Goto( oNotas:GetLineCount() ),; __Keyboard( Chr( VK_END ) ) } ACTIVATE DIALOG oDlg CENTERED // para grabarlo IF lGraba IF FItems->(Rlock()) ...
by LuisPonce
Thu May 26, 2011 3:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campo MEMO
Replies: 20
Views: 3713
Next

Return to advanced search