正在查找计划/日历组件 [英] Looking for a scheduling/calendar component

查看:131
本文介绍了正在查找计划/日历组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个自定义可视化组件Delphi 7,它处理日历上的日程安排。我不是在寻找一个实际的日历,我绝对不是寻找一些大修的授权组件。我只想要一个简单的可视化组件,一个trackbar样的项目列表。例如,在左边,我可以列出员工姓名。这些记录中的每一个都跨越控制。在右边,X轴表示时间,并且每个雇员(Y Axis)记录可以具有多个时间段(start..finish),这不仅显示在雇员的右侧,而且用户可以调整每个时间段的大小,拖动它们,删除它们等。它显然将用于确切的目的,用于安排员工的工作时间。我不需要任何东西,与任何其他的东西,如数据库,我可以做所有的工作自己。

解决方案

视觉计划 - 它听起来像它可能适合账单。它是一个旧的TurboPower软件组件库,他们非常好,当他们走出VCL业务,使开源。



你没有提到什么版本Delphi,但AFAIK以上工作与所有版本的Delphi通过7.你可能可以找到一个更新版本的D2009及以上(使用Unicode支持)如果你搜索一下。



编辑:看了Visual Plan-It后,似乎只有几个更改,你必须使它在XE2下编译。如果您打开Delphi 7软件包(v103_d7.dpk),然后从项目管理器上下文菜单中选择安装在包含指针解引用运算符( ^ )的许多行上会出现错误,如 List ^ 只需删除离开成员名称的操作符,如 List 中所示。



其余错误与对继承的无效调用相关; (将其更改为继承的SetPointer(Ptr,Size); 改为修复它,并调用 LoadBitmap ,抱怨不兼容的类型:PWideChar和PAnsiChar - 这只需要将 LoadBitmap 更改为 LoadBitmapA 调用它的函数声明为接收 PAnsiChar 参数。



您还需要编写自己的用于处理数据存储的 TVpCustomDataStore 的后代(参见 VpBaseDS.pas );演示使用BDE或Flex数据库,因为我没有安装任何一个我不能给你一个屏幕捕获,我可能有一个版本安装在D7或2007在我的办公室;我会检查明天,如果这样更新我的答案,然后。 p>

I'm looking for a custom visual component for Delphi 7 which handles scheduling on a calendar. I'm not looking for an actual calendar, and I'm definitely not looking for some overhauled licensed component. I just want a simple visual component, with a trackbar-like list of items. For example, along the left, I could have employee names listed. Each of those records stretches across the control. To the right, the X axis represents time, and each employee (Y Axis) record could have multiple time periods (start..finish), which are not only displayed to the right of the employee, but also user can resize each period, drag them, delete them, etc. It's obviously going to be used for that exact purpose, for scheduling employee hours. I don't need anything which is integrated with anything else, such as database, I can do all that work myself. I just want a simple control that can be used for visually creating such a schedule.

解决方案

Visual Plan-It sounds like it might fit the bill. It's one of the old TurboPower Software component libraries they were nice enough to make open-source when they went out of the VCL business.

You didn't mention what version of Delphi, but AFAIK the above works with all versions of Delphi through 7. You may be able to find an updated version for D2009 and above (with Unicode support) if you search around a bit.

EDIT: After looking at Visual Plan-It, it appears there are only a few changes you have to make to get it to compile under XE2. If you open the Delphi 7 package (v103_d7.dpk) and then choose Install from the Project Manager context menu, you'll get an error on many lines containing a pointer dereference operator (^) as in List^; simply remove the operator leaving the member name, as in List.

The remaining errors are related to an invalid call to inherited; (changing it to inherited SetPointer(Ptr, Size); instead fixes it, and a call to LoadBitmap that complains about incompatible types: PWideChar and PAnsiChar - this one just requires changing LoadBitmap to LoadBitmapA, as the param passed to the function that calls it is declared as receiving a PAnsiChar parameter.

You'll also need to write your own descendent of TVpCustomDataStore (see VpBaseDS.pas) to handle data storage; the demos use a BDE or Flex database, and since I don't have either of them installed I can't give you a screen capture. I may have a version installed for D7 or 2007 at my office; I'll check tomorrow, and if so update my answer then.

这篇关于正在查找计划/日历组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