* adding some more example to Ada GTK on wiki @ 2011-02-20 12:28 Nasser M. Abbasi 2011-02-20 12:50 ` Dmitry A. Kazakov 2011-02-22 10:16 ` Jacob Sparre Andersen 0 siblings, 2 replies; 10+ messages in thread From: Nasser M. Abbasi @ 2011-02-20 12:28 UTC (permalink / raw) Is it possible for some Ada expret in GTK to add few examples on using Ada to make GUI in this section: http://en.wikibooks.org/wiki/Ada_Programming/Libraries/GUI/GtkAda There is only one small 5 lines examples there. I want to learn using GTK to make GUI in Ada, but there seems to be few examples to learn from out there. I am talking about small examples to learn from, not some large app. Thanks --Nasser ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-20 12:28 adding some more example to Ada GTK on wiki Nasser M. Abbasi @ 2011-02-20 12:50 ` Dmitry A. Kazakov 2011-02-20 13:09 ` Ludovic Brenta 2011-02-22 10:16 ` Jacob Sparre Andersen 1 sibling, 1 reply; 10+ messages in thread From: Dmitry A. Kazakov @ 2011-02-20 12:50 UTC (permalink / raw) On Sun, 20 Feb 2011 04:28:42 -0800, Nasser M. Abbasi wrote: > I want to learn using GTK to make GUI in Ada, but there seems to be > few examples to learn from out there. http://rosettacode.org/wiki/Category:GtkAda > I am talking about > small examples to learn from, not some large app. Unfortunately useful GTK examples cannot be small. You can find GtkAda sample code in: 1. GtkAda distribution, see <GtkAda-install-dir>\share\examples\gtkada 2. In GtkAda contributions, see the subdirectory test_gtkada In order to learn GTK read this: http://library.gnome.org/devel/gtk-tutorial/stable It is C, but GtkAda is quite thin. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-20 12:50 ` Dmitry A. Kazakov @ 2011-02-20 13:09 ` Ludovic Brenta 2011-02-20 23:37 ` Rick 0 siblings, 1 reply; 10+ messages in thread From: Ludovic Brenta @ 2011-02-20 13:09 UTC (permalink / raw) Dmitry A. Kazakov writes: > On Sun, 20 Feb 2011 04:28:42 -0800, Nasser M. Abbasi wrote: > >> I want to learn using GTK to make GUI in Ada, but there seems to be >> few examples to learn from out there. > > http://rosettacode.org/wiki/Category:GtkAda > >> I am talking about >> small examples to learn from, not some large app. > > Unfortunately useful GTK examples cannot be small. You can find GtkAda > sample code in: > > 1. GtkAda distribution, see > > <GtkAda-install-dir>\share\examples\gtkada > > 2. In GtkAda contributions, see the subdirectory > > test_gtkada > > In order to learn GTK read this: > > http://library.gnome.org/devel/gtk-tutorial/stable > > It is C, but GtkAda is quite thin. Also, search for "GtkAda tutorial" in your favorite web search engine. Also read the GtkAda User's Guide provided with GtkAda (on Debian, package libgtkada2-doc; see /usr/share/doc/libgtkada2-doc/gtkada_ug/gtkada2_ug.pdf). -- Ludovic Brenta. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-20 13:09 ` Ludovic Brenta @ 2011-02-20 23:37 ` Rick 2011-02-21 0:24 ` Nasser M. Abbasi 0 siblings, 1 reply; 10+ messages in thread From: Rick @ 2011-02-20 23:37 UTC (permalink / raw) You are welcome to use the resources at http://adasafehouse.webs.com/GtkAda.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-20 23:37 ` Rick @ 2011-02-21 0:24 ` Nasser M. Abbasi 2011-02-21 8:39 ` Rick 0 siblings, 1 reply; 10+ messages in thread From: Nasser M. Abbasi @ 2011-02-21 0:24 UTC (permalink / raw) On 2/20/2011 3:37 PM, Rick wrote: > You are welcome to use the resources at > http://adasafehouse.webs.com/GtkAda.html Thanks for the link. Very well done webpage. I see that one can use Glade with Ada to design a GUI. I think, for me, this was always easier to do, than to layout components directly by writing code. So, good to know this option is there. ofcourse one needs to learn GTK Ada also to work with the generated code. GUI designers can save much time. I now use Matlab, and it has a nice GUI designer called GUIDE, which I can use to make GUI's using it very fast, better than having to code all that myself. Easier to move and change things on the screen looking at things than using some layout manager in the code, for me it is anyway. btw, in your PDF files (very well done btw), the images seem to not have sharp resolution on them. In PDF I can zoom in to read the text on the images, but at normal resolution (100%) or when I printed them, the images are not sharp. Not sure how to added the images to your document, but thought to mention this. thanks again, --Nasser ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-21 0:24 ` Nasser M. Abbasi @ 2011-02-21 8:39 ` Rick 2011-02-21 9:07 ` Nasser M. Abbasi 2011-02-21 11:16 ` Simon Wright 0 siblings, 2 replies; 10+ messages in thread From: Rick @ 2011-02-21 8:39 UTC (permalink / raw) Hi Nasser Images in the PDFs are transparent background GIFs. Perhaps one of the GtkAdaers can tell me how to improve on the resolution. I don't know! Personally, I hate code generators. All very well for creating the first version, but you will pay for it if you try to modify the code. Convenient they are! Software Engineers they aren't! Anyway, I'm glad you find the stuff useful. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-21 8:39 ` Rick @ 2011-02-21 9:07 ` Nasser M. Abbasi 2011-02-21 10:26 ` Dmitry A. Kazakov 2011-02-21 11:16 ` Simon Wright 1 sibling, 1 reply; 10+ messages in thread From: Nasser M. Abbasi @ 2011-02-21 9:07 UTC (permalink / raw) On 2/21/2011 12:39 AM, Rick wrote: > Hi Nasser > > Images in the PDFs are transparent background GIFs. Perhaps one of > the GtkAdaers can tell me how to improve on the resolution. I don't > know! > I am not sure what software you used to make the PDF files. It looks too good to be from Microsoft word :), and it does not look like latex either. I use PNG images, add them to my latex document, and generate PDF use pdflatex, and resolution always looked as original. So, may be you can PNG. > Personally, I hate code generators. All very well for creating the > first version, but you will pay for it if you try to modify the code. > Convenient they are! Software Engineers they aren't! > Well, the trick is not to have to modify the code by hand, but use the GUI builder always to change the GUI layout. I tried both methods, and I just can't go back to coding GUI by hand any more. What used to take me days, I now do in 1-2 hrs. Any way, whatever works for one I guess. > Anyway, I'm glad you find the stuff useful. Yes, very useful web page. thanks, --Nasser ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-21 9:07 ` Nasser M. Abbasi @ 2011-02-21 10:26 ` Dmitry A. Kazakov 0 siblings, 0 replies; 10+ messages in thread From: Dmitry A. Kazakov @ 2011-02-21 10:26 UTC (permalink / raw) On Mon, 21 Feb 2011 01:07:40 -0800, Nasser M. Abbasi wrote: > On 2/21/2011 12:39 AM, Rick wrote: >> Personally, I hate code generators. All very well for creating the >> first version, but you will pay for it if you try to modify the code. >> Convenient they are! Software Engineers they aren't! > > Well, the trick is not to have to modify the code by hand, but > use the GUI builder always to change the GUI layout. > > I tried both methods, and I just can't go back to coding GUI by > hand any more. What used to take me days, I now do in 1-2 hrs. Well, that depends on the kind of GUI you are designing. Generators might be useful when you have a fixed layout and a very limited set of widgets grouped in dialogs. I doubt they will give you much help with tree views, cell renderers and text buffers. Even less if you drop dialogs. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-21 8:39 ` Rick 2011-02-21 9:07 ` Nasser M. Abbasi @ 2011-02-21 11:16 ` Simon Wright 1 sibling, 0 replies; 10+ messages in thread From: Simon Wright @ 2011-02-21 11:16 UTC (permalink / raw) Rick <rickduley@gmail.com> writes: > Personally, I hate code generators. All very well for creating the > first version, but you will pay for it if you try to modify the code. Well then, don't do that! ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: adding some more example to Ada GTK on wiki 2011-02-20 12:28 adding some more example to Ada GTK on wiki Nasser M. Abbasi 2011-02-20 12:50 ` Dmitry A. Kazakov @ 2011-02-22 10:16 ` Jacob Sparre Andersen 1 sibling, 0 replies; 10+ messages in thread From: Jacob Sparre Andersen @ 2011-02-22 10:16 UTC (permalink / raw) Nasser M. Abbasi wrote: > Is it possible for some Ada expret in GTK to add few > examples on using Ada to make GUI in this section: Feel free to adapt the source code from the talk <http://edb.jacob-sparre.dk/foredrag/GUI-with-GtkAda/> for the Ada Programming wikibook. Kind regards, Jacob Sparre Andersen -- Jacob Sparre Andersen Research & Innovation Vesterbrogade 148K, 1. th. 1620 K�benhavn V Danmark ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-02-22 10:16 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-02-20 12:28 adding some more example to Ada GTK on wiki Nasser M. Abbasi 2011-02-20 12:50 ` Dmitry A. Kazakov 2011-02-20 13:09 ` Ludovic Brenta 2011-02-20 23:37 ` Rick 2011-02-21 0:24 ` Nasser M. Abbasi 2011-02-21 8:39 ` Rick 2011-02-21 9:07 ` Nasser M. Abbasi 2011-02-21 10:26 ` Dmitry A. Kazakov 2011-02-21 11:16 ` Simon Wright 2011-02-22 10:16 ` Jacob Sparre Andersen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox