mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Fixed anchors.
Some minor changes to the UI. Added cUICommonDialog control.
This commit is contained in:
@@ -136,10 +136,6 @@ Uint32 cUIListBox::AddListBoxItem( cUIListBoxItem * Item ) {
|
||||
return (Uint32)(mItems.size() - 1);
|
||||
}
|
||||
|
||||
Uint32 cUIListBox::AddListBoxItem( const std::string& Text ) {
|
||||
return AddListBoxItem( String( Text ) );
|
||||
}
|
||||
|
||||
Uint32 cUIListBox::AddListBoxItem( const String& Text ) {
|
||||
mTexts.push_back( Text );
|
||||
mItems.push_back( NULL );
|
||||
@@ -222,6 +218,17 @@ void cUIListBox::RemoveListBoxItems( std::vector<Uint32> ItemsIndex ) {
|
||||
}
|
||||
}
|
||||
|
||||
void cUIListBox::Clear() {
|
||||
mTexts.clear();
|
||||
mItems.clear();
|
||||
mSelected.clear();
|
||||
mVScrollBar->Value(0);
|
||||
|
||||
UpdateScroll();
|
||||
FindMaxWidth();
|
||||
UpdateListBoxItemsSize();
|
||||
}
|
||||
|
||||
Uint32 cUIListBox::RemoveListBoxItem( Uint32 ItemIndex ) {
|
||||
RemoveListBoxItems( std::vector<Uint32>( 1, ItemIndex ) );
|
||||
|
||||
@@ -561,6 +568,9 @@ void cUIListBox::ItemClicked( cUIListBoxItem * Item ) {
|
||||
}
|
||||
|
||||
Uint32 cUIListBox::OnSelected() {
|
||||
cUIMessage tMsg( this, cUIMessage::MsgSelected, 0 );
|
||||
MessagePost( &tMsg );
|
||||
|
||||
SendCommonEvent( cUIEvent::EventOnSelected );
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user