gui

When do you design the GUI first and the backend code later, or vice versa?

When I'm working on a project, sometimes I'll design the GUI first and then write the backend code to make it work, but other times I'll do the opposite and make the GUI once I have the system working. How do you choose which way round to code and are there any particular types of project or circumstances that would lean you either way? ...

Virtual List Controls (MFC)

I am using a List Control to display a representation of elements within a vector. When the list is clicked on another control shows information about that element. The index of the element is currently determined by its index in the control, however if I wish to sort or filter the results this will no longer work. I have been told that...

J2ME widget library

I am starting to develop a J2ME app and the built-in GUI components of the java library are ugly and inflexible. Can anyone recommend a nice and easy to use (open-source...) widget library? ...

Java GUI Resolution Independant Scaling

Hi, I'm working on a large legacy java application for which an important feature was automatic scaling of GUI Components based on monitor resolution. We are upgrading the JVM on which it runs from 1.4.2 to 1.6 and now the scaling is broken due to a change in the implementation of java.awt.Container.getPreferredSize(). getPrefferedSiz...

Should the Visual Studio GUI editor be used?

Coming from a background, I'm familiar with GUI editors that do a poor job of producing code. However, I've never written a GUI using .NET. Does the GUI editor in Visual Studio have the same problem(s)? Are both the source files and output GUI good? ...

Auto refreshing the UI when business objects change

This is more of a design question. I am building a tool that displays business objects in various ways (ie Tree Nodes, List View Items, Combo Boxes, Text Fields, etc). Anytime the user changes any of one of them, an event is raised that signals that that business object has been changed or the collection that it belongs to has been c...

What's the purpose of the Help->About dialog in a program?

The Help->About dialog in GUI applications has historically been the place for some very "interesting" (and often funny) functionality and easter eggs. How would you define the purpose of the About dialog? What function does it serve in an application, and who is the target audience? What's the best use (or abuse) of an About dialog ...

C# controls in a MFC Application

I am responsible for the User Interface of an application written completely in Visual C++ using MFC and some third-part controls. I would like to use C# (WinForms or even better WPF) to improve the application look&feel. I would like some advices about how to do it. Links, articles, examples... Right now the user interface is isolate...

Using a Windows Form with Ruby

Is it possible to create a form on Windows using Ruby? I have a Ruby script and I would like to have an input form to ask for a user's password, then use this in the rest of my script. update: I have successfully done this with wxRuby, although it looks ugly. Shoes looks promising, I might look into that if I need to do this again.. ...

Recommend language for learning GUI on Windows

This question is slightly similar, but I'd like some different emphases. I'd like to build a small Windows Firewall log viewer application, while in the process teaching myself both GUI programming and another programming language. My goals? Write efficient code on an efficient framework. This is all relative, maybe a good benchmark is...

How I do I make controls/elements move with inertia?

Modern UI's are starting to give their UI elments nice inertia when moving. Tabs slide in, page transitions, even some listboxes and scroll elments have nice inertia to them (the iphone for example). What is the best algorythm for this? It is more than just gravity as they speed up, and then slow down as they fall into place. I have ...

Cross-platform editor control

I need a cross-platform editor control to use as GUI-part in an in-house tool. The control may be commercial, but with reasonable price. Required features: Platforms: Win32, OS X, Linux UTF-8 support Fine-grained run-time control to the text style (or at least color) Nice low-level plain C API without usual horrible bloat Should not p...

Suggestions for a MessageBox.Show replacement that does not block GUI thread?

a while back I ran across a situation where we needed to display message-boxes to the user for notifications but we could not use MessageBox.Show because it blocks the GUI thread (so nothing on the screen gets updated while the dialog is active). Any suggestions on an alternative? [I coded an alternative at the time but I don't like it....

How to make a Java Canvas look raised from its container

I have a simple GUI component written in Java. The class draws an analog clock in a java.awt.canvas. This canvas is then contained in a JFrame - What I want to do is give the canvas a 3d "raised" effect - almost like adding a drop shadow to a photo. Is there a simple way to do this? ...

Setting Background Color CMDIFrameWnd

Is there a way to change the color of the background for a MDIParent windows in MFC (2005)? I have tried intercepting ON_WM_CTLCOLOR AND ON_WM_ERASEBKGND but neither work. OnEraseBkgnd does work, but then it gets overwritten by the standard WM_CTL color. Cheers ...

What are alternatives to ExtJS?

So what I'm looking for is a javascript framework I can use that has several UI controls. I have taken a look at jQuery but those controls are very basic compared to ExtJS. Are there any other competitive alternatives? ...

object editing and isDirty() flag

Hi all, I'm working on a system were a user can edit existing objects ("Filter" domain objects to be exact) through a GUI. As a UI hint, we only want to enable the save button if the user really modified something to the object. I was wondering if anyone had any experience with this problem and what the best way would be to approach thi...

Is there an easy-to-use, free or inexpensive, web-based business rules app with a GUI?

I am looking for a web-based business rules app that I can use with clients. After I get them started, the client would be able to enter new rules. Assume that the client has good Excel skills (as an example of level of tech sophistication) but has little patience for formal languages or programming. Cost: $0-$500 The resulting model...

Is it possible to get Message Box in web forms?

I tried but I guess Message Box only works with win forms. What is the best alternative to use in web forms? ...

How to make windows form UI responsive?

This is a common problem for all the developer, i am looking for best solution to make windows forms UI responsive. I have an Animated GIF file to show progress of my calcuation on windows form. I took a picture box control and placed animated gif into that. now when my calcuation starts - the animaged gif freeze. i want the reverse, t...