简体   繁体   English

从WindowsBuilder中的另一个对话框更改一个对话框中的信息?

[英]Change information in a dialog box from another dialog box in WindowsBuilder?

In windowsbuilder, I would like to change information from a seperate window, more specifically a table, from my main window. 在Windowsbuilder中,我想从主窗口中的单独窗口(更具体地说是表)中更改信息。 Is it possible to use my information from one seperate window to change it in another box? 是否可以在一个单独的窗口中使用我的信息在另一个框中进行更改? Basically, take information from here: 基本上,从这里获取信息: 在此处输入图片说明

And put it into this table: 并将其放入此表: 在此处输入图片说明

Is it possible? 可能吗? If so, how? 如果是这样,怎么办? Thank you in advance. 先感谢您。

Yes, it is possible - but not in Windows Builder. 是的,有可能-但是在Windows Builder中是不可能的。

Create an object which will hold the information from the first window and pass the information from the window to the object. 创建一个对象,该对象将保存来自第一个窗口的信息,并将信息从窗口传递给该对象。 Next, pass the object to the second window (how you do this will depend on how you've configured your window objects). 接下来,将对象传递到第二个窗口(如何执行将取决于您配置窗口对象的方式)。 Finally, populate the table with the information from the object. 最后,使用来自对象的信息填充表。

As far as I know, there is no direct way to do this in Windows Builder, although the above method will work fine provided you can pass objects from the first window to the second. 据我所知,虽然可以将对象从第一个窗口传递到第二个窗口,但上述方法可以正常工作,但Windows Builder中没有直接的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM