Register for your free account! | Forgot your password?

You last visited: Today at 12:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Source]Combo Box Fix

Discussion on [Source]Combo Box Fix within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
Rhyder`'s Avatar
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
[Source]Combo Box Fix

Im going to Share The combobox fix of Caja

If you want extended /ci(createitem):

WndControl.cpp
Search for:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
    int nNum = m_wndListBox.AddString( lpszString );
    CRect rect = m_wndListBox.GetWindowRect( TRUE );
    rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
    m_wndListBox.SetWndRect( rect );
    return nNum;
}
Replace by:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
    int nNum = m_wndListBox.AddString( lpszString );
    CRect rect = m_wndListBox.GetWindowRect( TRUE );
 
    if(nNum > 10)
        nNum = 10;
    DEBUG_ONLY(IRALog::GetInstance()->Debug("CWndComboBox::AddString : nNum[%d]", nNum));
    rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
    m_wndListBox.SetWndRect( rect );
    return nNum;
}
.
.
To edit Height of combo box:
Code:
nNum > 10

nNum = 10
Replace 10 what ever you wan't its either 15 or 20
Picture:



Credits: 99.99% Caja
00.01% Me
Rhyder` is offline  
Thanks
8 Users
Old 05/11/2013, 23:37   #2
 
Supr3matt's Avatar
 
elite*gold: 80
Join Date: May 2013
Posts: 146
Received Thanks: 23
Already had, but will serve other people, thanks for sharing
Supr3matt is offline  
Thanks
1 User
Old 05/12/2013, 09:34   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 274
Received Thanks: 103
or just use this, is also included here & better:

Shiaru is offline  
Old 05/12/2013, 10:58   #4
 
Rhyder`'s Avatar
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
Quote:
Originally Posted by Shiaru View Post
or just use this, is also included here & better:

yeah that is extended admin create item while mine is for the combo box only.
but thanks for your
Rhyder` is offline  
Old 05/12/2013, 20:43   #5
 
adeilson123's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 129
Received Thanks: 257
Quote:
Originally Posted by jayjei14 View Post
Im going to Share The combobox fix of Caja

WndControl.cpp
Search for:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
    int nNum = m_wndListBox.AddString( lpszString );
    CRect rect = m_wndListBox.GetWindowRect( TRUE );
    rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
    m_wndListBox.SetWndRect( rect );
    return nNum;
}
Replace by:
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
    int nNum = m_wndListBox.AddString( lpszString );
    CRect rect = m_wndListBox.GetWindowRect( TRUE );
 
    if(nNum > 10)
        nNum = 10;
    DEBUG_ONLY(IRALog::GetInstance()->Debug("CWndComboBox::AddString : nNum[%d]", nNum));
    rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
    m_wndListBox.SetWndRect( rect );
    return nNum;
}
Picture:



Credits: 99.99% Caja
00.01% Me
I pitched well before...
My source already has this.
you guys got from my source UPDATE 3 ...
adeilson123 is offline  
Thanks
2 Users
Old 05/13/2013, 01:50   #6
 
Rhyder`'s Avatar
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
Quote:
Originally Posted by adeilson123 View Post
I pitched well before...
My source already has this.
you guys got from my source UPDATE 3 ...
o.O caja already have this at french forum of jtb1 when your source are not finish yet!
Rhyder` is offline  
Old 05/14/2013, 11:23   #7
 
elite*gold: 0
Join Date: Apr 2011
Posts: 319
Received Thanks: 20
dont work.. its messes around with the typ's?...

look:



its on type stromblade, and i got shields, etc etc.. and as you can see i got the update of you're scrol bar..
arnootie is offline  
Old 05/15/2013, 22:53   #8
 
sbobetcom's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 28
Received Thanks: 4
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
	int nNum = m_wndListBox.AddString( lpszString );
	CRect rect = m_wndListBox.GetWindowRect( TRUE );
	int nNum2 = nNum;
	if (nNum2 > 20)
	{
	    nNum2 = 20;
	}
	rect.bottom = rect.top + ( ( nNum2 + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
	m_wndListBox.SetWndRect( rect );
	return nNum;
}
Credits: 100% V15Source China
sbobetcom is offline  
Old 05/16/2013, 04:09   #9
 
Rhyder`'s Avatar
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
Quote:
Originally Posted by sbobetcom View Post
Code:
int CWndComboBox::AddString( LPCTSTR lpszString )
{
	int nNum = m_wndListBox.AddString( lpszString );
	CRect rect = m_wndListBox.GetWindowRect( TRUE );
	int nNum2 = nNum;
	if (nNum2 > 20)
	{
	    nNum2 = 20;
	}
	rect.bottom = rect.top + ( ( nNum2 + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
	m_wndListBox.SetWndRect( rect );
	return nNum;
}
Credits: 100% V15Source China
O.o try to look on ltd source :P
Rhyder` is offline  
Old 05/16/2013, 04:58   #10
 
sbobetcom's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 28
Received Thanks: 4
sbobetcom is offline  
Old 06/04/2013, 13:55   #11
 
Rhyder`'s Avatar
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
Quote:
Originally Posted by sbobetcom View Post
your nNum2 > 20

my nNum > 10 Thats why it's short
Rhyder` is offline  
Old 06/04/2013, 19:35   #12
 
Jomex's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 24
Received Thanks: 16
Actually you are tards....

It will cause all data after nNum **** up.

TIP: Check Admin Create Item functioning with nNum set to 10.
Jomex is offline  
Thanks
2 Users
Old 06/09/2013, 12:02   #13
 
elite*gold: 130
Join Date: Sep 2010
Posts: 62
Received Thanks: 117
Quote:
Originally Posted by Jomex View Post
Actually you are tards....

It will cause all data after nNum **** up.

TIP: Check Admin Create Item functioning with nNum set to 10.
Yep!

Just modify this line:
Quote:
rect.bottom = rect.top + ( ( nNum + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
and change it to this:

Quote:
rect.bottom = rect.top + ( ( (nNum <= 15 ? nNum : 15) + 1 ) * ( m_pFont->GetMaxHeight() + 3 ) ) + 8;
Change 15 to whatever you want, it changes the size of the combobox.

Regards, Me;
DardanDev is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Best FB PVP COMBO
04/02/2012 - Cabal Online - 1 Replies
what is the best fb pvp combo?
Combo bot ?
02/23/2008 - Cabal Online - 1 Replies
I was wondering if there was any combo bots , is hard to click and get it past 13 >.<. And a bypass NA version of cabal any help I be greatfull .
OMG 256 combo !
11/17/2007 - Cabal Online - 43 Replies
http://img88.imageshack.us/img88/6065/comboproqc5. jpg It from server cabal vietnam



All times are GMT +2. The time now is 12:11.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.