Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / как узнать ширину, высоту текста? / 3 сообщений из 3, страница 1 из 1
16.05.2006, 13:06
    #33729649
doom
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
как узнать ширину, высоту текста?
как узнать ширину, высоту строки для заданного фонта?
...
Рейтинг: 0 / 0
16.05.2006, 13:45
    #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
17.05.2006, 10:18
    #33731726
Riska
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
как узнать ширину, высоту текста?
PrintWidth: Определяет ширину stringa.
...
Рейтинг: 0 / 0
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / как узнать ширину, высоту текста? / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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