Memory Game

Post

Posted
Rating:
#1 (In Topic #1981)
Avatar
Enthusiast
Yogi is in the usergroup ‘Enthusiast’
Hi folks,

After playing cogier Wordsearch there was the idea to give some attention to
an old game "Memory", which I now play with my grand children.
You know, find pairs of pictures.

We usually play in pairs, but here you're not playing against the app,
you're playing against the clock.😇

As pictures I used the stock icons of gambas 128x128 px.

I couldn't find a reasonable solution to make the form fit the playing field,
as it is created on the fly.

So I gave it a fixed height. Does anyone have any ideas for the flexible height?

Image

Screenshot 2025-12-19.jpg

Screenshot 2025-12-19.jpg

Attachment

Memory-0.0.2.tar.gz



Regards
Yogi

Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
cogier is in the usergroup ‘GambOS Contributor’
The way I would do this is to put 10 rows (HBoxes) of 10 Buttons. Have a look at the attached program. You can resize the form horizontally and vertically.



Attachment

MemoryCO-0.0.1.tar.gz

Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Enthusiast
Yogi is in the usergroup ‘Enthusiast’

cogier said

The way I would do this is to put 10 rows (HBoxes) of 10 Buttons. Have a look at the attached program. You can resize the form horizontally and vertically.

Dear cogier ,

Thanks for pointing me in the right direction. I already used the 10 HBoxes, but - I don't know why -
I put them in a separate container. Even used the form arrangement.vertical.

So the solution was just removing the container and it works as expected…
(struggling again with the containers)

Big thanks! 👍
Kind regards
Yogi

Attachment

Memory-0.0.3.tar.gz

Online now: No Back to the top
1 guest and 0 members have just viewed this.