1. How to close a secondary euGTK window?
- Posted by Mark Brown <mabrown at ?h?g.com.au> Mar 10, 2008
- 596 views
Hi Everyone I'm working on a little app which fetches historical quotes from yahoo finance. I'm using Irv's old gtk2 lib for my gui. I've created a gtk calendar to allow for date range input. I've done it simply by creating another window for the calendar. It basically duplicates Irv's calendar demo except that I want to be able to close the calendar when the quit button of the calendar window is pressed, not the whole app. I'm sure this is simple but for the life of me I can't work out how to just close the calendar window from a button press. As an aside, I've downloaded Michael J. Sabal's most recent version of euGTK but as there are no demos with it I haven't looked at it yet. What benefits are there over the old library? Any help greatly appreciated. Cheers Mark
2. Re: How to close a secondary euGTK window?
- Posted by Michael J. Sabal <m_sabal at y?hoo?com> Mar 10, 2008
- 581 views
Mark Brown wrote: > > Hi Everyone > > I'm working on a little app which fetches historical quotes from yahoo > finance. > I'm using Irv's old gtk2 lib for my gui. > > I'm sure this is simple but for the life of me I can't work out how to just > close the calendar window from a button press. You have two choices: If you are creating the calendar window on the fly as a result of a menu option or button click, you can gtkSet(calendarWindow,"destroy",{}) to get rid of it. On the other hand, if you want to close it to bring it back later, just use hide(calendarWindow) and show(calendarWindow). > > As an aside, I've downloaded Michael J. Sabal's most recent version of euGTK > but as there are no demos with it I haven't looked at it yet. What benefits > are there over the old library? > Thanks to Jesse's help, a lot of features from the 2.10 version of GTK+ are now supported. All existing functionality from 2.4 is still there, so the original demos still work (at least the ones that weren't already broken). The other big change is version separation. You can use the 2.10 version of euGTK with any version of the GTK+ dlls or so's. > > Any help greatly appreciated. > > Cheers > > Mark If you're willing to share, I'd be very interested in your program when it's ready. Mike
3. Re: How to close a secondary euGTK window?
- Posted by irv mullins <irvm at e?li?ay.com> Mar 10, 2008
- 588 views
- Last edited Mar 11, 2008
I have sent Rob a new version of the demo programs. There are a few patches to the gtk 2.10 includes I need to send as well, how is the best way? Irv
4. Re: How to close a secondary euGTK window?
- Posted by Michael J. Sabal <m_sabal at ??hoo.com> Mar 11, 2008
- 589 views
irv mullins wrote: > > > I have sent Rob a new version of the demo programs. > There are a few patches to the gtk 2.10 includes I need to send as well, > how is the best way? > > Irv Thanks Irv. Glad to see you're still about. Probably the best way is to email them to m underscore sabal at yahoo tod com.
5. Re: How to close a secondary euGTK window?
- Posted by Mark Brown <mabrown at ihug?com.?u> Mar 15, 2008
- 608 views
Michael J. Sabal wrote: > If you're willing to share, I'd be very interested in your program when it's > ready. Hi Mike, Many thanks for the help. All working the way I wanted it to now. I like gtk for gui creation very much, particularly because it works so well on my Zaurus. I'm very pleased that someone is maintaining euGtk. Also very pleased to see Irv is still around, I thought he had moved on. My little app still needs a lot of work. I want to do technical analysis with it and to that end I'm wrapping ta-lib ( http://ta-lib.org/ )for use with euphoria. My gtk code is something I've resurrected from 2005. Back then I was trying to be clever and over-wrapped Irv's functions. In retrospect that wasn't very clever at all as the result isn't very versatile. Perhaps a simpler stock ticker app without my wrapper rubbish might be a useful demo until the ta-lib stuff is done? I don't think there are any stock tickers in the archive. Mark