一个设计视觉继承的问题? [英] a question in desgining visual inheritance?

查看:75
本文介绍了一个设计视觉继承的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有


i在设计表格时有一个问题..


有问题的应用程序是索引站。


此索引站中的用户以pdf / tiff格式查看文档
表格右侧的
并通过各种方式输入索引数据

字段和左侧的列表框。


现在有很多类型的站点,两者之间的差异是

索引字段必须是键入(可能是不同的列表集合

框和文本字段,更不用说选择窗口的子表单了。)


起初我被要求创建一些东西如此动态,它可以从xml文件中读取
字段的布局然后显示它们的屏幕,

但是没有我看到这太复杂了

这个站的总体布局是:


右侧是文档查看器控件(可以是webbrowers,但是

我是合作在一个特殊的ledtools OCR控制器,一个分离器,在左边的b $ b $中间,然后是一个正常的前进/后退按钮(用于浏览

来回之间)文件),左侧是各种

字段。起初我会创建一个用户控件,其中包含

所有字段,但后来我想为什么不使用视觉继承


超类表单将仅隐藏导航

按钮,分割器,查看器和子表单将是相同的,但

每个将用于不同的站。然后所有用户都会用

从开头的选择框加载正确的表格。

hi all

i have a question in desgning a form..

the application in question is something a indexing station.

the user in this indexing station views a document in pdf/tiff format
on the right side of the form and enters the index data through various
fields and listboxes on the left side.

now there are many types of stations, the diference between are the
index fields which must be typed (which could be different set of list
boxes and text fields not to mention subforms for selection windows).

at first i was asked to create somethign so dynamic that it could read
from an xml file the layout of the fields and then dispaly them screen,
but no i see this is way too complex
the general layout of this station is this:

right side a document viewer control (which could a webbrowers, but
i''m considering to a special leadtools OCR control), a splitter, in the
middle, on the left buttom an ok, forward/back buttons (for browsing
back and forth between documents), and on the left side the various
fields. at first i thougth i''d create a user control which will contain
all the fields, but then i thought why not use visual inheritance

the superclass form will conaint only the navigation
butons,splitter,viewer and the subform will be in the same assbmely but
each one will be for a different station. then all the user will do is
to load the corrrect form from a selection box in the start.

推荐答案

Elhanan写道:
Elhanan wrote:
我在设计表格时有一个问题..
i have a question in desgning a form..




< snip nice explanation>


听起来不错,到目前为止。现在问题是什么?


Oliver Sturm

-

omnibus ex nihilo ducendis sufficit unum

插入空格以防止谷歌电子邮件销毁:

MSN oliver @ sturmnet.org Jabber sturm @ amessage.de

ICQ 27142619 http://www.sturmnet.org/blog


好吧,首先我从来没有运气好..


我的第一个问题是exe也使用了一个dll,这个dll有代理

webservice和其他客户


在基础表单上加载事件时实例化类并且所有

顺利,当我只是尝试继承表单时我得到:

并且在创建基本形式实例时发生异常

异常是


file或者找不到汇编名称''dll''的名字。


somtimes我得到另一个激动在我自己的异常中,我生成好像

继承的表单是tryign在设计时使用我的类(dll从app.config获取
值,这是否会改变,如果我尝试使用winforms desginer,它是否正在查看另一个
app.config文件?

well first off i''ve never had much luck with it..

my first problem is that exe is also using a dll, this dll has proxy
webservice and other clients

on the base form when on the load event instantiate the classes and all
goes well, when i simply try to inherit the form i get:
and exception occured while to create an instance of ''base form'' the
exception was

file or assembly name ''name of dll'' were not found.

somtimes i get another excpetion my own exception i generate as if the
inherited form was tryign to use my class in design time (the dll takes
values from app.config, does that change, is it looking in an another
app.config file if i try use the winforms desginer?


只是为了扮演恶魔's b = b
为什么不是你最初使用XML文件的想法,这不是那么难的。




< form>

< control type =" System.Windows.Forms.TextBox"左= QUOT; 50"顶部= QUOT; 15" width =" 100"

/>

< control type =" System.Windows.Forms.Button"左= QUOT; 160"顶部= QUOT; 15" width =" 25">

现在按我

< / control>

< / form>


....或类似的东西

-

-


所有单词舌头和笔的最悲伤的是:它本来可能是

Elhanan写道:
Just to play the devil''s advocate ...

why not your original idea of using an XML file, it''s not that difficult to
do.

<form>
<control type="System.Windows.Forms.TextBox" left="50" top="15" width="100"
/>
<control type="System.Windows.Forms.Button" left="160" top="15" width="25">
Press me now
</control>
</form>

.... or something like that
--
--

Of all words of tongue and pen, the saddest are: "It might have been"
"Elhanan" wrote:
大家好

我在设计表格时有一个问题..

有问题的应用程序是一个索引站点。

此索引站中的用户在表单右侧查看pdf / tiff格式的文档,并通过各种
字段和列表框输入索引数据左侧。

现在有很多类型的站点,两者之间的区别是必须键入的
索引字段(可以是不同的列表集合
框和文本字段更不用说选择窗口的子表格了。

起初我被要求创建一些动态的东西,它可以从xml文件中读取字段的布局然后显示它们的屏幕,
但不是我看到这太复杂了这个站的总体布局是这样的:

右侧是文档查看器控件(可以是webbrowers,但是领域。起初我想创建一个用户控件,它将包含所有字段,但后来我想为什么不使用视觉继承

超类表单只会导致导航
按钮,分离器,查看器和子表单将是相同的,但每个将用于不同的站。那么所有用户都会做的是从开始的选择框加载正确的表格。
hi all

i have a question in desgning a form..

the application in question is something a indexing station.

the user in this indexing station views a document in pdf/tiff format
on the right side of the form and enters the index data through various
fields and listboxes on the left side.

now there are many types of stations, the diference between are the
index fields which must be typed (which could be different set of list
boxes and text fields not to mention subforms for selection windows).

at first i was asked to create somethign so dynamic that it could read
from an xml file the layout of the fields and then dispaly them screen,
but no i see this is way too complex
the general layout of this station is this:

right side a document viewer control (which could a webbrowers, but
i''m considering to a special leadtools OCR control), a splitter, in the
middle, on the left buttom an ok, forward/back buttons (for browsing
back and forth between documents), and on the left side the various
fields. at first i thougth i''d create a user control which will contain
all the fields, but then i thought why not use visual inheritance

the superclass form will conaint only the navigation
butons,splitter,viewer and the subform will be in the same assbmely but
each one will be for a different station. then all the user will do is
to load the corrrect form from a selection box in the start.



这篇关于一个设计视觉继承的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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