Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Marcb on October 23, 2010, 07:42:11 AM

Title: GadTools
Post by: Marcb on October 23, 2010, 07:42:11 AM
I've been trying to set up a simple Window In C with a ListView and having all sorts of problems...

Using the examples from the rkm the listview doesn't display other than the title, however if I select the listview and then I exit the program I sometimes get a guru...

Using code generated by Gadtoolsbox the listview displays correctly but again if selected and then exit I sometimes get a guru...

Anybody able to give me an example of a listview using Gadtools?

Cheers,

Marc
Title: Re: GadTools
Post by: Franko on October 23, 2010, 07:54:29 AM
Quote from: Marcb;586375
I've been trying to set up a simple Window In C with a ListView and having all sorts of problems...

Using the examples from the rkm the listview doesn't display other than the title, however if I select the listview and then I exit the program I sometimes get a guru...

Using code generated by Gadtoolsbox the listview displays correctly but again if selected and then exit I sometimes get a guru...

Anybody able to give me an example of a listview using Gadtools?

Cheers,

Marc


I could dig out some of my own code showing you how it works in 68k Assembler, but as your writing in C this may not be of much help to you, let me know anyway and I'll post some examples if you think it may help... :)
Title: Re: GadTools
Post by: Marcb on October 23, 2010, 07:57:49 AM
Thanks mate,

I never learnt assembly, maybe if you posted it in pseudo code though?

Cheers,
Marc
Title: Re: GadTools
Post by: Franko on October 23, 2010, 08:03:31 AM
No problem, :)

I'll just nip off now and dig through some of my old source code and see what info I can find that might be useful to you... :)
Title: Re: GadTools
Post by: Franko on October 23, 2010, 08:17:52 AM
While I'm finding the stuff, just thought you may want to check out here on Aminet for lot's of interesting stuff on GadTools... :)

http://aminet.net/search?query=gadtools
Title: Re: GadTools
Post by: Franko on October 23, 2010, 08:48:48 AM
Hmm, can't find much on my HDs that would be of use to you sorry, I must have archived most of my gadtools source code onto DVD. It's gonna take me a while to find it (nearly 500GB of stuff to search through and nothings labeled... DOH!!!) :(

In the meantime you can find all you need to know about GadTools from this link, including examples in C, which would suit you much better... :)

GadTools - Structures, Info & Examples

http://cataclysm.cx/random/amiga/reference/Libraries_Manual_guide/node0062.html

Hope this helps in the meantime... :)
Title: Re: GadTools
Post by: Marcb on October 23, 2010, 09:19:22 AM
Thanks for looking, hadn't thought to look on Aminet myself :)

I'll go throug some of the stuff on there and see if I can work out what I'm doing wrong...

Thanks again,
Marc
Title: Re: GadTools
Post by: espskog on October 23, 2010, 10:42:22 AM
Quote from: Marcb;586375
I've been trying to set up a simple Window In C with a ListView and having all sorts of problems...

Using the examples from the rkm the listview doesn't display other than the title, however if I select the listview and then I exit the program I sometimes get a guru...

Using code generated by Gadtoolsbox the listview displays correctly but again if selected and then exit I sometimes get a guru...

Anybody able to give me an example of a listview using Gadtools?


We used GadToolsBox when we developed Interplay (Amiga CDDA player) back in..hmm..199x :-) It worked like a dream and we used SAS C as the development tool.

Regs,
Espen Skog
SilverHawk BBS - http://telnet://silverhawk.ath.cx
Title: Re: GadTools
Post by: Thomas on October 23, 2010, 02:14:36 PM
Listview example:
http://thomas-rapp.homepage.t-online.de/examples/lv.c

Other Gadtools examples:
http://thomas-rapp.homepage.t-online.de/examples/gadtools.c
http://thomas-rapp.homepage.t-online.de/examples/gtmenu.c
http://thomas-rapp.homepage.t-online.de/examples/scroll.c
http://thomas-rapp.homepage.t-online.de/examples/iconify.c
Title: Re: GadTools
Post by: Marcb on October 24, 2010, 05:07:48 AM
Perfect!

Thanks Thomas


Cheers,

Marc