I need some guidance

Yawar Amin yawar.amin at gmail.com
Tue Feb 24 13:35:10 EST 2015


Hi David,

On 2015-02-24, at 9:06, David Christopher <chrstdvd at gmail.com> wrote:

> [...]
> 
> When you write code is Scheme script, are you literally building the
> Options, what I call a form, literally?  I have been looking at the Hello
> world .scm file while in a tutorial.  I understand I can change the text in
> a label, but how did the label get on the form, where did the form come
> from, and the buttons on the form?
> 
> Basically, I need a mental picture of what I am doing.
> 
> Is there a small tutorial that shows how to make the form and put controls
> on it?  Is that even what is being done?

I don't know if this will help but I have been trying to work on a 'wrapper' API to make it easier to create new reports: https://github.com/yawaramin/gc-decl-reports

Check out the file 'gc-decl-reports.scm', and specifically the Scheme function 'd:report'. In it I wrap up the commands that create a report in the existing API that comes with GnuCash.

The main thing it does is call the 'gnc:define-report' function and passes it, among other things, functions that return a GnuCash 'options' object and a 'document' object.

The 'gnc:define-report' function uses the defined options to create an options dialog box that can be shown when the user clicks the Options button.

Hope this helps,

Yawar




More information about the gnucash-devel mailing list