Search found 102 matches: gettext

Return to advanced search

Re: How to obtain plain text from a RTF control?

hua wrote:Which DATA or METHOD in a rtf class should be used to get the content in plain text (without changing the actual content)?
TIA


Have you tried using oRichEdit:GetText() ?
by Antonio Linares
Wed Dec 28, 2022 9:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to obtain plain text from a RTF control?
Replies: 8
Views: 409

Re: Cursor position to last character in the line

thanks cnavarro,

oGet:bGotFocus := { || oGet:nPos := Len( oGet:GetText() ) + 1, oGet:SetPos( oGet:nPos ) }

where should I put on this control statement
by kkyung
Wed Nov 02, 2022 4:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cursor position to last character in the line
Replies: 4
Views: 257

using Ctrl-Enter in Getq

Hello Antonio en Manuel,
I discovered the following problem. If I define a Get and want to start on a new line in the Get, one can use the Alt-Enter and the Ctrl-Enter. However, if one uses Ctrl-Enter the value can't be saved. The GetText is empty.
Is there a solution for this?
by plantenkennis
Tue Mar 22, 2022 9:25 am
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: using Ctrl-Enter in Getq
Replies: 1
Views: 276

Re: TDatabase Class

... Func  _Isearch( oLname1, cLname1, oCid1, cCid1, oSceis1, cSceis1, oLbx, oRsCust )cLname1  := alltrim( oLName1:GetText() )cCid1    := alltrim( oCid1:GetText() )cSceis1  := alltrim( oSceis1:GetText() )Do CaseCase (Empty( ...
by Rick Lipkin
Wed May 19, 2021 8:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2076

Re: TDatabase Class

... Static Func _Isearch( oLname1, cLname1, oCid1, cCid1, oSceis1, cSceis1, oLbx, oDbf ) //, oRsCust ) cLname1 := alltrim( oLName1:GetText() ) cCid1 := alltrim( oCid1:GetText() ) cSceis1 := alltrim( oSceis1:GetText() ) msginfo( cLname1 ) Do Case Case (Empty( cLName1 ) .and. Empty( ...
by Rick Lipkin
Wed May 19, 2021 7:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2076

Re: TDatabase Class

... of oDbf .. With ADO and SQl there is a LIKE statement .. so this statement works as you start typing a field value cLname1 := alltrim( oLName1:GetText() ) // this starts building a value one charactor at a time. oRsCust:Filter := "[CustomerName] like '"+cLname1+"%'" This ...
by Rick Lipkin
Wed May 19, 2021 5:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2076

Re: Question about the clipboard

Have you tried oClip:setText() and oClip:getText()?

Why not just use a variable instead of the clipboard?

James
by James Bott
Fri Oct 23, 2020 7:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about the clipboard
Replies: 1
Views: 242

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: 502

Contents of the input field

Hi, On the window of someone else's application there is an input field (class Edit). There is text in this field. I know the pointer of this field and want to get its contents #DEFINE WM_GETTEXT 13 buf:=space(200) SendMessage(hWn, WM_GETTEXT, 200, @buf) As a result, I get an empty value. What am I ...
by Natter
Tue Nov 12, 2019 6:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Contents of the input field
Replies: 2
Views: 502

dbrowse.prg

Mod_harbor is a great project. I think it will give a new life to the harbour and its community. I installed mod_harbur on windows 10(64bit) ( XAMPP 64bit) and started to study the work of dbrowse.prg program. In normal operation everything works correctly . When I press the button NEXT quickly seve...
by gruncic
Fri Nov 01, 2019 2:41 pm
 
Forum: mod_harbour
Topic: dbrowse.prg
Replies: 6
Views: 1146

Re: fwdbu request

... @ 238, 6 BUTTON oBtn PROMPT FWString( "Copy to clipboard" ) ; OF oDlg SIZE 180, 28 PIXEL ; ACTION ( CopyToClipboard( oDlg:aControls[ 1 ]:GetText() ), oDlg:end() ) return nil //----------------------------------------------------------------------------//
by Otto
Mon Mar 26, 2018 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: fwdbu request
Replies: 35
Views: 6535

Re: RichType Print

Rick

oRTF:SaveAsRTF(), return all code RichEdit
oRTF:GetText(), return text

Sorry, I do not understand what you need
What do you want to save to the database?
by cnavarro
Thu May 11, 2017 5:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RichType Print
Replies: 25
Views: 4267

Re: RTF from Variable

Cristabol Thank you for the GetText() method .. that worked perfect .. when I first load my text .. all the lines are hi-lighlited ... I do not want to see the hi-lights .. any way I can TURN OFF the hi-lights .. perhaps a KeyBoard() command ...
by cnavarro
Sat May 06, 2017 5:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RTF from Variable
Replies: 40
Views: 4230

Re: RTF from Variable

Cristabol Thank you for the GetText() method .. that worked perfect .. when I first load my text .. all the lines are hi-lighlited ... I do not want to see the hi-lights .. any way I can TURN OFF the hi-lights .. perhaps a KeyBoard() command ...
by Rick Lipkin
Sat May 06, 2017 5:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RTF from Variable
Replies: 40
Views: 4230

Error fwh1608 - thema Classic (Solucionado)

... oWndChild:oBottom PROMPT "One", "Two" ; OF oWndChild ACTIVATE WINDOW oWndChild MAXIMIZED ; ON RIGHT CLICK MsgInfo( oWndChild:GetText() ) oWndChild:ReSize() return nil //----------------------------------------------------------------------------// function NewDialog() local ...
by MGA
Fri Nov 25, 2016 12:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error fwh1608 - thema Classic (Solucionado)
Replies: 15
Views: 3447
Next

Return to advanced search