horizontal scrolling incorrectly with scrolled window
- From: gandalf pobox com
- To: gtk-list redhat com
- Subject: horizontal scrolling incorrectly with scrolled window
- Date: Thu, 15 Apr 1999 22:14:05 -0400 (EDT)
I don't remember if this was mentioned before (didn't see it in the
archive) but there seems to be some problems with the way gtk decides
how/when to scroll horizontally. It will allow a lot of text to be
clipped off, without giving the ability to scroll. In fact playing with
resizing the window, it only seems to allow you to scroll if the size
becomes less than the width of the titlebar.
Here is a code snippet which creates a scrolled window and a clist, and
then sets the scrolling in both directions to automatic. The vertical
has no problems, but the horizontal is all wacked out:
listTitles[0] = g_malloc(sizeof(gchar) *13 );listTitles[0] = "Machine\0";
machinelist = gtk_clist_new_with_titles( 1, listTitles);
gtk_clist_set_column_width( GTK_CLIST ( machinelist),0,45);
machineframe = gtk_scrolled_window_new(NULL, NULL);
gtk_container_add(GTK_CONTAINER(machineframe), machinelist);
gtk_box_pack_start(GTK_BOX(hbox), machineframe, TRUE, TRUE, 0);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (machineframe),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_show(machineframe);
gtk_widget_show(machinelist);
am I doing something wrong? or is it a bug in the scrolled window code?
(btw - I am using a few day old CVS checkout of 1.3)
thanks
-chris
_______________________________________________________
Christopher Rogers Stevens Institute of Technology
gandalf@pobox.com http://www.pobox.com/~gandalf
The trouble with doing something right the first time is that nobody
appreciates how difficult it was.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]