VS:CreateIconPushButton/ja

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

アイコンプッシュボタンを作成し、アイコンの番号と幅(文字数)を指定します。廃止予定の関数です。代わりに CreateImagePushButton を使用してください。
PROCEDURE CreateIconPushButton(
nDialogID  :LONGINT;
nComponentID  :LONGINT;
nIconID  :INTEGER;
nWidthInChars  :INTEGER);
def vs.CreateIconPushButton(nDialogID, nComponentID, nIconID, nWidthInChars):
    return None

Parameters

nDialogID LONGINT
nComponentID LONGINT
nIconID INTEGER the index of the ICN# resource in the currently open rsrc file (or qtr on Windows)
nWidthInChars INTEGER

Example

PROCEDURE Example;
VAR
   dialog1 :INTEGER;
   result  :INTEGER;
   boo     :BOOLEAN;
 
PROCEDURE Dialog_Handler(VAR item :LONGINT; data :LONGINT);
BEGIN
END;
 
BEGIN
   boo := SetVSResourceFile('IP Resources');
   dialog1 := CreateLayout('Example Dialog', FALSE, 'OK', 'Cancel');
   CreateIconPushButton(dialog1, 4, 11021, 20);
   SetFirstLayoutItem(dialog1, 4);
   result := RunLayoutDialog(dialog1, Dialog_Handler);
END;
RUN(Example);

Version

CreateIconPushButton 廃止バージョン: Vectorworks 2012


利用可能バージョン: VectorWorks12.5


Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox
In other languages