<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>giuseppe</author_name>
  <author_url>https://blog.hatena.ne.jp/giuseppe/</author_url>
  <blog_title>Curlでリッチプログラミング</blog_title>
  <blog_url>https://giuseppe.hatenadiary.org/</blog_url>
  <categories>
    <anon>TIPS</anon>
  </categories>
  <description>TextFieldを編集不可（あるいは読み取り専用）にして使いたいんですがどうすればいいですか？enabled?=falseだと文字列のコピーができなくなるので好ましくないです。 ありきたりな要求だと思うのですが、残念ながら現行のバージョン（5.0）では簡単に（例えばプロパティ設定するだけとかで）は実現できません。TextFieldを拡張する必要があります。 以下は、TextFieldを拡張して、editable?というプロパティを追加する例です。 まずはTextFieldのサブクラスを宣言して、editable?というbool型のfieldを用意します。 {define-class publ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiuseppe.hatenadiary.org%2Fentry%2F20070319%2F1174324243&quot; title=&quot;編集不可のTextFieldを作る - Curlでリッチプログラミング&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-03-19 02:10:43</published>
  <title>編集不可のTextFieldを作る</title>
  <type>rich</type>
  <url>https://giuseppe.hatenadiary.org/entry/20070319/1174324243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
