Comparison of GTK+, Tcl/Tk, Qt, wxWidgets

2006-10-11 Thread Douglas Vechinski
I am interested in information comparing using GTK+, Tcl/Tk, Qt, wxWidgets for writing GUI apps. A potential rewrite of a Tcl/Tk app. is under consideration. This app is to be supported on Unix/Linux and Window XP platforms. This app presently peforms some 2d drawing with user interaction from

Re: OpenGL Zoom / Pan

2006-02-22 Thread Douglas Vechinski
Try taking a look at the shapes.c example that comes with the gtkglext package. There are different ways do to them and it sort of depends upon how you plan on setting up the scene/object to view how how you plan to view it. For example, if you are viewing an object and want to simulate a zoom

How to perform 2D drawing on top of 3D OpenGL scene

2006-02-09 Thread Douglas Vechinski
I'm writing a program using Gtk and GtkGLExt. I have a drawing area which is using OpenGL to display a scene. I receive mouse motion events to rotate, translate, zoom, on this scene. In the display window, I would also like to draw some primitives on top of the scene rendered by OpenGL. For

Is there a way to use Pango Markup in GtkTextBuffer

2005-11-15 Thread Douglas Vechinski
Is there any convenient way to insert text using the Pango Markup language into a GtkTextBuffer. Such functions exist for GtkLabel and GtkCellView but I haven't seen any for GtkTextBuffer. If none exist, is there a reason they don't? Seems like such functions would aid in inserting text with

Signal for a button-2 paste event in a TextView

2005-11-09 Thread Douglas Vechinski
I have a GtkTextView with an associated GtkTextBuffer. I want to act on the condition when text is pasted into the textview or textbuffer when the middle mouse button is pressed. That is, suppose I have some text selected in another application (like a gnome-terminal, evolution, etc.) or when

Signal for a button-2 paste event in a TextView

2005-11-09 Thread Douglas Vechinski
I have a GtkTextView with an associated GtkTextBuffer. I want to act on the condition when text is pasted into the textview or textbuffer when the middle mouse button is pressed. That is, suppose I have some text selected in another application (like a gnome-terminal, evolution, etc.) or when

Preventing cursor movement via mouse in GtkTextView

2005-11-08 Thread Douglas Vechinski
I'm attempting to create a command line input area for a GTK application using a GtkTextView with GtkTextBuffer. The user will type in commands and some output may be sent to the text buffer. After a command line is entered I make the text and any output not editable with a tag so they can not

Is it possible to put all necessary GTK runtime files in a single directory

2005-10-25 Thread Douglas Vechinski
I have a GTK application that I'm porting to run under Windows. This application is part of a package that has several other native Windows (non-GTK) executables all of which are to reside in a bin directory. The wish, desire, command of the project leader for this project would like

Re: Is it possible to put all necessary GTK runtime files in a single directory

2005-10-25 Thread Douglas Vechinski
HuamiSoft Hubert Sokolowski wrote: On Tue, 25 Oct 2005 10:58:32 -0500 Douglas Vechinski [EMAIL PROTECTED] wrote: I have a GTK application that I'm porting to run under Windows. This application is part of a package that has several other native Windows (non-GTK) executables all

Re: A few GtkFileChooserDialog questions

2005-08-25 Thread Douglas Vechinski
On Thu, 2005-08-25 at 21:40 +0200, Sven Neumann wrote: Hi, Douglas Vechinski [EMAIL PROTECTED] writes: First, is it possible to make a GtkFileChooserDialog when in GTK_FILE_CHOOSER_ACTION_SAVE action to activate when the user presses Enter or Return in the name entry box so that one

A few GtkFileChooserDialog questions

