1. Win32 status bar curiosity

Normally a euphoria program is shown in the status bar with an icon 
(either the eu icon or something else if seticon is used). But I have a 
case where no icon is shown - just the program name.  This particular 
program has the following window which fills maximum screen estate;

constant WinMax	= 
create(Window,"Tothemax",0,0,0,CXFULL,CYFULL,{WS_POPUP,WS_DLGFRAME})

The only other statement which seems to be relevant is;
WinMain( WinMax,Maximize )

The program runs perfectly but no amount of fiddling will make the icon 
appear in the status bar.

Any clues ?

new topic     » topic index » view message » categorize

2. Re: Win32 status bar curiosity

----- Original Message ----- 
From: "Rangi" <totorangi at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Subject: Win32 status bar curiosity


> 
> Normally a euphoria program is shown in the status bar with an icon 
> (either the eu icon or something else if seticon is used). But I have a 
> case where no icon is shown - just the program name.  This particular 
> program has the following window which fills maximum screen estate;
> 
> constant WinMax = 
> create(Window,"Tothemax",0,0,0,CXFULL,CYFULL,{WS_POPUP,WS_DLGFRAME})
> 
> The only other statement which seems to be relevant is;
> WinMain( WinMax,Maximize )
> 
> The program runs perfectly but no amount of fiddling will make the icon 
> appear in the status bar.
> 
> Any clues ?

Try adding WS_SYSMENU flag in the create() WinMax.

--------
Derek

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32 status bar curiosity

HI, there are two situations where you can add an image to a status bar
control...or parts. Either you make it owner-drawn as my example in the
archives shows http://www.rapideuphoria.com/llrtns.zip
or if using win9x with commonctl32.dll ver 4.70 and above, u can send this
message.

SB_SETICON Message

----------------------------------------------------------------------------
----

Sets the icon for a part in a status bar.

Syntax


To send this message, call the SendMessage function as follows.
lResult = SendMessage(      // returns LRESULT in lResult     (HWND)
hWndControl,      // handle to destination control     (UINT) SB_SETICON,
// message ID     (WPARAM) wParam,      // = (WPARAM) (INT) iPart;
(LPARAM) lParam      // = (LPARAM) (HICON) hIcon; );

Jordah

----- Original Message -----
From: "Rangi" <totorangi at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, May 15, 2003 10:27 AM
Subject: Win32 status bar curiosity


>
> Normally a euphoria program is shown in the status bar with an icon
> (either the eu icon or something else if seticon is used). But I have a
> case where no icon is shown - just the program name.  This particular
> program has the following window which fills maximum screen estate;
>
> constant WinMax =
> create(Window,"Tothemax",0,0,0,CXFULL,CYFULL,{WS_POPUP,WS_DLGFRAME})
>
> The only other statement which seems to be relevant is;
> WinMain( WinMax,Maximize )
>
> The program runs perfectly but no amount of fiddling will make the icon
> appear in the status bar.
>
> Any clues ?
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32 status bar curiosity

Rangi wrote
 > The program runs perfectly but no amount of fiddling will make the icon 
> > > appear in the status bar.

how does WS_SYSMENU make the icon appear in the statusbar?

> That works. Thanks and go well Derek.  
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32 status bar curiosity

> Rangi wrote
>  > The program runs perfectly but no amount of fiddling will make the icon
> > > > appear in the status bar.
>
> how does WS_SYSMENU make the icon appear in the statusbar?

Simple... it(*SD&F uisdf oa7sdLOSI*S09s87d 0fh askj
s,,..sd.s.d....s.dfa79sd8f7 &DFY *&SYDfi8HLsd..+++==+=--- 878(*&F sjksjsoi
uhrt WERISdhyf92883 ks

new topic     » goto parent     » topic index » view message » categorize

6. Re: Win32 status bar curiosity

He is not talking about the control type "StatusBar" but about the
MS-Windows Start Bar. The place where windows displays the icons of all the
running programs, the big [Start] button, the systray icons, etc...

----------------
cheers,
Derek Parnell
----- Original Message -----
From: <fred at jordah.freeserve.co.uk>
To: "EUforum" <EUforum at topica.com>
Subject: Re: Win32 status bar curiosity


>
> Rangi wrote
>  > The program runs perfectly but no amount of fiddling will make the icon
> > > > appear in the status bar.
>
> how does WS_SYSMENU make the icon appear in the statusbar?
>
> > That works. Thanks and go well Derek.
> >
> >
> > TOPICA - Start your own email discussion group. FREE!
> >
> >
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu