Re: Fraction input
- From: "Marco Scholten" <mscholtn xs4all nl>
- To: Nathan Hüsken <gtkmm lonely-star org>
- Cc: gtkmm general discussion <gtkmm-list gnome org>
- Subject: Re: Fraction input
- Date: Sun, 05 Feb 2006 20:40:58 +0100
On Sun, 05 Feb 2006 12:29:38 +0100, Nathan Hüsken <gtkmm lonely-star org>
wrote:
Hello together,
I want the user to be able to input a number as a fraction. So I would
layout 2 sponboxes like this:
Spinbox1
--------
Spinbox2
The Problem is the line inbetween. It should be black! I tried with a
label (playing around with glade), but the label always takes to musch
space (or you can not see the black line).
What would be an easy way to make the black line?
You could pack the 2 Spinboxes in a VBox, pack that VBox in an EventBox,
and then draw a line ont the Gdk::Window of the EventBox using
Gdk::Window::drwa_line() (connect to the signal_expose_event() for that).
This might be a helpful example:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch22s02.html
--
Marco
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]