1. Sivaprakash BKR
  2. PowerBuilder
  3. Monday, 4 November 2024 07:49 AM UTC

Hello,

Any version of PB.  Currently developing in PB 2022 R3 build 3356

I want to open two instances of a window, side-by-side, so that I can view two different data in the same page(?).   We maintain history of data (insert, delete, update) in a separate table.  Sometimes, we need to inspect what was there in earlier version of the same data.   To facilitate I thought of opening two windows side by side, with the same set of datawindows, by passing two different retrieval arguments.    Is this possible?

Or is there any smarter way to achieve this?

Happiness Always
BKR Sivaprakash

 

Who is viewing this page
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 4 November 2024 08:49 AM UTC
  2. PowerBuilder
  3. # 1

Yes, of course it is possible.

To open two instances of same window you have to use the Open functions without using the window class name as first parameter. Use a variable instead.

e.g.

w_mywindow lw_first, lw_second
openwithParm (lw_first, "first")
openwithparm (lw_second, "second")

You can use the move function to specify the position of the windows. e.g.

lw_first.Move (0, 0)
lw_second.Move (lw_first.width, 0)

 

HTH, 

Renè

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.