問題タブ [tpanel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
forms - How to access TPanel child form controls?
I have a main form with TPanel
. I have also a Form2
with a TButton
which I show in TPanel
as a child. I mean TPanel
of main form is parent of Form2
. I use these steps to create the form2 in MainForm
OnCreate
method
But the problem is that when I access the button on Form2
it does nothing. For example, when I want to disable the button on Form2
I use this method
A button2 on main form with on click event
But it does nothing. Some friends says it's because of child to TPanel
it will get no message.
So give me a solution. Thanks in advance
delphi - Delphi では、TPanel 変数の型を null に設定するにはどうすればよいですか?
こんにちは、私は次のものを持っています:selectedPanelはクリックされたパネルオブジェクトを取得する必要があり、フォームがクリックされた場合、selectedPanelは「null」、nada、emptyなどになる必要があります:)
問題は、その変数を「null」に設定する方法です。selectedBlock:= Unassigned を実行するとエラーが発生します。
ありがとう
編集:これはまだエラーをスローします:アクセス違反
delphi - TGraphicControl に基づくオブジェクト コンテナ
TScrollBox を使用して、カスタム リストに多くのコントロール (Tlabels、Timages、Tshapes) を含めるようにしています。
問題は、各項目のコンテナーとして TPanels を使用すると、約 100 項目を追加した後にリストが遅くなりがちらつくことです。
パフォーマンスを向上させるために TGraphicControl に基づく TPanel に代わるものを探しています
layout - Firemonkey のラベル数に応じて TLayout のサイズを変更する
これが Firemonkey のサンプル コードです。
MyStringArray は常に同じ数の要素を持つ動的配列ではないため、ラベルの数に応じて TLayout (Layout1) の内容で TPanel (Panel1) のサイズを変更します。
これは、Layout1 でラベルの数が増えると問題なく機能しますが、ラベルの数が少なく、Layout1.ChildrenRect.Height
効果がなく、縮小もしない場合、Layout1 の高さは常に高い値を維持します。
それを行う方法の解決策または他の代替手段はありますか?, よろしくお願いします.
delphi - パネルに Delphi フォームを表示するにはどうすればよいですか?
http://docwiki.embarcadero.com/CodeExamples/XE7/en/FMXEmbeddedForm_(Delphi)の例に従おうとしましたが、明らかに読み取り専用である TCustomForm の子で最初の問題に遭遇したので、コメントしましたそれをArgForm.Parent:= ArgParent;
代わりに入れますが、まだ空の画面が表示され、2番目のフォームにあるボタンが表示されません。
私のメインフォームのコードは次のとおりです。
メインフォームのパネルに配置するフォームのコードは次のとおりです。
delphi - フォームのグローバル変数を使用してパネルに配置するにはどうすればよいですか?
これは私の質問の続きです:パネルに Delphi フォームを表示するにはどうすればよいですか?
フォームのグローバル変数を使用してパネルに埋め込んで表示したいのですが、ボタンなしで埋め込むフォームのみを作成します。
実行可能ファイルのコードでは、次のように、最初に埋め込むフォームと、2 番目に埋め込むフォームを作成しています。
メイン フォームのコードは次のとおりです。
埋め込むフォームのコードは次のとおりです。
c++builder - C++ ビルダー bcb6 では、元に戻すは機能しません
TFrame
その上にいくつかのコンポーネントを持つ があり、その中に と があり、TPanel
PaintBoxTPaintBox
のサイズは Panel と同じです。
そのユーザーには、PaintBox だけでなく Panel も表示されることを望みます。
問題は、パネルを右クリックして を選択Control->Send to Back
しても機能しないことです。
仮定、または解決策の提案はありますか?
*Borland C++Builder 6 を使用しています。
c++ - C++ Builder RAD Studio XE7 change color of a Panel
After pushing a button I wanted to change the color of a panel to green:
doesn´t work.
doesn´t work.
with this addiction:
it still doesn´t work.
tried it this way:
TForm transparency is false same result after pushing the button.
How can I do it right?