Page 250 of 336

Re: exxos blog - random goings on

Posted: 02 Jan 2023 18:45
by exxos
Roberto wrote: 02 Jan 2023 18:25 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.

Re: exxos blog - random goings on

Posted: 02 Jan 2023 19:19
by exxos
Been fighting with this error for the past couple of hours :roll:

Capture.PNG

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:

Re: exxos blog - random goings on

Posted: 02 Jan 2023 19:33
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
222.PNG

I would think because of the 3D effect that it is skewing the sizes slightly in MiNT.

Re: exxos blog - random goings on

Posted: 02 Jan 2023 20:00
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
b.PNG

Next up - to fix the ABOUT box.

Capture.PNG

Re: exxos blog - random goings on

Posted: 02 Jan 2023 21:50
by exxos
ABOUT BOX now fixed.. onto the next thing..

Capture.PNG

Re: exxos blog - random goings on

Posted: 03 Jan 2023 11:38
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

Re: exxos blog - random goings on

Posted: 03 Jan 2023 11:40
by exxos
Roberto wrote: 03 Jan 2023 11:38 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 :)

Re: exxos blog - random goings on

Posted: 03 Jan 2023 13:57
by exxos
Started my cookie jar reader code today :D

Capture.PNG

Re: exxos blog - random goings on

Posted: 03 Jan 2023 16:07
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
2.PNG

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

Re: exxos blog - random goings on

Posted: 03 Jan 2023 19:50
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
2.PNG

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.