本文发表在 rolia.net 枫下论坛要求: 一个模板产生系统(like business card produce system, user can select different template to display card, or design new layout)
用VB完成界面,用户可以象用Toolbar一样拖拉不同的控件到设计窗口, 可以移动,调整大小.不同的控间对应不同的数据库字段,最后可以还要将设计窗口及内部的控件的信息存入数据库, 使用户可以选择不同的模板来编辑及显示.
我的思路:
one listbox control, used for list templates
one frame control, as template contrainer
one picturebox, as controls contrainer
one toolbar control with several buttons for controls will be draged to picturebox
menu, and regular toolbar
when user click controls toobar button, set cursor to picturebox, get mouse position, let user draw a rectangle, after mouse up, get mouse position again, use controls.add to add and display relative control and set size. then user can draw another control
after save command clicked, use controls collection to write all the properties to table.
Difficulty is how to write correct information into table and how to get all the information from table?
主要是显示LOGO(IMAGE? 多个)和个人信息(TEXTBOX? 多个).
是否一定要用API做,表怎么组织?
各位DX, 有没有类似的SOURCE CODE, 或好的IDEA?? 快来救火啊!!!!!更多精彩文章及讨论,请光临枫下论坛 rolia.net
用VB完成界面,用户可以象用Toolbar一样拖拉不同的控件到设计窗口, 可以移动,调整大小.不同的控间对应不同的数据库字段,最后可以还要将设计窗口及内部的控件的信息存入数据库, 使用户可以选择不同的模板来编辑及显示.
我的思路:
one listbox control, used for list templates
one frame control, as template contrainer
one picturebox, as controls contrainer
one toolbar control with several buttons for controls will be draged to picturebox
menu, and regular toolbar
when user click controls toobar button, set cursor to picturebox, get mouse position, let user draw a rectangle, after mouse up, get mouse position again, use controls.add to add and display relative control and set size. then user can draw another control
after save command clicked, use controls collection to write all the properties to table.
Difficulty is how to write correct information into table and how to get all the information from table?
主要是显示LOGO(IMAGE? 多个)和个人信息(TEXTBOX? 多个).
是否一定要用API做,表怎么组织?
各位DX, 有没有类似的SOURCE CODE, 或好的IDEA?? 快来救火啊!!!!!更多精彩文章及讨论,请光临枫下论坛 rolia.net