powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / как узнать ширину, высоту текста?
3 сообщений из 3, страница 1 из 1
как узнать ширину, высоту текста?
    #33729649
doom
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
как узнать ширину, высоту строки для заданного фонта?
...
Рейтинг: 0 / 0
как узнать ширину, высоту текста?
    #33729774
Фотография PL99
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
n_cst_platformwin32
PowerBuilder Help
of_GetTextSize function
Description

Calculates height and width in PBUs, based on the passed input arguments.

Access

Public

Syntax

instancename.of_GetTextSize ( window, text, font, fontsize, bold, italic, underline, height, width )

Argument Description
instancename Instance name of n_cst_platform
window Window variable used by the function to create temporary text
text String specifying the text for which the function calculates height and width
font String specifying the font
fontsize Integer specifying the font size
bold Boolean specifying whether text is bold
italic Boolean specifying whether text is italic
underline Boolean specifying whether text is underlined
height Integer into which the function places the text height, in PBUs (passed by reference)
width Integer into which the function places the text width, in PBUs (passed by reference)
Return value

Integer. Returns 1 if the function succeeds and -1 if an error occurs.

Usage
Call this function when sizing text objects and controls manually in a multiplatform environment.
This function calls the GetDC, SelectObject, GetTextExtentPoint32A, and ReleaseDC external functions.
...
Рейтинг: 0 / 0
как узнать ширину, высоту текста?
    #33731726
Фотография Riska
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
PrintWidth: Определяет ширину stringa.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / как узнать ширину, высоту текста?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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