简体   繁体   中英

WxPerl make modal Frame

I'm trying create modal window (wxFrame) in perl with xwPerl library (and WxWidget 3.0.2). Reason is, that is important for me to code will interrupt after window will be showed, until user close it. I found https://stackoverflow.com/a/2573660/5746693 .

I would like use this code in in WxPerl library, but I have problem with using Wx::EventLoop class. It seems there is problem with loading this library. I didn't even find this class in WxWidget documentation. Sorry for probably stupid question.

Or is here some possibility to implement custom (with own controls in there) modal frame based on WxDialog class?

Thank for reply

If you need a modal window, use a wxDialog , not a wxFrame . Using the latter just doesn't make sense, the main difference between the two is that a dialog can be (and usually is) modal while the frame can't. Otherwise they are almost exactly the same.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM