Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
151 user(s) are online (140 user(s) are browsing Forums)

Members: 0
Guests: 151

more...

Support us!

Headlines

 
  Register To Post  

AmiCygnix Copy And Paste Buffers
Quite a regular
Quite a regular


See User information
To all, particularly @cygnusEd.

I am making some updates to an application running in AmiCygnix. I am confused by the copy and paste buffers.

Take LeafPad as an example. I have it open in a fresh AmiCygnix window. Outside of AmiCygnix I can copy and paste some text, let's say from the shell. I can then paste that into LeafPad, fine. But I cannot seem to copy from LeafPad and paste outside of AmiCygnix. Is this expected?

As for my own application, will I need to consider using the clipboard device to handle copy and pasting from outside of AmiCygnix?

Looking for some guidance.

Thank you.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: AmiCygnix Copy And Paste Buffers
Quite a regular
Quite a regular


See User information
@rjd324

You should be able to copy something in Leafpad and paste it into Notepad for example. But it only works with latin characters. If there is for example an UTF-8 encoded character in the copied text that cannot be converted, you cannot paste it into an Amiga program.

Second is: You only can exchange the clipboard buffer by using the key combinations "RAmiga+C" and so on. If you copy text in Leafpad by using the menu item, it will not be copied into the Amiga clipboard. Clipboard support is not fully implemented in GTK+.

There are some clipboard functions in my utility library "libaos4util":

- int __cygnix_write_text_to_amiga_clipboard(char *text, int cbunit);
- char *__cygnix_read_text_from_amiga_clipboard(int cbunit);

I think they are easy to understand. They are using the iffparse.library.

And especially for GTK+:

- void __cygnix_write_amiga_clipboard_gtk2(void); (copies the content of the Amiga clipboard into the GTK+ clipboard)
- int __cygnix_read_amiga_clipboard_gtk2(void); (copies the content of the GTK+ clipboard to the Amiga clipboard)

Sources are in the "amicygnix-base-src.lha" package on OS4-depot.
You can find the GTK+ clipboard code in "Cygnix:CygnixPPC/src/X11R6.3/xc/aos4/misc/__cygnix_init_gtk2.c".

X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe
SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450
Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project