问题标签 [vcl]

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.

0 投票
9 回答
3358 浏览

delphi - Are there any "mind mapping" components for Delphi? (native VCL preferably)

I'm looking for a pre-written component (w/source) for a Delphi project that I'm working on, to generate mind-maps / concept-maps similar to these:

http://en.wikipedia.org/wiki/Image:MindMeister_screenshot_OS_X.jpg http://en.wikipedia.org/wiki/Image:XMIND_2008_in_Windows_Vista.png

Any ideas?

0 投票
4 回答
894 浏览

c++ - 创建父窗口的 DLL 插件无法正确处理消息

我正在创建一个插件框架,我的应用程序在其中加载一系列插件 DLL,然后创建一个新窗口并将这个新窗口的句柄传递给插件。然后,插件可以使用这个句柄来创建自己的 GUI。

一切似乎都运行良好。唯一的问题是,当我在插件小部件(例如编辑框)上按 TAB 时,它不会跳转到另一个小部件。我发现一些 Windows 消息通过了,而另一些则没有。WM_KEYDOWN 传递给其他键,因为我可以在编辑框上键入,但此消息不处理 TAB 键。

希望有人给点提示。

我正在使用带有 CBuilder 的 Borland VCL,但我认为我可以使用 WIN32 下的任何框架来创建这些插件,因为他们永远不知道他们的父窗口是如何创建的。

0 投票
3 回答
6645 浏览

delphi - 在运行时移除和替换可视化组件

例如,是否可以用在运行时(有条件地)实例化的子类组件替换和释放 TEdit?如果是这样,应该如何以及何时完成?我试图将父级设置为 nil 并在表单构造函数和 AfterConstruction 方法中调用 free() 但在这两种情况下我都遇到了运行时错误。


更具体地说,我收到了访问冲突错误 (EAccessViolation)。弗朗索瓦似乎是对的,他说在框架构造中释放组件会与表单控件管理混淆。

0 投票
1 回答
1409 浏览

delphi - GUI 的 AVI 动画

我需要获取一些用于 Borland VCL TAnimate 组件的 AVI 动画,以便在“在线更新”、“刻录 cd”等操作期间显示。

到目前为止,我只遇到过glyFX 动画包

有人可以推荐其他地方来获得漂亮的 avi 动画吗?

0 投票
2 回答
1347 浏览

delphi - 如何合并使用单独图像列表的 TMainMenu 并按每个菜单项保留正确的图像?

我有一个包含两个 TForm 类的程序,并为每个类添加了一个 TMainMenu。然后我试图在运行时动态合并它们。

我的问题是,当他们合并 TMainMenu 中合并的菜单项时,现在以合并到的形式显示存储在 imagelist 中的图像,而不是存储在原始表单的 imagelist 中的图像。

难道我做错了什么?是否有解决方法以使菜单项继续以它们起源的形式使用图像列表?

我在许多项目中使用合并形式,否则单个共享图像列表将有意义。

如果我需要澄清什么,请说。

谢谢

彼得

0 投票
2 回答
1456 浏览

unicode - Are there guidelines for updating C++Builder applications for C++Builder 2009?

I have a range of Win32 VCL applications developed with C++Builder from BCB5 onwards, and want to port them to ECB2009 or whatever it's now called.

Some of my applications use the old TNT/TMS unicode components, so I have a good mix of AnsiStrings and WideStrings throughout the code. The new version introduces UnicodeString, and a bunch of #defines that change the way functions like c_str behave.

I want to modify my code in a way that is as backwards-compatible as possible, so that the same code base can still be compiled and run (in a non-unicode fashion) on BCB2007 if necessary.

Particular areas of concern are:

  • Passing strings to/from Win32 API functions
  • Interop with TXMLDocument
  • 'Raw' strings used for RS232 comms, etc.

Rather than knife-and-fork the changes, I'm looking for guidelines that I can apply to ease the migration, while keeping backwards compatibility wherever possible.

If no such guidelines already exist, maybe we can formulate some here?

0 投票
4 回答
3874 浏览

winforms - 如何绘制delphi组框以具有透明背景

我试图让一些非常微妙的东西起作用,它现在看起来很糟糕。我正在尝试绘制 TGroupBox 的背景,我已经重载了它的绘制函数,以便角落显示到它们的父对象。我有一堆嵌套的组合框,如果没有 XPThemes,它们看起来很不错。

有没有办法在运行时绘制透明背景的一部分。我正在编写表单生成器,而不是使用 Delphi 设计视图。

0 投票
2 回答
606 浏览

delphi - How to implement find as you type on a TComboBox descendant

What is the correct way to implement the "find as you type" behavior on a TComboBox descendant component whose style is csOwnerDrawFixed?

0 投票
2 回答
4955 浏览

delphi - Delphi 2009 Ribbon Controls - 玻璃框架

我已经开始在 Delphi 2009 中使用新的内置功能区控件并使用自定义框架,因此应用程序按钮和迷你工具栏向上滑动到窗口框架上,但我想知道在 Vista 上它是否应该使用玻璃效果,如Office 2007 可以,如果可以,我将如何启用此设置。

谢谢你的帮助。

0 投票
1 回答
802 浏览

c++builder - TCustomDataSet C++ 生成器

除了作为 C++ Builder 中的示例项目提供的 TTextDataset 示例之外,我正在寻找 C++ 中的 TCustomDataSet 实现示例。

TTextDataset 很难学习,因为代码没有很好地记录,它只显示了一个字段示例。

我创建了自己的类,它继承了 TDataSet 并且它大部分都可以工作,但是 GUI 控件(主要是网格)对于某些用例不能 100% 工作。

任何人都有关于这个主题的一些很好的链接......

这是我用来学习的示例代码的链接:http: //195.19.138.139 :3000/p/SOFTWARE/temp/CBuilder5/Examples/DBTasks/TextData/textdataset.cpp