问题标签 [filedialog]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
forms - 如何将整个文件路径插入文本框中,而不仅仅是文件名?访问 2010
我目前正在使用以下代码来选择文件并将其路径添加到文本框中。
如何使它插入整个文件路径,而不仅仅是文件名?
c# - FatalExecutionEngineError On FileDialog.ShowDialog()
This is my program's basic Information:
- WPF Application
- Target Framework: 4
- Platform Target: Any CPU
Now when I try to open a file dialog I get a FatalExecutionEngineError.
This is my code:
#xA;Error Discription:
FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. The address of the error was at 0xe80fc200, on thread 0x1fbc. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
python - wxPython FileDialog 通配符包含目录?
我有一个wx.FileDialog()
当前接受 .zip、.litemod 和 .jar ( *.zip;*.litemod;*.jar
) 的文件。我怎样才能将其更改为也接受目录?我通常会认为*.zip;*.litemod;*.jar;*
,但这只会允许所有文件。
java - SWT FileDialog 打开问题
我需要使用 Java 7 在 Windows 7 Home 上使用 SWT 打开一个 FileDialog 来打开一个文件。当按下 BrowseBtn1 按钮 (SWT) 时,我需要打开这个 FileDialog。我为此使用 addSelectionListener 。这是正确的方法吗?如果是,为什么我的对话框在没有遇到任何运行时错误时不会打开。我根本不使用 AWT,只使用 SWT。
请帮助解决这个问题。
swing - 是否可以在 SWT/RCP 中创建自定义 FileDialog
一旦我们调用 FileDialog 构造函数,现有的 FileDialog 就会打开是 -
现在我想定制相同的。例如,我想在 Cancel 之后添加一个名为“Append”的新按钮。可以在普通 java 中实现吗?Swing 中的解决方案也将起作用,然后将使用桥接。
windows - 可以指定 IFileDialog 的开始位置吗?
我在 Microsoft 文档中找不到任何内容,所以我只是想知道是否有人知道,是否可以指定 a 的起始位置IFileDialog
?具体来说,我希望第一次打开对话框时,它会在父窗口的中心打开。
WM_*
除了以某种方式连接到底层消息之外,我没有看到一种直接的方法来做到这一点。
是否可以使用类似的东西SetWindowPos
?
c# - OpenFileDialog 导致 WPF 应用程序崩溃
在我的WPF
应用程序中,我曾经OpenFileDialog
选择一个图像并将其加载到应用程序中,这可以正常工作。
但是,如果我从闪存驱动器运行相同的应用程序,图像会在UI
冻结后加载,任何点击UI
都会使应用程序崩溃。
我也有manifest
应用程序的管理员。
java - SWT Filedialog 打开到主文件夹
我想在用户主文件夹中打开一个 FileDialog 窗口(即 /home/user 或 /Users/unsername)
我使用 System.getProperty 读取了用户主文件夹:
并且该变量包含正确的主文件夹。但是当我在 FileDialog 中设置过滤器路径时,它只打开(在 linux 中)不进入用户主目录的 /home 级别。
这是源代码:
任何的想法?这是一个屏幕截图:
java - Java FileDialog 可以在 Mac 上运行吗?
我在 Java 中创建了一个使用 FileDialog 的 Web 小程序。文件对话框在 Windows 上运行良好,我想知道它是否是跨平台的。它适用于 Mac 和 Linux 吗?还是需要指定自定义参数?如果是这样,怎么做?
python - Python Tkinter:将小部件添加到文件对话框
我正在使用Tkinter
和Python 2.6
编程2.7
图形用户界面。
这些用户界面包含用于打开文件和保存tkFileDialog
模块数据的对话框。我想调整对话框并添加一些进一步的条目小部件,例如让用户留下评论。
有没有办法这样做?
似乎文件对话框是直接取自操作系统的。Tkinter
它们派生自模块中的 Dialog 类并tkCommonDialog
调用tk.call("tk_getSaveFile")
框架小部件的方法(在本例中用于保存数据)。
我找不到这个方法是在哪里定义的。