Official eMule-Board: Fix Statusbar - Official eMule-Board

Jump to content


Page 1 of 1

Fix Statusbar

#1 User is offline   Eulero 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2553
  • Joined: 09-August 07

Posted 25 June 2010 - 03:51 PM

not a real bug, anyway in the statusbar, a double click on the box USS opens the messages window.
I solved in this way, if someone interested to fix it or suggest other way :)

@mulestatusbarctrl.h
enum EStatusBarPane
{
	SBarLog = 0,
	SBarUsers,
	SBarUpDown,
	SBarConnected,
	SBarChatMsg,    
	//-> ADD    
	SBarUSS
	//<-
};



@mulestatusbarctrl.cpp
switch (iPane)
	{
     	[...]

		case SBarChatMsg:
			theApp.emuledlg->SetActiveDialog(theApp.emuledlg->chatwnd);
			break;
		//-> ADD
		case SBarUSS:	    	
			theApp.emuledlg->ShowPreferences(IDD_PPG_TWEAKS);	    	
			break;
		//<-
	}



@emuledlg.cpp
void CemuleDlg::ShowPing()

{
    if (IsWindowVisible())
	{
		[....]
        }
        statusbar->SetText(buffer, SBarUSS, 0); //-> CHANGE    	
     	
    }
}


void CemuleDlg::SetStatusBarPartsSize()

{
	CRect rect;
	statusbar->GetClientRect(&rect);
	int ussShift = 0;
    
	if(thePrefs.IsDynUpEnabled())
	{
    	
        if (thePrefs.IsDynUpUseMillisecondPingTolerance())
     	
            ussShift = 68;  //->CHANGE
        else
            ussShift = 113; //->CHANGE
    	
	}
    
	int aiWidths[6] =  //->CHANGE
	{ 
		rect.right - 675 - ussShift,
		rect.right - 440 - ussShift,
		rect.right - 250 - ussShift,
		rect.right -  25 - ussShift, 
		rect.right - ussShift,  //-> ADD
		-1
		//<-
	};
	statusbar->SetParts(_countof(aiWidths), aiWidths);
}

1

#2 User is offline   Eulero 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2553
  • Joined: 09-August 07

Posted 06 August 2013 - 08:18 PM

This issue is still present on 0.50b.
0

#3 User is offline   Tuxman 

  • lizzie and prog-rock fanatic
  • PipPipPipPipPipPipPip
  • Group: Validating
  • Posts: 2707
  • Joined: 26-July 04

Posted 11 August 2013 - 04:20 PM

Finally fixed in SVN. :flowers:
[ eMule beba ] :: v2.72 released, v3.00 in the works ...
- feel the lightweight! - featuring Snarl support, the Client Analyzer and tits!
Coded by a Golden eMule Award winner and most people's favorite modder!
..........................................
Music, not muzak:
Progressive Rock :: my last.fm profile
..........................................
eMule user since 0.28 ...
-[ ... and thanks for all the fish! ]-
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users