ultimatepp/uppsrc/CtrlLib/src.tpp/MenuBar$en-us.tpp
cxl dfb118a820 CtrlLib: MenuBar::Execute now allows only single level of local menus
git-svn-id: svn://ultimatepp.org/upp/trunk@5365 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-09-17 09:14:40 +00:00

149 lines
No EOL
6.6 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

topic "MenuBar";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,0#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
[H6;0 $$4,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal]
[{_}%EN-US
[ {{10000@3 [s0; [*@(229)4 MenuBar]]}}&]
[s3;%- &]
[s1;:MenuBar`:`:class:%- [@(0.0.255)3 class][3 _][*3 MenuBar][3 _:_][@(0.0.255)3 public][3 _][*@3;3 B
arCtrl]&]
[s2; &]
[s2;
@@image:831&643
們厐鐎€€儥<EFBFBD>€€€€鴱滍澫霌窿斍孵唣燒皙蕃貗饺鶗飩铝碱鴵辚厜砣血<EFBFBD>ⅳ魞攦茄霊<EFBFBD>瓛膧挅<EFBFBD>
蹔猊咑愙<EFBFBD>芒腱<EFBFBD>呱䴓鲯<EFBFBD>灱虏櫇<EFBFBD><EFBFBD><EFBFBD>樹牿<EFBFBD>澑帲嬠撗逦籁丑屻亢海戽奉熗庫碌<EFBFBD>骁<EFBFBD>仌
婂潄幩鞣<EFBFBD>部烤命爫肛欚安灌噱懒蕼罡獯實捵ㄑ衲捖茮渐狄叆屰迍圎螚涁謿麆枠萨畱遽掋<EFBFBD>
臏饎仿滎亾桂〞<EFBFBD>⒌稛槎漪<EFBFBD>槽苛姅⒒龗<EFBFBD>泝<EFBFBD>暫<EFBFBD>圭<EFBFBD>得憫顣悄頌d<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>吆使趁裏
坐呐枃睖栘拺聹柇規烦呡G堘<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>伱瀫埮
&]
[s0; &]
[s9; This class provides the menu hierarchy. It can be used either
as Frame or as regular Ctrl (in that case it represents top`-level
menu), or be pop`-up as local menu (PopUp or Execute).&]
[s3; &]
[s0;%- &]
[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
[s3;%- &]
[s5;:MenuBar`:`:GetStdHeight`(Font`):%- [@(0.0.255) static] [@(0.0.255) int]_[* GetStdHeigh
t]([_^Font^ Font]_[*@3 font]_`=_StdFont())&]
[s2; The height of top`-level menu using the [%-*@3 font].&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:CloseMenu`(`):%- [@(0.0.255) void]_[* CloseMenu]()&]
[s2; Forces closing any open sub`-menus.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Set`(Callback1`<Bar`&`>`):%- [@(0.0.255) void]_[* Set]([_^Callback1^ Callba
ck1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 menu])&]
[s2; Sets the top`-level [%-*@3 menu]. Use for top`-level menu bars
only.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Post`(Callback1`<Bar`&`>`):%- [@(0.0.255) void]_[* Post]([_^Callback1^ Call
back1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 bar])&]
[s2; Deprecated `- do not use.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:PopUp`(Ctrl`*`,Point`,Size`):%- [@(0.0.255) void]_[* PopUp]([_^Ctrl^ Ctrl]_
`*[*@3 owner], [_^Point^ Point]_[*@3 p], [_^Size^ Size]_[*@3 rsz]_`=_[_^Size^ Size]([@3 0],
[@3 0]))&]
[s2; Pop`-ups the menu at [%-*@3 p ]in the [%-*@3 owner] view area. [%-*@3 sz]
is the size of menu, if zero, needed size is computed. Menu can
be defined by issuing individual Add methods before calling PopUp.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:PopUp`(Point`):%- [@(0.0.255) void]_[* PopUp]([_^Point^ Point]_[*@3 p])&]
[s2; Same as PopUp(GetActiveWindow(), p).&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:PopUp`(`):%- [@(0.0.255) void]_[* PopUp]()&]
[s2; Same as previous method, with p set to the current mouse position.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Execute`(Ctrl`*`,Point`):%- [@(0.0.255) void]_[* Execute]([_^Ctrl^ Ctrl]_`*
[*@3 owner], [_^Point^ Point]_[*@3 p])&]
[s2; Pop`-ups the menu at [%-*@3 p ]in the [%-*@3 owner] view area and
performs the modal loop for it.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Execute`(Point`):%- [@(0.0.255) void]_[* Execute]([_^Point^ Point]_[*@3 p])&]
[s2; Same as Execute(GetActiveWindow(), [%-*@3 p]).&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Execute`(`):%- [@(0.0.255) void]_[* Execute]()&]
[s2; Same as previous method, with p set to the current mouse position.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Execute`(Ctrl`*`,Callback1`<Bar`&`>`,Point`):%- [@(0.0.255) static]
[@(0.0.255) void]_[* Execute]([_^Ctrl^ Ctrl]_`*[*@3 owner], [_^Callback1^ Callback1][@(0.0.255) <
]Bar[@(0.0.255) `&>]_[*@3 proc], [_^Point^ Point]_[*@3 p])&]
[s2; Pop`-ups the menu based on [%-*@3 proc].&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Execute`(Callback1`<Bar`&`>`,Point`):%- [@(0.0.255) static]
[@(0.0.255) void]_[* Execute]([_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 p
roc], [_^Point^ Point]_[*@3 p])&]
[s2; Same as previous method, using GetActiveWindow() as owner.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Execute`(Callback1`<Bar`&`>`):%- [@(0.0.255) static]
[@(0.0.255) void]_[* Execute]([_^Callback1^ Callback1][@(0.0.255) <]Bar[@(0.0.255) `&>]_[*@3 p
roc])&]
[s2; Same as previous method, using current mouse position.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:IsEmpty`(`):%- [@(0.0.255) bool]_[* IsEmpty]()&]
[s2; Returns true if MenuBar has no items.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:Clear`(`):%- [@(0.0.255) virtual] [@(0.0.255) void]_[* Clear]()&]
[s2; Removes all items from MenuBar.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:LeftGap`(int`):%- [_^MenuBar^ MenuBar][@(0.0.255) `&]_[* LeftGap]([@(0.0.255) i
nt]_[*@3 cx])&]
[s2; Minimum size reserved on the left side of menu items for icons
in pixels. Default value is 16. Returns `*this.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:SetFont`(Font`):%- [_^MenuBar^ MenuBar][@(0.0.255) `&]_[* SetFont]([_^Font^ F
ont]_[*@3 f])&]
[s2; Sets the font to be used in MenuBar. Default is standard GUI
font. Returns `*this.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:GetFont`(`)const:%- [_^Font^ Font]_[* GetFont]()_[@(0.0.255) const]&]
[s2; Returns the font used in MenuBar.&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:MaxIconSize`(Size`):%- [_^MenuBar^ MenuBar][@(0.0.255) `&]_[* MaxIconSize](
[_^Size^ Size]_[*@3 sz])&]
[s2; Sets the maximum size of an iconn displaye inside a menu item
to [%-*@3 sz].&]
[s3; &]
[s4;%- &]
[s5;:MenuBar`:`:GetMaxIconSize`(`)const:%- [_^Size^ Size]_[* GetMaxIconSize]()_[@(0.0.255) c
onst]&]
[s2; Returns the maximum icons size.&]
[s3;%- &]
[s0; ]]