|
8 | 8 |
|
9 | 9 | @Overview |
10 | 10 |
|
11 | | - The clipboard is the standard way to share information and data between applications, |
12 | | - which are currently running on the OS. It also gives the user a temporary location, |
13 | | - where information and data may be stored and accessed quickly and easily. For instance, |
14 | | - when text is cut within an editor, that text goes to the clipboard, where it may be |
15 | | - retrieved later, by pasting it into another application. PureBasic gives the programmer |
16 | | - the ability to develop applications capable of cutting, copying and pasting text or images |
17 | | - via the standard clipboard. |
| 11 | + Буфер обмена - стандартный способ обмена информацией между приложениями, |
| 12 | + которые в данный момент запущены в ОС. Это также дает пользователю временное хранилище, |
| 13 | + где информация и данные могут быть сохранены и быстро и легко доступны. Например, |
| 14 | + когда в редакторе вырезается текст, он помещается в буфер обмена, откуда он может быть |
| 15 | + извлечен позднее путем вставки в другое приложение. PureBasic дает программисту |
| 16 | + возможность разрабатывать приложения, способные вырезать, копировать и вставлять текст или изображения |
| 17 | + через стандартный буфер обмена. |
18 | 18 |
|
19 | 19 | @CommandList |
20 | 20 |
|
|
28 | 28 |
|
29 | 29 | @Description |
30 | 30 |
|
31 | | - Clears the clipboard. This means that any data contained within the clipboard, is totally flushed and is no |
32 | | - longer available from the clipboard. |
| 31 | + Очищает буфер обмена. Это означает, что любые данные, хранящиеся там, будут полностью стерты и их |
| 32 | + невозможно будет извлечь из буфера обмена. |
33 | 33 |
|
34 | 34 | @NoParameters |
35 | 35 | @NoReturnValue |
|
44 | 44 | @Function Result = GetClipboardImage(#Image [, Depth]) |
45 | 45 |
|
46 | 46 | @Description |
47 | | - Creates a new image from the clipboard image data (if any). |
| 47 | + Создает новое изображение из данных, хранящихся в буфере обмена (если они существуют). |
48 | 48 |
|
49 | 49 | @Parameter "#Image" |
50 | | - The number for the new image. |
51 | | - @ReferenceLink "purebasic_objects" "#PB_Any" can be used to auto-generate this number. |
| 50 | + Номер нового изображения. |
| 51 | + @ReferenceLink "purebasic_objects" "#PB_Any" может быть использовано для автоматической генерации номера. |
52 | 52 |
|
53 | 53 | @OptionalParameter "Depth" |
54 | | - The depth of the new image. Valid values are 24 (default) or 32-bit. |
| 54 | + Глубина нового изображения. Возможные значения: 24 (по умолчанию) или 32 бита. |
55 | 55 |
|
56 | 56 | @ReturnValue |
57 | | - Returns nonzero on success and zero on failure. |
58 | | - If @#PB_Any was used as the #Image parameter then the new image number is returned. |
| 57 | + Возвращает ненулевое значение в случае успеха и ноль в противном случае. |
| 58 | + Если использовано @#PB_Any в параметре #Image, будет возвращен номер нового изображения. |
59 | 59 |
|
60 | 60 | @Remarks |
61 | | - The image may be freed by using the @@FreeImage function. |
62 | | - For further use of the image, there are functions available such as @@DrawImage |
63 | | - or @@ImageGadget. |
| 61 | + Изображения могут быть уничтожены с помощью функции @@FreeImage. |
| 62 | + Для дальнейшего использования изображения предусмотрены такие функции как @@DrawImage |
| 63 | + или @@ImageGadget. |
64 | 64 |
|
65 | 65 | @SeeAlso |
66 | 66 | @@GetClipboardText |
|
72 | 72 | @Function Text$ = GetClipboardText() |
73 | 73 |
|
74 | 74 | @Description |
75 | | - Returns the text string currently contained within the clipboard. |
| 75 | + Возвращает текстовую строку, содержащуюся в буфере обмена. |
76 | 76 |
|
77 | 77 | @NoParameters |
78 | 78 |
|
79 | 79 | @ReturnValue |
80 | | - Returns the content of the clipboard if it contains text. |
81 | | - If the clipboard contains no data or no text data, then an empty string is returned. |
| 80 | + Возвращает данные буфера обмена, если в нем содержится текст. |
| 81 | + Если буфер обмена не содержит текстовых данных, возвращается пустая строка. |
82 | 82 |
|
83 | 83 | @SeeAlso |
84 | 84 | @@GetClipboardImage |
|
90 | 90 | @Function SetClipboardImage(#Image) |
91 | 91 |
|
92 | 92 | @Description |
93 | | - Places a copy of the given image into the clipboard. If the clipboard currently |
94 | | - contains an image then it will be overwritten. |
| 93 | + Помещает копию данного изображения в буфер обмена. Если он в текущий момент |
| 94 | + содержит изображение, оно будет заменено. |
95 | 95 |
|
96 | 96 | @Parameter "#Image" |
97 | | - The image to put into the clipboard. |
| 97 | + Изображение, помещаемое в буфер обмена. |
98 | 98 |
|
99 | 99 | @NoReturnValue |
100 | 100 |
|
|
108 | 108 | SetClipboardImage(0) |
109 | 109 | EndIf |
110 | 110 |
|
111 | | - ; now if you open a graphics application and paste the clipboard contents, |
112 | | - ; you will see a Japanese flag ;-) |
| 111 | + ; теперь если вы откроете графическое приложение и вставите данные из буфера обмена, |
| 112 | + ; вы увидите Японский флаг ;-) |
113 | 113 | @EndCode |
114 | 114 |
|
115 | 115 | @SeeAlso |
|
122 | 122 | @Function SetClipboardText(Text$) |
123 | 123 |
|
124 | 124 | @Description |
125 | | - Stores a string into the clipboard. If the clipboard already contains text, it will be overwritten. |
| 125 | + Помещает строку в буфер обмена. Если он в текущий момент содержит текст, он будет перезаписан. |
126 | 126 |
|
127 | 127 | @Parameter "Text$" |
128 | | - The string you want to store in the clipboard. |
| 128 | + Строка, которую вы хотите поместить в буфер обмена. |
129 | 129 |
|
130 | 130 | @NoReturnValue |
131 | 131 |
|
|
0 commit comments