gui-designer

Double Click vs Single Click - are these mutually exclusive

寵の児 提交于 2019-12-01 01:57:43
问题 Can anyone name an instance of an application where clicking an entity (say image) does one thing, but if you double-click it it does something different? The only example I've been able to find is in double-clicking a track in iTunes but then that selects it (single click function) and then plays it (double-click function) which implies (logically) that double click is the superset (containing single-click). Basically, I am being asked to implement (in WPF) an image single-click doing one

Design View of a DataTemplate in a ResourceDictionary in Visual Studio

时间秒杀一切 提交于 2019-11-30 11:32:15
Is there a way to preview GUI in a DataTemplate? e.g. if I have a Resource Dictionary, containing a DataTemplate, and the Data template contains GUI code, like <DataTemplate x:Key="MyTemplate"> <StackPanel> <TextBox Text="AAA"/> </StackPanel> </DataTemplate> Can I view just the stackpanel? (like previewing a UserControl in design view). If not possible with original VS, is there a plugin for that? Visual Studio doesn't support doing this, but Expression Blend does, if you can get access to it. Here's some instructions on several ways to edit template resources: http://msdn.microsoft.com/en-us

ADT 22.3 (android 4.4) - getting error “After scene creation, #init() must be called”

只谈情不闲聊 提交于 2019-11-29 21:13:31
After installing the new ADT (22.3.0.v201310242005-887826) which supports Android 4.4 (KitKat), I keep getting the error as shown here: An internal error has occurred In the list of errors, I see multiple items of "RenderPreview", and when I click on any of them, I see: An internal error has occurred. After scene creation, #init() must be called When testing the new ADT on another computer, I can't see this error appearing there. This is very weird. Why do I get those errors, and what can I do to fix it? I've created a bug report . Until it gets fixed, set the API version in the UI preview to

Design View of a DataTemplate in a ResourceDictionary in Visual Studio

冷暖自知 提交于 2019-11-29 17:02:50
问题 Is there a way to preview GUI in a DataTemplate? e.g. if I have a Resource Dictionary, containing a DataTemplate, and the Data template contains GUI code, like <DataTemplate x:Key="MyTemplate"> <StackPanel> <TextBox Text="AAA"/> </StackPanel> </DataTemplate> Can I view just the stackpanel? (like previewing a UserControl in design view). If not possible with original VS, is there a plugin for that? 回答1: Visual Studio doesn't support doing this, but Expression Blend does, if you can get access

Reusing a JPanel in NetBeans GUI Designer

狂风中的少年 提交于 2019-11-29 06:46:43
This is in NetBeans 6.5, Java 6. I have the following hierarchy in the NetBeans GUI Designer: JFrame JTabbedPane JPanel X <...> JPanel JButton JPanel Y <...> JButton Question: JPanel Y is identical to JPanel X, so I'd like to simply reuse JPanel X in both places, but how do I do this inside the GUI Builder? Attempts: I tried copy-pasting JPanel X, but it creates a full "deep" copy (JPanel X1, etc), duplicating everything in JPanel X. Some googling indicated it might be possible to add it to the Palette, but I haven't found a way to add a simple JPanel to the palette (as opposed to a complete

IntelliJ idea gui designer + maven

寵の児 提交于 2019-11-28 12:01:58
I have a project created with help of GUI designer. Here is code of main form. public class MainForm { MainForm() { directLineOkButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { //some action } } }); crossLineOkButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { //some action }); clearButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { //some action }); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { //some

Is WindowBuilder Pro already installed in Eclipse?

拜拜、爱过 提交于 2019-11-27 02:21:47
问题 At this page: https://developers.google.com/java-dev-tools/download-wbpro, there is no option to install WindowBuilder Pro to Eclipse Juno (4.2). Is WindowBuilder Pro already installed with Eclipse Juno? Also, is there a better free alternative to WindowBuilder Pro? 回答1: UPDATE 2019 Again WindowsBuilder Pro is no longer included in any of the latest Eclipse versions. So you need to add it as was shown in the initial answer below. It is also strange, that WindowBuilder Pro is not available

Good Way to Debug Visual Studio Designer Errors

女生的网名这么多〃 提交于 2019-11-26 19:56:47
问题 Is there a good way to debug errors in the Visual Studio Designer? In our project we have tons of UserControls and many complex forms. For the complex ones, the Designer often throws various exceptions which doesn't help much, and I was wondering if there's some nice way to figure out what has gone wrong. The language is C#, and we're using Visual Studio 2005. 回答1: See Debugging Design-Time Controls (MSDN). 回答2: I've been able to debug some control designer issues by running a second instance

How to tell if .NET code is being run by Visual Studio designer

感情迁移 提交于 2019-11-26 06:00:46
问题 I am getting some errors thrown in my code when I open a Windows Forms form in Visual Studio\'s designer. I would like to branch in my code and perform a different initialization if the form is being opened by designer than if it is being run for real. How can I determine at run-time if the code is being executed as part of designer opening the form? 回答1: To find out if you're in "design mode": Windows Forms components (and controls) have a DesignMode property. Windows Presentation Foundation

Best GUI designer for eclipse? [closed]

女生的网名这么多〃 提交于 2019-11-26 03:17:02
问题 I\'m looking for a good GUI designer for swing in eclipse. My preference is for a free/open-source plugin. 回答1: Window Builder Pro is a great GUI Designer for eclipse and is now offered for free by google. 回答2: Here is a quite good but old comparison http://wiki.computerwoche.de/doku.php/programmierung/gui-builder_fuer_eclipse Window Builder Pro is now free at Google Web Toolkit 回答3: Look at my plugin for developing swing application. It is as easy as that of netbeans': http://code.google.com