exxos blog - random goings on

Blogs & guides and tales of woo by forum members.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Roberto wrote: Mon Jan 02, 2023 6:25 pm I haven't found many C sources for Atari (which have a GUI part) around, other than Peter P.
If it's convenient for you, I'll leave you a source code written in Lattice C that I wrote at the beginning of last year. Maybe you find something interesting that you can adapt to your work (I see you are struggling with how to make an object child of a particular window). There is also the program already compiled.
Thanks. Any examples are normally useful at some point. I am clueless with C-code though. My GUI is in HISOFT BASIC and the CPU related routines are done in assembly.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Been fighting with this error for the past couple of hours :roll:

Capture.PNG
Capture.PNG (100.37 KiB) Viewed 5121 times

Turns out my antivirus suddenly decided to not allow steem to write files to my hard drive :pullhair: :cussing: :cussing:
Even more annoying as it is not even logged in the log files :roll:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

It seems the height of the box which just says TEST is 8px in medium resolution, and 16px in MiNT.

So a quick hack up to use that box as the reference size...

111.PNG
111.PNG (154.54 KiB) Viewed 5119 times
222.PNG
222.PNG (81.58 KiB) Viewed 5119 times

I would think because of the 3D effect that it is skewing the sizes slightly in MiNT.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

What a faff!

So make the box 3px smaller and move it down 1px to get it to behave in XaAES :roll:

Code: Select all

IF GET_MINT% = 1 THEN
'if MINT then make the box 2 px smaller and move it down 1px also..what a bloody faff!
JUNK=JUNK-6
Setob_height BACKBOX1%,junk
Setob_height BACKBOX2%,junk
Setob_height BACKBOX3%,junk
Setob_height REDBOX1%,junk
Setob_height REDBOX2%,junk
Setob_height REDBOX3%,junk

yoffset=getob_y(BACKBOX1%)'get current sizes
Setob_y BACKBOX1%,yoffset+1
Setob_y REDBOX1%,yoffset+1

yoffset=getob_y(BACKBOX2%)'get current sizes
Setob_y BACKBOX2%,yoffset+1
Setob_y REDBOX2%,yoffset+1

yoffset=getob_y(BACKBOX3%)'get current sizes
Setob_y BACKBOX3%,yoffset+1
Setob_y REDBOX3%,yoffset+1

ELSE
'TOS - nice and simple
JUNK=JUNK-3
Setob_height BACKBOX1%,junk
Setob_height BACKBOX2%,junk
Setob_height BACKBOX3%,junk
Setob_height REDBOX1%,junk
Setob_height REDBOX2%,junk
Setob_height REDBOX3%,junk

END IF

Now the comparison bars are the same size as the text in both environments :thumbup:

a.PNG
a.PNG (134.89 KiB) Viewed 5112 times
b.PNG
b.PNG (72.69 KiB) Viewed 5112 times

Next up - to fix the ABOUT box.

Capture.PNG
Capture.PNG (90.75 KiB) Viewed 5105 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

ABOUT BOX now fixed.. onto the next thing..

Capture.PNG
Capture.PNG (121.13 KiB) Viewed 5090 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Roberto
Posts: 105
Joined: Wed Oct 13, 2021 8:37 pm

Re: exxos blog - random goings on

Post by Roberto »

Ah well! I'm happy that even in HIsoft Basic you have to resize each object to fit them on windows with different resolutions :-) I thought that with only C language there were these problems. But does that HiSoft BAsic have a compiler? I've never used it
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Roberto wrote: Tue Jan 03, 2023 11:38 am Ah well! I'm happy that even in HIsoft Basic you have to resize each object to fit them on windows with different resolutions :-) I thought that with only C language there were these problems. But does that HiSoft BAsic have a compiler? I've never used it
I think it is really just a "limit" of the operating system.

Indeed it has a compiler otherwise would not be able to create PRG files :)
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Started my cookie jar reader code today :D

Capture.PNG
Capture.PNG (5 KiB) Viewed 5049 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Started the cookie list and basically done. Though I now think I should have not put the author information in as text alone ends up being over 50K :roll:

https://freemint.github.io/tos.hyp/en/b ... iejar.html

Code: Select all

_CPU          1E            Atari Corporation,Central Processor Unit type
_FPU          60000         Atari Corporation,Floating Point Unit type
_VDO          30000         Atari Corporation,Video hardware
_MCH          30000         Atari Corporation,Machine type
_SWI          BF            Atari Corporation,Configuration Switches
_SND          17            Atari Corporation,Sound hardware
_FRB          12F24         Fast-RAM Buffer
_IDT          112E          Atari Corporation,International Date/Time format
_FDC          1415443       Atari Corporation (Standardcookie),Disk drive type
XHDI          104DCE4       Diverse (Standardcookie),XHDI driver
_ISO          0             specifies the real keyboard/font nationality
MiNT          113           Eric Smith Atari Corporation,Mint/MultiTOS
_FLK          100           Atari Corporation (Standardcookie),File Locking extension
_AKP          0             Atari Corporation,Keyboard/Language configuration
EUSB          2FD82F0       Ethernet USB API exported by inet4
nAES          1089C00       Jens Hiescher Rainer Mannigel Woller Systeme,N.AES the AES for MiNT
Anyway, will remove it all.

The current size was 148K with "manufacture" in the text and now 140K. Oh well. :roll:

There are a couple of oddball characters which are not translating well from HTML either.

1.PNG
1.PNG (4.2 KiB) Viewed 5024 times
2.PNG
2.PNG (2.59 KiB) Viewed 5024 times

Not sure if they are the proper characters or not. So will just disable those lines for now.

Anyway. Now the cookie list is:

Code: Select all

_CPU          1E            Central Processor Unit type
_FPU          60000         Floating Point Unit type
_VDO          30000         Video hardware
_MCH          30000         Machine type
_SWI          BF            Configuration Switches
_SND          17            Sound hardware
_FRB          12F24         Fast-RAM Buffer
_IDT          112E          International Date/Time format
_FDC          1415443       Disk drive type
XHDI          104DCE4       XHDI driver
_ISO          0             specifies the real keyboard/font nationality
MiNT          113           Mint/MultiTOS
_FLK          100           File Locking extension
_AKP          0             Keyboard/Language configuration
EUSB          2FD82F0       Ethernet USB API exported by inet4
nAES          1089C00        the AES for MiNT

Getting there!

Capture.PNG
Capture.PNG (54.26 KiB) Viewed 5018 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

The next problem is processing even more AES redraw messages when there are 2 windows open :roll:

Even though the window IDs are different the redraw routine is still somehow managing to get confused as it does not update the main GB7 window correctly.

The square box on the left does not process any messages whatsoever at the moment.

1.PNG
1.PNG (90.77 KiB) Viewed 5016 times
2.PNG
2.PNG (99.17 KiB) Viewed 5016 times

So now not sure where the redraw events are going wonky. Though I guess there is no real need to keep the main window open while displaying the second window, which will become the "INFO BOX" window anyway.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “MEMBER BLOGS”