mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
CtrlCore: Support for files drag source in win32, Core: Fixed Join
git-svn-id: svn://ultimatepp.org/upp/trunk@7292 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
486728f241
commit
26d7282240
5 changed files with 32 additions and 5 deletions
|
|
@ -373,9 +373,12 @@ void Ctrl::KillCaret()
|
|||
|
||||
void Ctrl::SetInfoPart(int i, const char *txt)
|
||||
{
|
||||
DUMP(i);
|
||||
DUMP(txt);
|
||||
Vector<String> f = Split(info, '\x7f', false);
|
||||
f.At(i) = txt;
|
||||
info = Join(f, "\x7f");
|
||||
DUMPHEX(info);
|
||||
}
|
||||
|
||||
Ctrl& Ctrl::Tip(const char *txt)
|
||||
|
|
@ -410,13 +413,15 @@ Ctrl& Ctrl::LayoutId(const char *txt)
|
|||
|
||||
String Ctrl::GetInfoPart(int i) const
|
||||
{
|
||||
DDUMPHEX(info);
|
||||
Vector<String> f = Split(info, '\x7f', false);
|
||||
DUMP(f);
|
||||
return i < f.GetCount() ? f[i] : String();
|
||||
}
|
||||
|
||||
String Ctrl::GetTip() const
|
||||
{
|
||||
return GetInfoPart(0);;
|
||||
return GetInfoPart(0);
|
||||
}
|
||||
|
||||
String Ctrl::GetHelpLine() const
|
||||
|
|
|
|||
Loading…
Reference in a new issue