mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -06:00
reorganizing repo
git-svn-id: svn://ultimatepp.org/upp/trunk@9206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7d17505cfe
commit
e3e8d627f5
3840 changed files with 0 additions and 1161578 deletions
|
|
@ -1,50 +0,0 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define LAYOUTFILE <DropListBug/DropListBug.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
class DropListBug : public WithDropListBugLayout<TopWindow>
|
||||
{
|
||||
private:
|
||||
char chr;
|
||||
|
||||
public:
|
||||
typedef DropListBug CLASSNAME;
|
||||
|
||||
DropListBug()
|
||||
{
|
||||
chr = 'a';
|
||||
CtrlLayout(*this, "Window title");
|
||||
addButton <<= THISBACK(AddButtonClicked);
|
||||
removeButton <<= THISBACK(RemoveButtonClicked);
|
||||
|
||||
dropList.AddSeparator();
|
||||
for(int i=0;i<1000;i++){
|
||||
dropList.Add(i,Format("%d",i));
|
||||
if(((i+1)%3)==0) dropList.AddSeparator();
|
||||
}
|
||||
dropList.AddSeparator();
|
||||
}
|
||||
|
||||
void AddButtonClicked()
|
||||
{
|
||||
dropList.Add(String().Cat() << chr++);
|
||||
dropList.SetIndex(dropList.GetCount() - 1);
|
||||
}
|
||||
|
||||
void RemoveButtonClicked()
|
||||
{
|
||||
if (dropList.GetCount() == 0)
|
||||
return;
|
||||
|
||||
dropList.Remove(dropList.GetIndex());
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
DropListBug bug;
|
||||
bug.Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue