[Fwd: Fwd: Re: window icon image?]

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Sep 22 1999 - 18:18:56 MEST


I've added: TGFrame::SetIconPixmap(const char *iconName),
where icon name is the name of an .xpm file.
It will be available inthe next release.

Cheers, Fons.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910

attached mail follows:


Krzysztof.Zelazowski@cern.ch wrote: > > Dear ROOTers, > > This is perhaps a silly question with little importance, but is there a > way to set up an icon image so that when my application's main window is > minimized I get some nice picture instead of the default question mark ? > > Best regards, > Krzysztof Dear Fons, could you add SetIconName ( or SetIcon ?? ) method to TGWindow void TGWindow::SetIconName( const Text_t* iconName ) { // Sets picture icon for window // works only for TGX11 const TGPicture* iconPic = gClient->GetPicture(iconName); Pixmap_t pic; if(iconPic) pic=iconPic->GetPicture(); else return; // ...error ?? // non-portable part of the code XWMHints hints; hints.flags = IconPixmapHint; hints.icon_pixmap = pic; XSetWMHints((Display*)gGXW->GetDisplay(), (Window)fId, &hints); } best regards, Valery



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET