mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: StatusBar minor fix
git-svn-id: svn://ultimatepp.org/upp/trunk@10502 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1fedd2cea8
commit
54f48f6d3f
3 changed files with 6 additions and 13 deletions
|
|
@ -289,7 +289,7 @@ void ProgressInfo::Refresh()
|
|||
if(!info) return;
|
||||
String txt = Format(~text, pos);
|
||||
info->Set(tabi, txt, tw ? tw : GetTextSize(txt, StdFont()).cx + 8);
|
||||
info->Set(tabi + 1, PaintRect(ProgressDisplay(), 1000.0 * pos / total), cx);
|
||||
info->Set(tabi + 1, PaintRect(ProgressDisplay(), 1000.0 * pos / (total ? total : 1000)), cx);
|
||||
}
|
||||
|
||||
ProgressInfo& ProgressInfo::Set(int _pos, int _total)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ public:
|
|||
virtual void FrameLayout(Rect& r);
|
||||
|
||||
private:
|
||||
|
||||
struct Tab {
|
||||
PaintRect info;
|
||||
int width;
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@ rameLR][@(0.0.255)3 <][_^Ctrl^3 Ctrl][@(0.0.255)3 >][3 _]&]
|
|||
[s0; &]
|
||||
[s2;
|
||||
@@image:643&143
|
||||
<EFBFBD>沃<EFBFBD><EFBFBD><EFBFBD>懦ユヘ園ー桁爰<EFBFBD>ヌィ<EFBFBD>鞘ショ<EFBFBD>糜㈱桷童アヲカ惞シ<EFBFBD>ー通<EFBFBD>セゥコ續<EFBFBD>メェ<EFBFBD>」・鵁<EFBFBD>レ<EFBFBD>
|
||||
珸シタ<EFBFBD>ミフク<EFBFBD>オミ<EFBFBD>ネケ㍼<EFBFBD>ヘツ<EFBFBD>・撻顰ヒ<EFBFBD>迚チ淒ネウ<EFBFBD>繖ュカ叭セ雎オ茉セ霰チォミ<EFBFBD><EFBFBD>汐或「ノ<EFBFBD>ルカレ<EFBFBD>トヤミ
|
||||
<EFBFBD>ェ榱榠侍<EFBFBD>壺待<EFBFBD><EFBFBD>粳エ烈<EFBFBD>ラン弁褸ヨチー繚香墟ァ<EFBFBD><EFBFBD>薯樗クハ龕カ、弦ァカゥリュ
|
||||
(A2cAFwAAAOn/AAAAAHic7dXNCYAwDAVgJ3YPR3ADD+I8riB0hwoeBJO2pjZtI7zwDhJKfz6pumN3CNIq6zIj6XjvOVr3F2c8QAMa0MwGaDXQhqtIhw8gzcLwOSUdI2h8S3znicGfxcizpGMELbaZ2mixteSdvmjBK9AGLXj1LIi9oklwYrZadNbEVNCqHuGe046YIpriEdKf/e5iaTSX8+vX3RVZZXhWsGMHDQEa0ID2r3A0jxIUuEpqnDYkNye2qVgt)
|
||||
&]
|
||||
[s0; &]
|
||||
[s9; InfoCtrl is a simple static Ctrl that represents information
|
||||
|
|
@ -53,7 +51,8 @@ t]_[*@3 tab], [@(0.0.255) const]_[_^Value^ Value][@(0.0.255) `&]_[*@3 info],
|
|||
[s2; Sets (creates if needed) the section of the InfoCtrl.&]
|
||||
[s7; [%-*C@3 tab]-|Index of section.&]
|
||||
[s7; [%-*C@3 info]-|Content of section. Value content is converted to
|
||||
the text using AsString.&]
|
||||
the text using AsString, unless it is Image, which is displayed
|
||||
as is.&]
|
||||
[s7; [%-*C@3 width]-|Width of section in pixels. Negative value indicates
|
||||
that section should be placed given number of pixels from the
|
||||
right border of the InfoCtrl.&]
|
||||
|
|
@ -126,12 +125,7 @@ nfoCtrl]&]
|
|||
[s0; &]
|
||||
[s2;
|
||||
@@image:1268&131
|
||||
cヒ斧<EFBFBD><EFBFBD><EFBFBD>懦區偲<EFBFBD><EFBFBD>ニ<EFBFBD><EFBFBD>幗勠・ル簍トハムォカリヲ鰒竡、ホ陀「候凍ー鈷滯ナ蒿ロ<EFBFBD>シ熹┘<EFBFBD>゚タ嶷<EFBFBD>
|
||||
備淌ミ<EFBFBD><EFBFBD>栫剌怐獪ツー<EFBFBD>月┃磨かター國髦割ォ≠ゥ丙狂ャ屑磯ナター伏チ湊ィ撫牴ょン」ネョヤヌ衙マ潜メィ゚虚
|
||||
≠<EFBFBD>ャ守ョ<EFBFBD>チイムミ<EFBFBD>キナャゥヒノ酥<EFBFBD>夐。伜<EFBFBD>・サ滂闇茖省コ」ケョ弡クキノ肛η<EFBFBD>ロ襞サ懆マテ<EFBFBD>螯クレ茗ォ<EFBFBD>也<EFBFBD>
|
||||
セャォホに<EFBFBD><EFBFBD>ャみ<EFBFBD>ノャロ痘カ琥ト偬<EFBFBD>俎ム<EFBFBD>゚ゥニワチカヌュク變イ<EFBFBD>ム<EFBFBD>ョ俑<EFBFBD>糖フ<EFBFBD>ーょ滌カ梠<EFBFBD>邊隲ーナセス<EFBFBD>
|
||||
曁<EFBFBD><EFBFBD>南マォサく<EFBFBD><EFBFBD>脂遖<EFBFBD>袞喆トi<EFBFBD>せ<EFBFBD><EFBFBD>リ盡、ン推サ槲糯ケ夥゚ヲウヲォ熈ヨモウ二ュ<EFBFBD>カッ随<EFBFBD>ク<EFBFBD>ユエオ
|
||||
昔・<EFBFBD>ロ<EFBFBD><EFBFBD><EFBFBD>昔・゙菩ス鶴ルΙヘネ頑霹ーコ漿ソ<EFBFBD>「攣ソス∀<EFBFBD><EFBFBD>
|
||||
(A8sAFQAAAOv/AAAAAHic7Zk9jsMgEEZ9/xtsGaXZYstEylG22CbpVuIOThHJIgzzEzAMWB96RWRbBr48YJSE/98AQBvWdXUfw1D8fH8BmY+cgWBUMPcxDA4EqwGCqUCwGiCYCgSrAYKpuAu2LIt7CMVAMJUawZaoFQ/gMIJlo0iu1MdlyZD20qhfC5WCcXMsDmcuNsGyUdDvvcWsqUvJ50b9GmkhmGUFJbufbwjFZI9IOiM5rnq4t8lj6INFsNvlfLuc6MPqsuUmONoqK4YKFueQLKvOgsmHdTesgl3zgslbE5e2YOZEdgUimNdRZd+pxtzBtse4Hcyya6lRzy6YWnF1E0x4+bCCZR82HpH2qOeyKzBFvj2Hvfh0gfeEE2yru4KtBgvvjgnnJnfFZfqVxIIJc6Q57DgGIVhhJN2QBLueXne5GmxfprMr4IdWA4Iz8a1sDbYvEOyQuP9VNDUQTCV2Jlt3Bb4GAxBMJRXsve7qWYPNyIpmaMYwH/c/75GiHb89Ac30xxw=)
|
||||
&]
|
||||
[s0; &]
|
||||
[s9; StatusBar is a Frame Ctrl intended to be used as informational
|
||||
|
|
@ -291,4 +285,4 @@ by Total method.&]
|
|||
[s5;:ProgressInfo`:`:operator int`(`):%- [* operator_int]()&]
|
||||
[s7; [*/ Return value]-|Get().&]
|
||||
[s3; &]
|
||||
[s0; ]
|
||||
[s0; ]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue