GEM Dialogs in Windows

GFA BASIC-related articles in here please

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

AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

GEM Dialogs in Windows

Post by AtariX »

Hello,

Besides FaceValue, is there a good GFA BASIC library or generic reference code to display and handle non-modal GEM dialogs in windows incl. handling buttons, edit fields, redraws, etc. without having to write the boilerplate code again ? A sort of equivalent to WDIALOG I guess.

Thanks
ThorstenOtto
Atari God
Atari God
Posts: 1521
Joined: Sun Aug 03, 2014 5:54 pm

Re: GEM Dialogs in Windows

Post by ThorstenOtto »

Sources of Wdialog are available, if you think you can use them. There are also other libraries like sys_gem2 and windom that may help, but they are all written in C.
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Thanks Otto !

I was wondering if there was a simple equivalent written in GFA BASIC. I assume it is not the case then.
Playmobil
Captain Atari
Captain Atari
Posts: 223
Joined: Fri Nov 13, 2015 7:40 pm

Re: GEM Dialogs in Windows

Post by Playmobil »

Look about GFAFLY... Good library in GFA Basic...
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2576
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: GEM Dialogs in Windows

Post by lp »

There's also sources of Enchant GEM toolkit for HiSoft BASIC. Might give you some ideas. Can be found at devdocs.
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Many thanks for your advices !

GFA FLY is what I was looking for. It does much more than simply flying dialogs, it is able to display manage dialogs in windows, drop down lists, popup menus, etc. Great !
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

According to the documentation of GFA FLY, seems there is an extended version that supports additional features E.g. color icons, XRSC. I only found the normal version so far. Does anyone have the extended one ?
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2576
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: GEM Dialogs in Windows

Post by lp »

It would help to know what version you found.
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: GEM Dialogs in Windows

Post by charles »

try gfa fly first .....I believe my source was corrupt
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Hello,

I have versions 4.8 and 4.9/5.0.
https://docs.dev-docs.org/htm/search.php?find=Fly
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2576
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: GEM Dialogs in Windows

Post by lp »

I put those on the sight a while back. ;)
Only ones I could find.
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

I found the extended (registered version) here :
https://github.com/ggnkua/Atari_ST_Sour ... Y_DIAL.REG
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Note : this is an extension of the normal version, not a full replacement I believe.
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2576
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: GEM Dialogs in Windows

Post by lp »

I would agree it looks like an add-on of sorts. Doesn't seem to be a simple way to zip up just the one directory. Nice find nonetheless.
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Easier to download just a directory from the gitlab clone :
https://gitlab.com/ggnkua/Atari_ST_Sour ... Y_DIAL.REG
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Attached
You do not have the required permissions to view the files attached to this post.
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2576
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: GEM Dialogs in Windows

Post by lp »

Cheers for that. :cheers:
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Massive repository there by the way, but you’re certainly aware already.

https://gitlab.com/ggnkua/Atari_ST_Sour ... ee/master/
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: GEM Dialogs in Windows

Post by charles »

I got two view working and the other one ....are these for use on TT ? I just been hacking it for use on a plain 1.02 stock machine
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
penguin
Captain Atari
Captain Atari
Posts: 223
Joined: Tue Dec 24, 2013 10:43 am

Re: GEM Dialogs in Windows

Post by penguin »

Back in the day I started with GFA_FLYD by Gregor Duchalski and then later switched to faceVALUE. FV is far more powerful and has plenty of demo applications. I also have various GFA applications with sources included on my website. Most are very simple: https://mia-jaap.de/software
AtariUpToDate - Atari ST/TT/Falcon software database and version tracker: https://www.atariuptodate.de
ST-Computer magazine - https://www.st-computer.org/
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: GEM Dialogs in Windows

Post by charles »

I might be overly creative and missed some abilities of fly dial , but what really does fly dial do as a main objective ?
make rsc files on the fly?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

GFA_FLY4 is a basic GFA framework/library that enables your program to easily display and manage modal dialogs with advanced features such as movable dialogs, in window dialogs, extended GEM objects like cross, round radio buttons, drop down menus, keyboard shortcuts. etc. Without having to write the code to handle all that.

Definitely less comprehensive and powerful than FaceValue, but a nice basic GFA GEM framework nevertheless.
AtariX
Atari freak
Atari freak
Posts: 51
Joined: Fri Jan 17, 2020 7:00 am

Re: GEM Dialogs in Windows

Post by AtariX »

Sample dialog
You do not have the required permissions to view the files attached to this post.
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: GEM Dialogs in Windows

Post by charles »

Ive tried 1000 times...
No where does it generate code for dialog menu popup or window boxes

Shoild i be using some other source file than gfa fly4 ?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
penguin
Captain Atari
Captain Atari
Posts: 223
Joined: Tue Dec 24, 2013 10:43 am

Re: GEM Dialogs in Windows

Post by penguin »

No, you should start at the beginning and read the manual. No library is going to generate all the code for you, not even faceValue.
AtariUpToDate - Atari ST/TT/Falcon software database and version tracker: https://www.atariuptodate.de
ST-Computer magazine - https://www.st-computer.org/
Post Reply

Return to “GFA BASIC”