Stata already allows one to set the content of the titlebar. For example
. window manage maintitle "My Title"
will set the titlebar to "My Title"
Unfortunately since -use-, -insheet- and such are built-in, you can't
change them yourself to have them automatically reset the titlebar. So
until Stata decides to implement this feature, one possible solution is to
write wrappers for -use-, -save-, -insheet-, -infile-, -infix- and any
other commands I'm forgetting to mention. For example one could write the
following:
prog def xuse
version 8
use `0'
window manage maintitle "`c(filename)'"
end
Hope this helps.
Sergey
"dr kardos laszlo"
<[email protected] To: <[email protected]>
> cc:
Sent by: Subject: st: RE: Re: wishlist - active dataset name in title bar
owner-statalist@hsphsun2.
harvard.edu
06/02/2004 11:44 AM
Please respond to
statalist
hi all,
this has been on my mind too, glad to see the idea being so popular.
if i had my way, double-clicking
whatever_it_is_someone_gave_it_a_very_long_name.dta or -use- -ing it would
lead to a stata window with the title bar
IStata8.2 - whatever_it_is_someone_gave_it_a_very_long_name.dta
and after i typed
. set titlebar "prelim data"
it would read
IStata8.2 - prelim data
this would be ideal for the title bar, for the button on the tray, and for
the panel appearing when you are alt-tabbing between running programs (i
use
winxp). alternatively, the file name or user-given alias could come first
and then IStata, in which case a full out "Intercooled" would no longer
seem
a waste of character space.
thinking of the file name
whatever_it_is_someone_gave_it_a_very_long_but_DIFFERENT_name.dta, i just
hope if the effort is made by statacorp, it will also include the -set
titlebar- possibility.
laszlo
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/