Multiple Window Instances

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Multiple Window Instances

Submitted by leetuckert on Tue, 04/22/2003 - 10:58.

Hi,

I am working on a multi-window X application that serves as a front end to a Postgresql database. Each table in the database has it`s own interface window providing the standard Insert/Search/Edit/Delete functionality. On certain tables, I need to be able to have multiple instances of the interface window open and operating independently. By the way, the interfaces were written using BXPro into a uil file.The functionality of each interface is coded into it`s own object file with shell widgets and window widgets defined as static. I can get the application to create multiple instances of the interface window, but they will not operate independently of each other. If i perform some operation in the last instance that was created, then go to the first instance and try to perform some operation, the first instance get confused about what is going on. The only way I can get it to work is to have totally separate object files for each instance I want to create. I know there must be some way to accomplish this with having to do the above. Can someone give me a hint or point me to an example of doing this. Any help is appreciated.

Wed, 04/23/2003 - 00:02#1

Wed, 04/23/2003 - 00:02#1

ICS_support

Multiple Window Instances

The problem may be in your back-end coding. The callbacks for the widgets need to be able to determine which data the widgets correspond to. You can track information per widget using XmNuserData (perhaps in conjuction with the Mrm creation callback) or hang information on the top-level widget to determine what context you`re operating in. It`s more likely that you have a book-keeping problem than a problem in the widget-creation code for Xt/Motif/Mrm.