Questions tagged «firemonkey»

2
如何在Firemonkey中创建“不激活”表单
在XCode中,通过将以下方法添加到您的NSView子类中可以防止在单击窗口时激活该窗口: - (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent )theEvent { return YES; } - (BOOL)acceptsFirstMouse:(NSEvent )theEvent { return YES; } - (void)mouseDown:(NSEvent )theEvent { [[[NSApp]] preventWindowOrdering]; } 在Windows平台上,可以通过以下简单代码完成: HWND hWnd = FindWindowW((String("FM") + fmxForm->ClassName()).c_str(), fmxForm->Caption.c_str()); SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_NOACTIVATE); 如何在单击NSView时将其子类化,以防止其激活? 如何在firemonkey中创建“ 不激活 ”表单?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.