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.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.
You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
See here for more information viewtopic.php?f=20&t=7296
exxos blog - random goings on
Re: exxos blog - random goings on
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.
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.
Re: exxos blog - random goings on
Been fighting with this error for the past couple of hours
Turns out my antivirus suddenly decided to not allow steem to write files to my hard drive

Even more annoying as it is not even logged in the log files

Turns out my antivirus suddenly decided to not allow steem to write files to my hard drive



Even more annoying as it is not even logged in the log 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.
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.
Re: exxos blog - random goings on
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...
I would think because of the 3D effect that it is skewing the sizes slightly in MiNT.
So a quick hack up to use that box as the reference size...
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.
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.
Re: exxos blog - random goings on
What a faff!
So make the box 3px smaller and move it down 1px to get it to behave in XaAES
Now the comparison bars are the same size as the text in both environments
Next up - to fix the ABOUT box.
So make the box 3px smaller and move it down 1px to get it to behave in XaAES

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

Next up - to fix the ABOUT box.
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.
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.
Re: exxos blog - random goings on
ABOUT BOX now fixed.. onto the next thing..
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.
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.
Re: exxos blog - random goings on
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

Re: exxos blog - random goings on
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.
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.
Re: exxos blog - random goings on
Started my cookie jar reader code today

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.
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.
Re: exxos blog - random goings on
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
https://freemint.github.io/tos.hyp/en/b ... iejar.html
Anyway, will remove it all.
The current size was 148K with "manufacture" in the text and now 140K. Oh well.
There are a couple of oddball characters which are not translating well from HTML either.
Not sure if they are the proper characters or not. So will just disable those lines for now.
Anyway. Now the cookie list is:
Getting there!

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
The current size was 148K with "manufacture" in the text and now 140K. Oh well.

There are a couple of oddball characters which are not translating well from HTML either.
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!
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.
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.
Re: exxos blog - random goings on
The next problem is processing even more AES redraw messages when there are 2 windows open
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.
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.

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.
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.
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.