unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: John Steele Scott <toojays@toojays.net>
Subject: Using Guile in a wxWidgets app
Date: Sun, 05 Feb 2006 10:26:16 +1030	[thread overview]
Message-ID: <ds3ev1$gvn$1@sea.gmane.org> (raw)

I have written a small piece about embedding Guile in wxWidgets GUI program.
You can read it at:
<http://www.toojays.net/portal/Wiki/EmbeddingGuileIntoAWxWidgetsProgram>

Does anyone have any comments about it?

In particular, I would appreciate feedback on the way I have wrapped the
wxWidgets MessageBox() function. I used symbols instead of ORing bits for
the modifier parameter, so that 
(message-box "Really quit?" "Quit?" 'yes/no 'question)
is equivalent to
wxMessageBox("Really quit?", "Quit?", wxYES_NO|wxICON_QUESTION).

Also, in my MyFrame::OnQuit method, I create a variable in the Guile world,
and then look it up again after calling the hook. Is this really necessary,
or can I somehow bind *quit-do-close* directly to a SCM in
MyFrame::OnQuit's stack frame, which Guile will modify directly, removing
the need for the call to scm_variable_ref(scm_c_lookup("*quit-do-close*"))?

cheers,

John



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


             reply	other threads:[~2006-02-04 23:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-04 23:56 John Steele Scott [this message]
2006-02-05  9:42 ` Using Guile in a wxWidgets app Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ds3ev1$gvn$1@sea.gmane.org' \
    --to=toojays@toojays.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).