GEM Programming

C and PASCAL (or any other high-level languages) in here please

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2323
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

GEM Programming

Postby christos » Sun Mar 19, 2006 8:58 pm

Hi, I made a small programme and I kind of want to give it a gem interface. What is the best approach? Should I get a resource editor create the environment and go from there? I want to have pull down menus and stuff. Is that easily accomplished?
Thanks for your answers. I am pretty much in the beginning of my learning curve.
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

User avatar
PaulB
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2168
Joined: Tue Jun 11, 2002 10:56 pm
Location: You Kay

Postby PaulB » Sun Mar 19, 2006 9:22 pm

I would say that 'Interface' is best. Works for colour and mono. Can't remember where to download it from though!

User avatar
[ProToS]
Moderator
Moderator
Posts: 2242
Joined: Fri Sep 20, 2002 2:09 am
Location: Lourdes / France
Contact:

Postby [ProToS] » Sun Mar 19, 2006 10:18 pm

SeeU
[ProToS]/Facebook

User avatar
ggn
Atari God
Atari God
Posts: 1137
Joined: Sat Dec 28, 2002 4:49 pm

Postby ggn » Mon Mar 20, 2006 8:20 am

Could you tell us what kind of programming language you used?

George
is 73 Falcon patched atari games enough ? ^^

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2323
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

Postby christos » Mon Mar 20, 2006 8:29 am

It's pure c on aranym George.
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

User avatar
ggn
Atari God
Atari God
Posts: 1137
Joined: Sat Dec 28, 2002 4:49 pm

Postby ggn » Mon Mar 20, 2006 8:54 am

Well, in that case you can use libraries as Windom, which take many of the interface work away from you (e.g. having to write an event loop etc.).

Also, do a search about GEM C programming, I'm sure there are lots of tutorials out there.

George
is 73 Falcon patched atari games enough ? ^^

brainois
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 120
Joined: Mon Apr 17, 2006 4:32 pm
Location: Brussels, Belgium

Postby brainois » Mon May 08, 2006 9:34 pm

Hello,

I have been searching on the net the whole evening for a good tutorial on programming with Pure C (or C in general) on atari, but nothing comes out.
I am looking for a step-by-step tutorial on how to develop a full GEM application (sth like programming a Personal Information Manager).
The net is really poor for beginner atari developper.
Does anyone have a good tip?

François

User avatar
[ProToS]
Moderator
Moderator
Posts: 2242
Joined: Fri Sep 20, 2002 2:09 am
Location: Lourdes / France
Contact:

Postby [ProToS] » Tue May 09, 2006 12:14 am

this is not a step by step but a good article from the f030 diskmag Chosneck
perhaps a good point to start
http://msb.neostrada.pl/chosneck/mag2/ART52.html
SeeU
[ProToS]/Facebook

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re:

Postby DrCoolZic » Mon Aug 25, 2008 12:26 pm

[ProToS] wrote:interface 2.33 german/english
ftp://chapelie.rma.ac.be/atari/programming/intrface.zip

Site is dead?
I was able to find it some other place but could not found any documentation?
Does anybody knows where I can find documentation in English.
Thanks
Jean

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 838
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: GEM Programming

Postby jfl » Mon Aug 25, 2008 4:42 pm

christos wrote:Hi, I made a small programme and I kind of want to give it a gem interface. What is the best approach? Should I get a resource editor create the environment and go from there? I want to have pull down menus and stuff. Is that easily accomplished?


Menus are pretty easy to create with a resource editor and quite straightforward to handle in your app. I suggest Resource Master, which is more or less the standard now. Interface will have problems with some extended resource files. Though in you case it probably doesn't matter.

As for tutorials, Tim Oren's Professional GEM is still a very good introduction, even if it does not take into account later additions like the AV protocol and such. See here: wiki/index.php/Professional_GEM

Other interesting documentations: http://dev-docs.atariforge.org/
Jean-François
GEMDict – GEMClip

User avatar
[ProToS]
Moderator
Moderator
Posts: 2242
Joined: Fri Sep 20, 2002 2:09 am
Location: Lourdes / France
Contact:

Re: Re:

Postby [ProToS] » Mon Aug 25, 2008 6:55 pm

DrCoolZic wrote:
[ProToS] wrote:interface 2.33 german/english
ftp://chapelie.rma.ac.be/atari/programming/intrface.zip

Site is dead?
I was able to find it some other place but could not found any documentation?
Does anybody knows where I can find documentation in English.
Thanks
Jean


new adress for chapelie ftp
ftp://kurobox.serveftp.net:3021/program ... trface.zip
SeeU
[ProToS]/Facebook

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 838
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: GEM Programming

Postby jfl » Mon Aug 25, 2008 10:15 pm

jfl wrote:[...] Tim Oren's Professional GEM is still a very good introduction [...].

I just noticed that this section of the wiki is incomplete. You'll find the complete tutorial plus other programming resources here:
http://removers.free.fr/wikipendium/wak ... ngArticles
Jean-François
GEMDict – GEMClip

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: GEM Programming

Postby DrCoolZic » Fri Aug 29, 2008 5:46 pm

jfl wrote:...
Menus are pretty easy to create with a resource editor and quite straightforward to handle in your app. I suggest Resource Master, which is more or less the standard now. Interface will have problems with some extended resource files. Though in you case it probably doesn't matter.

