faqts : Computers : Programming : Languages : Tse : Clipboard

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

TSE: Operation: Goto: How to goto the buffer of a named clipboard?

Nov 12th, 2006 15:49
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 13 November 2006 - 00:44 am -------------------

TSE: Operation: Goto: How to goto the buffer of a named clipboard?

===

Method: Prefix the letter of that named clipboard with '+++', get the 
corresponding bufferid, and use the GotoBufferId() to go to that buffer

===

--- cut here: begin --------------------------------------------------

FORWARD INTEGER PROC FNClipboardGetBufferNamedSimpleI( STRING s1 )

FORWARD INTEGER PROC FNClipboardGotoBufferNamedSimpleB( STRING s1 )

FORWARD PROC Main()

FORWARD STRING PROC FNStringGetClipboardBufferNamedFilenameSimpleS( 
STRING s1 )


// --- MAIN --- //

PROC Main()

 Message( FNClipboardGotoBufferNamedSimpleB( "A" ) ) // give TRUE if 
going to the buffer of that named clipboard was successful

END

<F12> Main()

// --- LIBRARY --- //

// library: clipboard: goto: buffer: named: simple 
(filenamemacro=gotoclns.s) [kn, ri, mo, 13-11-2006 00:47:47]

INTEGER PROC FNClipboardGotoBufferNamedSimpleB( STRING s )

 INTEGER bufferId = FNClipboardGetBufferNamedSimpleI( s )

 RETURN( GotoBufferId( bufferId ) )

END

// library: clipboard: get: buffer: named: simple 
(filenamemacro=getclnsi.s) [kn, ri, su, 12-11-2006 22:47:34]

INTEGER PROC FNClipboardGetBufferNamedSimpleI( STRING s )

 STRING clipBoardNameS[255] = 
FNStringGetClipboardBufferNamedFilenameSimpleS( s )
 INTEGER bufferId = GetBufferId( clipBoardNameS )
 RETURN( bufferId )
END

// library: string: get: clipboard: buffer: named: filename: simple 
(filenamemacro=getstfsi.s) [kn, ri, su, 12-11-2006 22:49:22]

STRING PROC FNStringGetClipboardBufferNamedFilenameSimpleS( STRING s )

 RETURN( "+++" + s )

END

--- cut here: end ----------------------------------------------------

===

Internet: see also:

---

TSE: Clipboard: Named: Link: Overview: Can you give an overview of 
links?
http://www.faqts.com/knowledge_base/view.phtml/aid/42993/fid/899

----------------------------------------------------------------------