[fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Torsten Bonde Christiansen

Hi all.

I've been spending som time now, looking for documentation on how to 
utilize the clipboard, but so far I have had no luck.


Does anyone know of a page that has a short introduction/tutorial, 
preferably something that will work cross-platform wise.


Kind regards,
Torsten Bonde Christiansen.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Graeme Geldenhuys

Torsten Bonde Christiansen wrote:


Does anyone know of a page that has a short introduction/tutorial, 
preferably something that will work cross-platform wise.



What GUI toolkit are you using and what platform?  Or is it a console 
based application, which normally means the clipboard only functions 
inside your own application.


For example, the X11 (X-Window on unix type OSes) clipboard functions 
totally different to the Windows clipboard.



Regards,
  - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Torsten Bonde Christiansen

Graeme Geldenhuys wrote:

Torsten Bonde Christiansen wrote:


Does anyone know of a page that has a short introduction/tutorial, 
preferably something that will work cross-platform wise.



What GUI toolkit are you using and what platform?  Or is it a console 
based application, which normally means the clipboard only functions 
inside your own application.

GUI application and preferably every possible combination.

I'm creating a cross-platform application that in some part of the 
program should be able to access the clipboard and read data as text only.


But from your answer if guess there is no single (simple) way to do this?

Regards,
Torsten.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Graeme Geldenhuys

Torsten Bonde Christiansen wrote:


But from your answer if guess there is no single (simple) way to do
this?


No, various toolkits all handle the clipboard in different was. So you 
need to create an abstraction layer that wraps the various platforms you 
want to support into a common API - which your application will use. You 
can take a look at fpGUI Toolkit (url shown below) or MSEgui to see how 
it is done. Both these GUI toolkits support X11 and Windows clipboards.


Regards,
  - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Martin Friebe

If you use Lazarus (or at least the LCL) it has a unit Clipbrd

and you can do
   Clipboard.AsText:= FText;

Martin

Torsten Bonde Christiansen wrote:

Graeme Geldenhuys wrote:

Torsten Bonde Christiansen wrote:


Does anyone know of a page that has a short introduction/tutorial, 
preferably something that will work cross-platform wise.



What GUI toolkit are you using and what platform?  Or is it a console 
based application, which normally means the clipboard only functions 
inside your own application.

GUI application and preferably every possible combination.

I'm creating a cross-platform application that in some part of the 
program should be able to access the clipboard and read data as text 
only.


But from your answer if guess there is no single (simple) way to do this?

Regards,
Torsten.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal