Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

How to manipulate window titles listed under the 'Windows' menu

$
0
0

Hi,

I'm using PB 12.0 Classic, and PFC, and thought this would be something simple, but now I'm pulling my hair out.

 

In our MDI application, we have users opening up multiple instances of the same sheet windows, but retrieving different data on each.  They want to be able to easily navigate back to a specific window by picking it from the window list under the 'Window' menu of the application.  The problem is, they are listed as just the generic window name, and are indistinguishable from each other.

 

The windows are opened originally via events on the MDI frame window using OpenSheet() functions, which has the 'position' parameter to list the open sheets automatically under the 'Window' menu, but it apparently picks up the Title of window at some point between its constructor/open event and the pfc_postopen event.  Any change to the title of the window after pfc_postopen event is reflected on the titlebar of the sheet window, but is not reflected on the menubar under the 'Windows' menu.  For example, if the user opens the 'Customer' window, and then retrieves the ACME customer, I'm changing the window title to 'Customer - ACME' in the u_dw.retreiveend event, but the window name listed under the 'Window' menu still displays '1 - Customer'.

 

I thought there would be a menu function I could call, either native or PFC, but I don't see one.  I also thought the PFC Sheet Management service might handle this, but it merely has features for mimimization and the arrangement styles.

 

Please point me to the solution that seems to be hiding from me!!!


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>