TOPIC: Set the title of a Persistent Browse Window?
#1551
Set the title of a Persistent Browse Window? 10 Months, 3 Weeks ago
I have two objects:

Code:


#(Browse ac_attribute
  title: 'Aircraft Attributes'
  name: 'Aircraft Attributes')



and

Code:


function() {
  PersistentWindow(BrowseAircraftAttributesControl)
}



I cannot seem to set the title. It is always "ac_attribute - Browse". How can I set the window title?

Jeremy
 
 
#1554
Re:Set the title of a Persistent Browse Window? 10 Months, 3 Weeks ago
It is not just PersistentWindow, it does the same thing with Window. Although Window allows you to pass the title in directly e.g.

Window(#(Browse tables) title: 'test')

Browse seems to ignore the title: you specify. I am not sure why.

Access is slightly different - but it stills adds " - Access" to the title you specify.

We run our applications inside the book so this does not affect us.

You can work around this by making your own version e.g. MyBrowseControl

Code:

BrowseControl
    {
    New(@args)
        {
        super(@args)
        if args.Member?(#title)
            .Title = args.title
        }
    }


You could even call it BrowseControl and inherit from _BrowseControl if you want.
 
 
Last Edit: 2009/10/02 18:44 By andrew.
 
andrew