如何使像菜单的弹出窗口? [英] How to make a popup window like a menu?

查看:118
本文介绍了如何使像菜单的弹出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打一个弹出窗口,如这个.如果单击工具栏按钮,将显示一个窗口,但不影响主窗口的焦点
我尝试设置风格儿童及其父设置大型机窗口,但它只能显示在大型机领域的部分(在工具栏中的一小部分).
如果我告诉它作为一个无模式对话框,在主窗口失去焦点.
我不知道该怎么做.你能帮助我吗 ?非常感谢

解决方案
谁能给我一个答案吗?非常感谢
您可以给人以格"元素,而不是新的窗口一试.使外观和感觉窗口"使用适当的stysheet的div.

如果你使用DIV那么你的申请将不松动的焦点,似乎你的主要关注.因此,当前的UI设计现在将位于div内(div将用作容器)

N.B:对不起球员.这是在我的理解中的故障.我在这里更新之后理查德MacCutchan先生指出,这个问题是涉及到C和不HTML.我不会删除它,因为它会提醒我在发布回复之前仔细检查我的理解.

我表示歉意,并请忽略我的职务.

I want to make a popup window like this in a SDI application. If I click the toolbar button, a window will show but don''t influence the main window''s focus
I try setting style to Child and set its parent to MainFrame Window but it only show the part in MainFrame area (a small part in the toolbar).
If I show its as a modeless dialog, the main window lose focus.
I don''t know how to do that. Can you help me ? Thanks very much

解决方案

Can anyone give me an answer ? Thanks very much


You may give a try with "div" element instead of new window. Make the look and feel of the div like "window" using appropriate stysheet.

If you use div then your application will not loose focus which seems your main concern. Hence current UI design will be inside the div now(div will work as a container)

N.B: Sorry guys. It was a fault in my understanding. I am updating it here after Mr. Richard MacCutchan pointed out that this question were related to C and not HTML. I am not deleting it as it would remind me to double check my understanding before I am posting a reply.

I apologise and please ignore my post.


这篇关于如何使像菜单的弹出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