问题标签 [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.
c++builder - Display help topic from CHM on a VCL TPanel?
Using C++ Builder 10 Seattle (CX10).
I have a .chm with map IDs for certain topics. I can load the topics into an external window like this:
This is great for many situations, but sometimes I want to embed the context-specific help within my TForm, such as on a TPanel. I found pieces of information about using WinAPI functions FindWindow and SetParent. So I tried this:
Which compiles, links, runs and doesn't crash... but the subsequent call to Application->HelpContext(10001) still displays the topic in the external window, and not in the HelpPanel.
I am guessing that the easy-to-use Application->HelpContext call isn't what I need for redirecting to a VCL control, but I don't know where to look next.
Following up on the comments, here is where I am: I found out the ilink32 error (see my comment, below) was because I need to load HHCTRL.ocx in order to make a call to HtmlHelpA. So here is my test project code, a form with a TRadioGroup and TPanel. Only one radio button attempts to place the topic on the TPanel; the rest use Application->HelpContext. All of this compiles, links and runs, but the call to place the help on TPanel doesn't do anything visible.
Really hoping somebody can help... thanks.
delphi - Delphi XE4 Tpanel 不变色
在我的程序(国际象棋)中,我需要生成许多具有特定背景颜色(黑色或白色)的 Tpanels。面板已创建,但尽管设置了颜色,但它们仍保持无色。
delphi - 拖放 TPanel 子项时出现“抽象错误”
Abstract error
当我在组件中拖放 TPanel 子项时,我正面临这种情况TImage
。
基本上我有一个Scrollbox
包含TPanelCargaRele
列表,当我将此面板拖放到垃圾箱时,我得到了Abstract error
.
我已经调试了我的代码,但是这个问题发生在end;
过程中,我看不出问题出在哪里。
下面是我的代码:
这是 的构造函数TPanelCargaRele
:
拜托,有什么问题可以问我。
感谢所有帮助。
c++builder - c ++ builder:从TFramedVertScrollBox中动态删除所有TPanel
在我的 C++ Builder 项目中,我有一个动态获取 TPanel 的 TFramedVertScrollBox (pnl_art_box)。我想在添加“新”之前清除所有现有的 TPanel。
在谷歌,我只找到了很少的帮助,而且没有一个是 C++ 的;
如果有人能告诉我,当我做错了,那就太好了。
真诚的蒂莫·特雷切尔
delphi - 使用 onmousedown、onmouseup 和 click 事件时无法捕获所有点击
我正在尝试从 TPanel 组件中创建一个自定义按钮。为此,我为 onmousedown 和 onmouseup 事件提供了覆盖(以进行一些绘图),并且我使用了 onclick 事件来处理点击。
不幸的是,如果我快速点击我的面板,其他所有点击都会“丢失”,但我不知道为什么。
在这方面,即使是最简单的例子也失败了。我创建了一个新的 VCL 应用程序,添加了一个列表框、一个面板,并实现了如下事件:
结果如下:
等等......每一次点击都会被忽略,但我不知道为什么。
有人可以解释一下吗?
delphi - Delphi - 在 TScrollBox 中渲染 TPanel 后代问题(32K 像素限制)
我是新来的,希望我遵循正确的协议并正确地提出问题。我在这里单独发布这个问题,因为我没有适当的权限对下面列出/链接的原始问题发表评论。
我遇到了这个问题(X 个组件后的 Delphi - TScrollBox 问题)并尝试实现@ngln 建议的第一个解决方案(滚动滚动框)。
我一定做错了什么,因为我的解决方案实施似乎不起作用。非常感谢对此的一些指导。
我有一个自定义面板(TEntryPanel),它派生自 TPanel - 并包含其中的其他元素,这些元素使用来自 TEntry 的数据进行设置(它只是从包含数据的 TObject 派生的自定义类)。EntryList 是一个包含 TEntry 对象列表的对象。
这是我实现它的方式:
运行此代码后,我仍然遇到未显示所有面板的问题。有人可以让我知道我做错了什么吗?我正在使用 Delphi 10.1 Berlin。提前谢谢了。
c++ - 将现有的 VCL 控件放置在 TPanel 组件上
众所周知,TPanel
它是其他可视组件(等)的TLabel
容器TEdit
。但是,似乎我们只能将新组件(来自组件面板)放置到现有的 TPanel 上,然后 VCL 框架将自动将 TPanel 设为其父级)。
我想知道是否有办法将现有的可视组件(那些已经在我们的 VCL 表单上的组件)放置到 TPanel 上。我试过了
将组件放置在现有的 TPanel 上(这不起作用,因为框架不会使 TPanel 成为其父级)
手动编辑表单的 dfm 文件(TPanel 上的组件现在不可见 - 一个错误?)
在代码中显式设置组件的 Parent 属性(
/li>Label1
即使Panel1
高度设置为 0 也是可见的)
以上都不起作用,但这似乎是一个基本的事情,它必须是一种方法来做到这一点。
谢谢
tpanel - 我必须设置什么以便标签文本将自动换行到父面板的宽度?
我正在使用 C++ 生成器。
我创建了一个面板并将所述面板的宽度设置为 350。
我正在使用以下代码来创建标签。
结果是tempLabel2
和tempLabel3
正在扩展的标题超过了包含面板的 350 宽度。我在网上阅读了有关设置AutoSize
为真和WordWrap
真的信息。这次尝试没有成功。
我必须设置什么以便标签文本将自动换行到父面板的宽度?