powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Вывести текст с координатами
4 сообщений из 4, страница 1 из 1
Вывести текст с координатами
    #33655926
kinolog
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Как вывести текст в PictureBox с заданными координатами.
...
Рейтинг: 0 / 0
Вывести текст с координатами
    #33655981
marvan
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
API функция DrawTextEx
...
Рейтинг: 0 / 0
Вывести текст с координатами
    #33656013
kinolog
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
А примерчик мона
...
Рейтинг: 0 / 0
Вывести текст с координатами
    #33656045
Фотография big-duke
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
вот те Апплеман
========================
DrawTextEx

VB Declaration

Declare Function DrawTextEx& Lib "user32" Alias "DrawTextExA" (ByVal hDC As_
Long, ByVal lpsz As String, ByVal n As Long, lpRect As RECT, ByVal un As Long,_
lpDrawTextParams As DRAWTEXTPARAMS)

Description

Similar to DrawText with additional capabilities.

Use with VB

No problem

Parameter Type/Description
hDC Long—A handle to a device context on which to draw.
lpsz String—The text string to draw.
n Long—The number of characters to draw. If the entire string is to be drawn (up to the null terminator), this may be set to –1.
lpRect RECT—The formatting rectangle to use for drawing (logical coordinates).
un Long—An array of flag bits that determines how the drawing will be performed. Includes all of the constants listed in Table 11.12 plus additional constants listed in Table 11.13.
lpDrawTextParams DRAWTEXTPARAMS—A structure containing additional drawing parameters. This structure is described in Appendix B.
Return Value

Long—The height of the text drawn.

Platform

Windows 95, Windows NT 4.0
Table 11.13 Additional Text Drawing Flags

Flag Constant Description
DT_EDITCONTROL Display mimics that of a multiline edit control. A partially visible line is not displayed.
DT_END_ELLIPSES The end of a line is replaced with ellipses if the string will not fit into the rectangle. For example, ….
DT_PATH_ELLIPSES If the string contains the \ character, ellipses are substituted within the string in order to make it fit into the rectangle. For example: a long path name might be displayed thus— c:\windows\….\doc\readme.txt
DT_MODIFYSTRING If DT_ENDELLIPSES or DT_PATHELLIPSES is specified, the string is modified to match the string actually displayed.
DT_RTLREADING Draws text right to left if the font selected into the device context is Hebrew or Arabic.
==========================================

...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Вывести текст с координатами
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]