Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
テキストエリアコンポーネント
テキストエリアコンポーネントは Maple の Standard ワークシートまたはドキュメントにテキストエリアを定義します。テキストエリアの内容が変更されると、このコンポーネントは他の埋め込みコンポーネントを呼び出すための動作、または一連の動作を実行します。
テキストエリアの内容が変更されたときに動作を実行するには、TextArea Properties から開く項目が変更したときの動作ダイアログに実行したいコマンドを入力します。TextArea Properties を表示するには、ボタンを右クリック (Macintosh の場合は Control+クリック) してコンポーネントプロパティを選択します。入力するコマンドには、テキストエリアの内容が変更されたときの出力を表示する埋め込みコンポーネントが 1 つまたは複数指定されている必要があります。
名前プロパティは DocumentTools パッケージのルーチンからテキストエリアを参照するために使用されます。
テキストエリアの内容変更の出力を表示するには、追加のコンポーネントが最低でも 1 つ必要です。
テキストエリアコンポーネントをカスタマイズするには、TextArea Properties のオプションを設定します。動作は DocumentTools パッケージのルーチンを使用するコンポーネントに関連付けられます。
コンポーネントパレット上の画像
テキストエリアのプロパティ
下記表はテキストエリアコンポーネントのオプションによって制御されるプロパティとその用途の説明です。
G 列の x はそのオプションが読み取り可能、すなわち、DocumentTools[GetProperty] ツールで取得可能であることを示します。
S 列の x はそのオプションが書き込み可能、すなわち、DocumentTools[SetProperty] ツールで設定可能であることを示します。
Option G S Option Type editable x x true or false enabled x x true or false tooltip x x string value x x string visible x x true or false visibleCharacterWidth x x positive integer visibleRows x x positive integer
editable
内容の編集が可能か不可能かを示します。デフォルトでは真 (true) です。
enabled
コンポーネントを有効にするかしないかを示します。動作が偽 (false) に設定されている場合、チェックボックスはグレー表示され、関連付けられている動作は開始できません。デフォルトでは真 (true) です。
tooltip
カーソルをテキストエリア上に移動すると表示されるテキストです。
value
テキストエリアの内容です。
visible
テキストボックスを表示するかしないかを指定します。デフォルトでは真 (true) です。
visibleCharacterWidth
1 行に表示できる文字数。デフォルトでは 15 です。
visibleRows
テキストエリアに表示される行数。デフォルトでは 3 です。
例
この例ではテキストエリアコンポーネントに式を入力し、埋め込みコンポーネントを使用して式を 2-D Math 表記で Math Container (数式コンポーネント) に表示します。
1. コンポーネントパレットからテキストエリアおよび数式コンポーネントを挿入します。Maple のパレットを表示する方法については、Show Palettes のヘルプページを参照してください。
2. テキストエリアコンポーネントを右クリックし、コンポーネントプロパティを選択します。
3. 表示の横の編集ボタンをクリックします。
4. 表示されるダイアログに Int(x^2/sin(x), x) と入力し、OK をクリックします。
5. 文字列の幅の値を 25 に変更します。
6. 文字列の高さの値を 2 に変更します。
Enter が押されたらテキストエリアに入力された式を取得し、数式コンポーネントに 2-D Math 表記で式を表示する動作を設定します。
7. 項目が変化したときの動作の編集ボタンをクリックします。固定のステートメントおよび埋め込みコンポーネント間の動作の設定方法に関する追加情報が含まれているダイアログが開きます。
8. ダイアログ内の end use; ステートメントの前に以下を入力します。
Do(%MathContainer0=%TextArea0);
コンポーネントの名前が正しく入力されていることを確認します。
9. OK をクリックしてすべての変更を確定します。
埋め込みコンポーネントの動作を設定する構文はワークシートでコマンドを実行することで確認できます。
参照
ButtonComponent, CheckBoxComponent, ComboBoxComponent, DialComponent, DocumentTools, DocumentTools[Do], DocumentTools[GetProperty], DocumentTools[SetProperty], EmbeddedComponents, LabelComponent, ListBoxComponent, MathExpressionComponent, MeterComponent, PlotComponent, RadioButtonComponent, RotaryGaugeComponent, SliderComponent, ToggleButtonComponent, VolumeGaugeComponent
Download Help Document