I have tried to use RSM 3.64 in English but I have lots of problem with it.
I run TOS 1.6 FR under steem std machine with 4Mb. When I loaf RSM it first complain about BGH I ignore the message and it loads. However in most cases the display are incorrect. The fonts are unreadable most of the time and some character do not show up correctly for example OK becomes _K. Most of the time if I try to use the editor a secong time in the same session it bombs!!!
Is there minimum requrements to run the program. I beleive that it is possible to load an "extended GEM" from the auto Directory??? Is this needed ?
Thanks
Jean
You do not have the required permissions to view the files attached to this post.
Last edited by DrCoolZic on Fri Aug 29, 2008 5:57 pm, edited 1 time in total.

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: GEM Programming

Postby DrCoolZic » Fri Aug 29, 2008 5:50 pm

jfl wrote:You'll find the complete tutorial plus other programming resources here:
http://removers.free.fr/wikipendium/wak ... ngArticles
Whaooo seems very very interesting ressouce. Thanks for the info

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 838
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: GEM Programming

Postby jfl » Fri Aug 29, 2008 6:54 pm

DrCoolZic wrote:
jfl wrote:You'll find the complete tutorial plus other programming resources here:
http://removers.free.fr/wikipendium/wak ... ngArticles
Whaooo seems very very interesting ressouce. Thanks for the info


I see that you're from France. As it happens, the best ever GEM tutorials were published in the French mag ST magazine, starting at no. 77. You can find all issues of the mag here:
http://www.abandonware-magazines.org/af ... g=6&page=4
There are more than 15 articles.

If you want to understand how GEM (and VDI, and GDOS) works, that's the thing to read before anything else. Really brilliant. The example programs and sources can be downloaded from the STmag website, section archives I think.
Jean-François
GEMDict – GEMClip

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 838
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: GEM Programming

Postby jfl » Fri Aug 29, 2008 6:59 pm

DrCoolZic wrote:I have tried to use RSM 3.64 in English but I have lots of problem with it.
I run TOS 1.6 FR under steem std machine with 4Mb. When I loaf RSM it first complain about BGH I ignore the message and it loads. However in most cases the display are incorrect. The fonts are unreadable most of the time and some character do not show up correctly for example OK becomes _K. Most of the time if I try to use the editor a secong time in the same session it bombs!!!
Is there minimum requrements to run the program.

It would appear that RSM is better suited to later versions of AES. You should try Interface, then. It's great too, just not as up to date as RSM.
Jean-François
GEMDict – GEMClip

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: GEM Programming

Postby DrCoolZic » Fri Aug 29, 2008 9:45 pm

jfl wrote:I see that you're from France. As it happens, the best ever GEM tutorials were published in the French mag ST magazine, starting at no. 77.

Yes I have already found these article from Claude Attard and yes indeed they are very interesting. I am currently writing some GEM code that I will publish to get feedback. whatch out for these in the comming days (hopefully not weeks...)
It would appear that RSM is better suited to later versions of AES. You should try Interface, then. It's great too, just not as up to date as RSM

Is there a way to load newer GEM from the auto directory?
I tried to run steem with TOS > 2 a,d yes it seems to work better.

Jean

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 838
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: GEM Programming

Postby jfl » Sat Aug 30, 2008 1:29 am

DrCoolZic wrote:Is there a way to load newer GEM from the auto directory?


Without changing your TOS version you mean? I'm pretty sure it's not possible but I may be wrong.
Jean-François
GEMDict – GEMClip

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: GEM Programming

Postby DrCoolZic » Sat Aug 30, 2008 9:03 am

jfl wrote:Without changing your TOS version you mean? I'm pretty sure it's not possible but I may be wrong.

Well I rembember that once I had inserted a floppy in my machine before booting and it loaded GEM (?) from the auto directory. After that when I was using certain applications I found that the GUI was much much nicer (better graphics). I am not 100% sure and I may just dream awake!!! I need to find this diskette?!?
Technically the GEM is in the Atari ROM but it should be possible to load a new and more powerful GEM in memory and to change a vector in function table to now point to this enhance GEM.
Again I may be wrong? I need to look for this disk and try it on a real machine. I'll keep you posted

User avatar
bullis1
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2301
Joined: Tue Dec 12, 2006 2:32 pm
Location: Canada
Contact:

Re: GEM Programming

Postby bullis1 » Tue Sep 02, 2008 1:11 pm

jfl wrote:
DrCoolZic wrote:Is there a way to load newer GEM from the auto directory?

Without changing your TOS version you mean? I'm pretty sure it's not possible but I may be wrong.

Yes, there is a way to do this. You need a certain program to do so however. Try searching the forum or maybe asking ppera (hopefully he won't suggest you try searching too!).
Member of the Atari Legend team

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: GEM Programming

Postby DrCoolZic » Wed Aug 22, 2012 7:54 am

I have found by "accident" a documentation (paper document) about interface 2.x ;)
this documentation also includes instruction about the usage of the mydial.lib (small GEM extension)

unfortunately all the versions that I have found and downloaded are missing the mydial directory. From what I understand it is suppose to be distributed as mydial_c.tos archiv
Does anybody have either the complete mydial directory with the lib and includes or the mydial archiv

Thanks - Jean

User avatar
dhedberg
Atari Super Hero
Atari Super Hero
Posts: 584
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: GEM Programming

Postby dhedberg » Sun Jan 19, 2014 1:15 pm

I've attached the mydial_c.zip archive to a post here:
viewtopic.php?f=70&t=23858
Daniel, New Beat - http://newbeat.atari.org

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: GEM Programming

Postby DrCoolZic » Sun Jan 19, 2014 4:08 pm

thanks :cheers:


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 2 guests