gui

Tcl/Tk examples?

Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the text widget. If you have other nice and clean examples for useful tasks, please add them too. ...

How do you handle multiple selection in a drop down style control?

I have a WinForms application with a view where the user selects a single time span from a list of predefined time spans in a ComboBox, with it's DropDownStyle property set to DropDownList. Now, the requirements have changed. The users are going to need the ability to make multiple selections from the list of time spans. Is it possible...

Free/Paid Flash Video Players?

I've been looking into the FlowPlayer recently for a new project. What other alternatives are out there (Free OR Paid)? I'm interested in speed, usability, features, and customization capabilities. Any help or further information is appreciated. ...

Will Learning C++ Help for Building Fast/No-Additional-Requirements Desktop Applications?

Will learning C++ help me build native applications with good speed? Will it help me as a programmer, and what are the other benefits? The reason why I want to learn C++ is because I'm disappointed with the UI performances of applications built on top of JVM and .NET. They feel slow, and start slow too. Of course, a really bad programme...

Restoring UI settings in C# WinForms - which event to respond to?

When is the proper time to restore the UI layout settings of a System.Windows.Forms.Control? I tried this: FooBarGadget control = new FooBarGadget(); parent.Controls.Add(control); control.FobnicatorWidth = lastLayoutSettings.FobWidth; No cigar. Reason? control isn't finished laying out its internals; it's in its default size of 100x1...

Designing a GUI

How would you, as a developer with little (or no) artistic inclination, design a GUI for an application? In particular, I'm thinking about desktop apps but anything that relates to Web apps is welcome as well. I find it extremely hard to design something that both I and potential users find pleasing. I can look up color schemes on the ...

SetCursor reverts after a mouse move

I am using SetCursor to set the system cursor to my own image. The code looks something like this: // member on some class HCURSOR _cursor; // at init time _cursor = LoadCursorFromFile("somefilename.cur"); // in some function SetCursor(_cursor); When I do this the cursor does change, but on the first mouse move message it changes ba...

Any Substitute API for Win32API?

Hello, I need an API that can make menus like Win32API, But something simpler and better than WinAPI. That can make GUI, with text zones, buttons etc...like an average Windows program.(Windows GUI Style) Can anyone recommand on one like it? Thanks. ...

Qt context menu breaking selection in QTreeView

I have a QTreeView class with a context menu installed as follows: m_ui.tree->setContextMenuPolicy(Qt::CustomContextMenu); connect(m_ui.tree, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowTreeContextMenu(const QPoint&))); ... void ShowTreeContextMenu(const QPoint& point) { m_treeContextMenu->exec(m_ui.tree...

How to apply the MVC pattern to GUI development

I am primary a web developer but I do have a very good understanding of C++ and C#. However, recently I have writing a GUI application and I have started to get lost in how to handle the relationship between my controller and view logic. In PHP it was very easy - and I could write my own MVC pattern with my eyes closed - mainly because o...

How to deterimine whether .Net DLL is used in a GUI app or web service?

How do I determine in a .Net DLL whether it's running in a Windows GUI application or web service? I've got a low level class which is being shared between two applications and need to disable message boxes when it's used in a web service. The Windows application has over 200 solutions and I'm not in a position to re-factor the existin...

What is the best 3rd party GUI framework for application development in C#?

Examples could be Infragistics or DevExpress. But I'm also looking for your opinions on other frameworks. It could even be WPF if that is your favorite. ...

wxPython: displaying multiple widgets in same frame

I would like to be able to display Notebook and a TxtCtrl wx widgets in a single frame. Below is an example adapted from the wxpython wiki; is it possible to change their layout (maybe with something like wx.SplitterWindow) to display the text box below the Notebook in the same frame? import wx import wx.lib.sheet as sheet class MyShe...

Where Windows Explorer gets its “Folder Up” and “Back” icons from?

XP-specific answers preferred, but others are welcome too. ...

What framework to use when evaluating UI without users’ involvement?

Often a quick UI evaluation needs to be done without actual users’ involvement. What approach is to take? Is there a framework one could stick to (i.e. principles to look out for, steps to take as part of the evaluation) or is it all haphazard, art based on experience rather than rigid process? ...

Is it possible to enumerate the wxFrame children in wxWidgets?

I'm using the wxGlade designer to generate the GUI for a small application. It generates a class, inherited from wxFrame, which is the main application window. In order to facilitate the maintenance, I'd like to avoid writing additional code in this generated class. But all the widgets created with the wxGlade are actually created in th...

Showing completion in a progress bar

In this particular situation, there are 9 automated steps in a process that take varying lengths of time. We currently have a number showing percentage in the center of a progress bar, but it suffers from the common stop-and-go problem of racing up to 33%, waiting a long time, racing up to 55%, waiting an even longer time, then finishing...

Create GUI similar to Windows Explorer using WPF

How would you implement a GUI similar to the "My Computer" view in Windows Explorer? In particular the "Icons" view mode. Including the grouping of different item types (as Files Stored on This Computer/Hard Disk Drives/Devices with Removable Storage groups in Windows Explorer) In WinForms I would use a ListView for this thing but in W...

UI Design / Workflow: Changing same property on multiple objects

I am looking for a general UI design / work-flow for changing the same property across multiple objects. Suppose I have an object class called Person. The Person class has a property called City. I want to select 5 Person objects and change the City property on all 5 to "New York" in one action in the UI. This is not difficult to ...

Effective way to notify user of input validation failures in an editable table

Im looking for ideas on how to effectively notify users that their input into an editable table is invalid. For example, if one column of a table represents an American zip code and the user enters in the zip code "85rr3" into a cell, how would you notify the user of the issue? ...