xtGetApplicationResources(+WidgetName,...
Move to
Next Prev
Up Top
See also
xtGetApplicationResources/3
IF Computer > IF/Prolog > Manuals > IF/Prolog V4.1 マニュアル > IF/Prolog Interfaces > Athena インタフェースマニュアル > X11.4 Toolkit によるプログラミング > アプリケ−ションリソ−スの取得 > xtGetApplicationResources/3

xtGetApplicationResources/3

MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

xtGetApplicationResources(+WidgetName, ?ResourceList, +ArgList)

intrinsicsのXtGetApplicationResources()と同様の働きをします。

この述語はリソ−スデ−タベ−スから、アプリケ−ションリソ−スの値を検索します。

リソースの値は、デフォルトファイルやコマンド行からの指定によって、文字列で与えられ、Prologの整数かアトムに変換されます。アトムに変換されるのは、文字列が数字以外の文字を含む時です。与えられているデフォルトは、任意のPrologの項をとることができます。

widgetは複数のディスプレイを使用している場合に、どのデ−タベ−スを使うべきかを決定するために使われます。

ResourceListは、以下のようにリストから成るリストです。

[[ ResourceName, ResourceClass, ResourceVariable, ResourceDefault ], ...]

ResourceNameとResourceClassは、ResourceVariableに単一化される値を検索するために使われます。リソ−スデ−タベ−ス、あるいはArgList中に値が見つからない場合には、ResourceDefaultが使われます。

ArgListは、xtSetValuesのArgListと同様ですが、任意のPrologの値が使えます(変換はされません)。この引数の値は、リソ−スデ−タベ−スの値に優先します。

?- xtGetApplicationResources(command_1, [ [label1Text, 'LabelText', LabelText1, label1], [label2Text, 'LabelText', LabelText2, label2] ], [ label2Text(zeile2) ]).

LabelText1 = label1 LabelText2 = zeile2

yes ?- _

widget_expected WidgetNameはwidgetでなければならない list_expected ArgList、ResourceListはリストでなければならず、ResourceListの要素の数は4でなければならない list_too_long ResourceListの要素の数は4でなければならない atom_expected ResourceName、ResourceClassはアトムでなければならない illegal_arglist_element ArgListの要素はアリティ1のファンクタでなければならない

read on...
IF/Prolog by Siemens
Language
English
Japanese
German
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/IFProlog/Manuals/v4.1/advanced_feature/athena/xtprog/apresoce/xtgetar/home_en.html
published 2008/8/25 update 1995/11/6 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS