From: L Dries <bertus.dries@planet.nl>
Subject: GtkAda Scrollbars
Date: Tue, 24 Dec 2019 08:36:21 +0100
Date: 2019-12-24T08:36:21+01:00 [thread overview]
Message-ID: <5e01bff5$0$18422$e4fe514c@news.kpn.nl> (raw)
I am trying to create a program using a "drawingarea". In some cases the
drawing is to large for the window so I want to use scrollbars but I can
get these correct. If I use the policy "Always" the scrollbars cannot
move. I used scrolbars in a textview and that worked correctly. I think
that I have done something wrong. So below a part of the code I used.
Gtk_New (MainWindow.Scrolledwindow);
Set_Policy(MainWindow.Scrolledwindow,Policy_Automatic,Policy_Automatic);
Set_Shadow_Type (MainWindow.Scrolledwindow, Shadow_None);
Set_Placement (MainWindow.Scrolledwindow, Corner_Top_Left);
Gtk_New (MainWindow.View_Port);
Gtk_New (MainWindow.DrawingArea);
MainWindow.Scrolledwindow.Add(MainWindow.DrawingArea);
Pack_Start
(MainWindow.Main_Box1,
MainWindow.Scrolledwindow,
Expand => True,
Fill => True,
Padding => 0);
--
L. Dries
next reply other threads:[~2019-12-24 7:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-24 7:36 L Dries [this message]
2019-12-25 16:49 ` GtkAda Scrollbars Dmitry A. Kazakov
2019-12-30 10:09 ` L Dries
2019-12-30 10:58 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox