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

exxos blog - random goings on

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

Re: exxos blog - random goings on

Post by exxos »

Next problem is width=0 still shows a single black pixel line, even with no border :shrug:

Capture.PNG
Capture.PNG (1.62 KiB) Viewed 9937 times

I guess if its moved to the end border it shouldn't be visible as such...
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: 25173
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

More investigation with widths.

WIDTH=0
0.PNG
0.PNG (1.65 KiB) Viewed 9933 times

WIDTH = 1
1.PNG
1.PNG (1.6 KiB) Viewed 9933 times

WIDTH = -1
-1.PNG
-1.PNG (1.7 KiB) Viewed 9933 times

WIDTH = 2
2.PNG
2.PNG (1.86 KiB) Viewed 9933 times

So WIDTH = 0 is actually 2 pixels wide :shock: :shrug:

So using WIDTH=1 and moving it to the right border..

yay.PNG
yay.PNG (1.73 KiB) Viewed 9933 times

Now means the black bar is now hidden as I wanted!

I see this "trick" might not work with the red bar when I need to hide it though :roll:

I guess I only need 1 box, if I can make it red or black "on the fly" then I wouldn't need to mess about as much.
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: 25173
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Ahhhh

IMG_0373.JPG
IMG_0373.JPG (303.22 KiB) Viewed 9902 times

I just debugged the red and black boxes and got this.

Code: Select all

 4594
 4593
So as RED and BLACK are only 1 number different it tallies. So I can in fact do away with having separate red and black boxes!
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: 25173
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Anyone work this one out, It worked in GB6, but converting to the new routines I have confused myself :roll:

There is basically two sets of calculations. Want to draw the red bar which will always be smaller than 100%.

Code: Select all

x=120 /100 * R
Where X is the width of the boxing pixels. And R is the result which would be 50% for example. I think that works fine...

I have the problem of when it is higher than 100%. IE 400%

So the calculation I had is:

Code: Select all

x=100 / 400 * 120 = 30
So 30 been the difference is probably about right I think. However the calculation should really be outputting the opposite like 70. :shrug:

EDIT:

Think it's supposed to be more like this.

Code: Select all

	x=100 / r& * 120
	xx=120 - x
EDIT2:

Yep that looks more realistic now .

400.PNG
400.PNG (128.76 KiB) Viewed 9877 times
200.PNG
200.PNG (144.09 KiB) Viewed 9877 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: 25173
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Now the red is behaving now as well.

Code: Select all

	x=120 /100 * r&
	xx=120 - x
25.PNG
25.PNG (151.14 KiB) Viewed 9874 times
50.PNG
50.PNG (157.66 KiB) Viewed 9874 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: 25173
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

8-)

So no more VDI box drawing calls :D

1.PNG
1.PNG (159.39 KiB) Viewed 9861 times
2.PNG
2.PNG (170.16 KiB) Viewed 9861 times
3.PNG
3.PNG (163.31 KiB) Viewed 9861 times
4.PNG
4.PNG (162.96 KiB) Viewed 9861 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: 25173
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Next problem is that objects do not scale automatically :roll:

I'm sure I read something about drawing modes and scaling somewhere one of these books the other day.:shrug: But saying that why can't other objects affected :roll:

Capture.PNG
Capture.PNG (90.08 KiB) Viewed 9852 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: 113
Joined: Wed Oct 13, 2021 8:37 pm

Re: exxos blog - random goings on

Post by Roberto »

exxos wrote: Mon Jan 02, 2023 5:01 pm Next problem is that objects do not scale automatically :roll:

I'm sure I read something about drawing modes and scaling somewhere one of these books the other day.:shrug: But saying that why can't other objects affected :roll:
Hi @exxos, so would you like to automatically resize and fit all your work to the set resolution? If so, I guess you have to do it by hand, calculating the right proportions (for the objects) for each resolution. For the most part, when I got into VDI calls and so on, I didn't see any handy feature that would allow me to rework objects other than resizing them one by one.

Then I advise you to use interface v2.30 for managing the drop-down menus and managing the graphical GUI. It seems to me the only one reliable enough with less bugs.
User avatar
exxos
Site Admin
Site Admin
Posts: 25173
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 5:12 pm Hi @exxos, so would you like to automatically resize and fit all your work to the set resolution? If so, I guess you have to do it by hand, calculating the right proportions (for the objects) for each resolution. For the most part, when I got into VDI calls and so on, I didn't see any handy feature that would allow me to rework objects other than resizing them one by one.
I think you're supposed to have different RSC files for medium and high resolution for example. But as the main window seems to be basically okay then I am not too worried about it.

I may have to just bodge the box sizes based on the vertical resolution or something.

Roberto wrote: Mon Jan 02, 2023 5:12 pm Then I advise you to use interface v2.30 for managing the drop-down menus and managing the graphical GUI. It seems to me the only one reliable enough with less bugs.
I do use interface 2.30. It is a bit more user-friendly than WERKS. However interface tends to crash a lot and seems to be some mutant version between German and English.
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: 113
Joined: Wed Oct 13, 2021 8:37 pm

Re: exxos blog - random goings on

Post by Roberto »

exxos wrote: Mon Jan 02, 2023 5:57 pm
I think you're supposed to have different RSC files for medium and high resolution for example. But as the main window seems to be basically okay then I am not too worried about it.

I may have to just bodge the box sizes based on the vertical resolution or something.
Yes, a .RSC should be done for each resolution, if you are expecting windows or object sizes that won't fit for each resolution.
exxos wrote: Mon Jan 02, 2023 5:57 pm I do use interface 2.30. It is a bit more user-friendly than WERKS. However interface tends to crash a lot and seems to be some mutant version between German and English.
I tried WERCS and RCP program but they don't work well at all, both on Hatari and on real machines. Let's say Interface is the least worst :D

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.
Screenshot 2023-01-02 alle 19.24.10.png
Screenshot 2023-01-02 alle 19.24.10.png (297.9 KiB) Viewed 9875 times
GRPMOUSE.zip
(189.05 KiB) Downloaded 53 times
Post Reply

Return to “MEMBER BLOGS”