2005-08-25 Thread Douglas Vechinski
Couple of questions concerning the GtkFileChooserDialog. First, is it possible to make a GtkFileChooserDialog when in GTK_FILE_CHOOSER_ACTION_SAVE action to activate when the user presses Enter or Return in the name entry box so that one does not have to move the mouse to the Save button?

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread Douglas Vechinski
I've had a similar/relate question that I've been curious about for some time. This emits a signal evertime the contents is changed. Unfortunately, taking action everytime it is changed may not be what is desired. What may be desired is when the changes are done. Suppose the entry contained a

Periodic and cross platform timers or alarms

2005-08-10 Thread Douglas Vechinski
I have a GTK program in which I would like to periodically have a function called (say every 1-5 sec) to perform a check on something and take a certain action depending upon the result. Usually the action will be to do nothing and return. I had first tried using a gtk_idle_add but this calls it

Re: Periodic and cross platform timers or alarms

2005-08-10 Thread Douglas Vechinski
again until I finish with the current callback or do I need to use a g_source_remove and then before I return do another g_timeout_add. Ben Johnson wrote: On Wed, Aug 10, 2005 at 01:16:10PM -0500, Douglas Vechinski wrote: ... Does GTK+ or GLIB provide any type of repeating timers

Expose events not occurring from gdk_window_invalidate_rect

2005-08-05 Thread Douglas Vechinski
I sent this problem out a few days ago and never heard anything. This is a modified form of it plus I've attached a stripped down version of the code which demonstrates the problem (at least on my platforms). I'm having a problem with an application I am developing to display a 3D object in a

Expose events not occurring from gdk_window_invalidate_rect

2005-08-05 Thread Douglas Vechinski
I sent this problem out a few days ago and never heard anything. This is a modified form of it plus I've attached a stripped down version of the code which demonstrates the problem (at least on my platforms). I'm having a problem with an application I am developing to display a 3D object in a

Re: Expose events not occurring from gdk_window_invalidate_rect

2005-08-05 Thread Douglas Vechinski
Yes it is idle a lot. Whenever your not moving the mouse or interacting with the GUI it should be sitting in main GTK event loop. On Fri, 2005-08-05 at 17:31 +0200, Sven Neumann wrote: Hi, Douglas Vechinski [EMAIL PROTECTED] writes: The problem I am having is that depending upon

Problems with GtkEntry's grabbing focus

2005-08-02 Thread Douglas Vechinski
I'm writing a GTK+ application that uses an OpenGL capable drawing area widget (via the GtkGLExt extension). This drawing area responds to various mouse events. There are several other widgets for other various settings. I have been trying to also get the drawing area widget to respond to

Obtaining current value from a GtkHscale

2005-07-22 Thread Douglas Vechinski
I've been searching the GTK API trying to figure out what is probably a simple question. How do I get the current value from a GtkHscale scale bar? Since a GtkAdjustment is used to create the scalebar, I think that I could then use a gtk_adjustment_get_value(). However, I'm using glade-2 to

Re: Obtaining current value from a GtkHscale

2005-07-22 Thread Douglas Vechinski
On Fri, 2005-07-22 at 13:31 -0700, Ben Johnson wrote: On Fri, Jul 22, 2005 at 02:02:15PM -0500, Douglas Vechinski wrote: I've been searching the GTK API trying to figure out what is probably a simple question. How do I get the current value from a GtkHscale scale bar? When I'm having

Mixing Windows API and GTK+

2005-07-06 Thread Douglas Vechinski
I have a gtk+ application that I developed under Linux. I ported to Windows using the MSYS/MINGW environments along with the native window compilation of GTK+. Now someone is interested in have me create a DLL out of this code so that it can be used as part of another Windows applications.

Getting libiconv_set_relocation_prefix error under Windows

2005-07-06 Thread Douglas Vechinski
I encountered the current problem I'm having about a year ago and thought I had figured what was wrong but can't seem to remember how to fix it. I am trying to compile the helloworld.c example in the GTK+ tutorial on Windows using the MSYS, MINGW environment and the Tor GTK+ Windows DLL's.