论坛: 公開ディスカッション (Thread #26635)

ラジオボタンを変更不可にしたい (2010-06-23 17:24 by m_inamine #51495)

いつもお世話になっています

現在、maskat-2.1.1.v20090731、maskat-ide-2.1.1.v20090731を使用しています
リモートより応答メッセージを受けて、その結果をラジオボタンへ設定したいのですが
結果設定後に操作不可としたい為、マスカットIDEにてラジオボタンのプロパティの
enableを(false)に設定したのですが
設定しない時(true)に比べて、動作及び表示に違いが見られませんでした。

JavaScriptにて以下のようにした場合はラジオボタンのテキスト部分はグレー表示されますが
ラジオボタンのON/OFFは操作出来るようです
var rdo1 = rdo1 || maskat.app.getLayout("layout").getWidget("rdorep1");
var rdo2 = rdo2 || maskat.app.getLayout("layout").getWidget("rdorep2");
var rdo3 = rdo3 || maskat.app.getLayout("layout").getWidget("rdorep3");
rdo1.widget.setCheck(true,true);
rdo1.widget.setEnable(false);
rdo2.widget.setEnable(false);
rdo3.widget.setEnable(false);

操作禁止とするのにはどうしたら良いでしょうか?

回复到 #51495×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: ラジオボタンを変更不可にしたい (2010-07-01 17:34 by uchidahd #51679)

ラジオボタンの有効/無効にはsetEnableを利用してください。
var rdo1 = rdo1 || maskat.app.getLayout("layout").getWidget("rdorep1");
rdo1.setEnabled(false);

また、ラジオグループを利用することで、同じグループのラジオボタンをまとめて有効/無効化できます。
// ラジオグループを読み込む。部品名はラジオボタンのgroup属性の値となります。
var rdoGroup = maskat.app.getLayout("layout").getWidget("rdoGroup");
rdoGroup.setEnabled(false);
回复到 #51495

回复到 #51679×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: ラジオボタンを変更不可にしたい (2010-07-02 09:03 by m_inamine #51689)

対応ありがとうございます

>ラジオボタンの有効/無効にはsetEnableを利用してください。
>var rdo1 = rdo1 || maskat.app.getLayout("layout").getWidget("rdorep1");
>rdo1.setEnabled(false);

最初の質問の中にまったく同一のコード例を示していると思いますが
動作確認はIE7.0.5730.13で行っています

この記述だとテキスト部分はグレー表示ですがラジオボタンのON/OFF操作は実行出来てしまいます。
Webブラウザの違いによる動作の違いですかね?

ラジオグループの動作説明ありがとうございます。

-以上です
回复到 #51495

回复到 #51689×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: ラジオボタンを変更不可にしたい (2010-07-05 09:28 by uchidahd #51753)

最初の質問でm_inamineさんの示したコード例は以下のものです。
>rdo1.widget.setEnable(false);

一方、自分の示しているコードでは以下のようになっています。
>rdo1.setEnabled(false);

似ていますが、動作は違うはずですので、もう一度ご確認ください。
回复到 #51689

回复到 #51753×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: ラジオボタンを変更不可にしたい (2010-07-06 08:55 by m_inamine #51772)

対応、ありがとうございます

違いを見落としてました。
どうもすいません

回复到 #51495

回复到 #51772×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录