|
Post by willembever on Nov 10, 2023 18:45:19 GMT
I was hoping that there would be a lot of discussions on this forum. But it's so quiet...
Wish you lots of friendly visitors.
greetings, Willem Bever
|
|
|
Post by Marco Kurvers on Nov 13, 2023 18:54:36 GMT
Hello,
Yes it is. But this is not so old. I have made new maps here. In this week, there comes new information about game programming and the programming languages.
Greetings.
|
|
|
Post by Marco Kurvers on Nov 17, 2023 15:17:15 GMT
Yes. Wim gave information about radiobuttons and groupboxes. Very interesting. He told that the reset paramter have a function that is optionally. Sometimes its useful to use it.
The coming wednesday I will ask him if he will place his example on this forum.
|
|
|
Post by willembever on Nov 21, 2023 19:13:06 GMT
Dat lijkt Wim een goed idee....
'Radiobutton test - Wim van Beek
Cijfer(0) = 1 Letter$(0) = "A" Kleur$(0) = "ROOD"
call MaakWindow
'------------------------------------------------------------------------------------ sub MaakWindow WindowWidth = 850 WindowHeight = 480
UpperLeftX = 20 UpperLeftY = 20
radiobutton #main.rad1, "", radioSet1, radioReset1, 30, 125, 25, 25 radiobutton #main.rad2, "", radioSet1, radioReset1, 30, 185, 25, 25 radiobutton #main.rad3, "", radioSet1, radioReset1, 30, 245, 25, 25 radiobutton #main.rad4, "", radioSet1, radioReset1, 30, 305, 25, 25 radiobutton #main.radA, "", radioSet2, radioReset2, 230, 125, 25, 25 radiobutton #main.radB, "", radioSet2, radioReset2, 230, 185, 25, 25 radiobutton #main.radC, "", radioSet2, radioReset2, 230, 245, 25, 25 radiobutton #main.radD, "", radioSet2, radioReset2, 230, 305, 25, 25 radiobutton #main.rdd1, "", radioSet3, radioReset3, 430, 125, 25, 25 radiobutton #main.rdd2, "", radioSet3, radioReset3, 430, 185, 25, 25 radiobutton #main.rdd3, "", radioSet3, radioReset3, 430, 245, 25, 25 radiobutton #main.rdd4, "", radioSet3, radioReset3, 430, 305, 25, 25
groupbox #main.radG, "Cijfer", 20, 95, 150, 250 groupbox #main.radL, "Letter", 220, 95, 150, 250 groupbox #main.radK, "Kleur", 420, 95, 150, 250
button #main.default, "Start", Start, UL, 630, 200, 120, 40 button #main.default, "Reset", Reset, UL, 630, 300, 120, 40
statictext #main.statA, "1", 60, 125, 90, 22 statictext #main.statB, "2", 60, 185, 90, 22 statictext #main.statC, "3", 60, 245, 90, 22 statictext #main.statD, "4", 60, 305, 90, 22 statictext #main.statE, "A", 260, 125, 90, 22 statictext #main.statF, "B", 260, 185, 90, 22 statictext #main.statG, "C", 260, 245, 90, 22 statictext #main.statH, "D", 260, 305, 90, 22 statictext #main.statI, "ROOD", 460, 125, 100, 22 statictext #main.statJ, "GROEN", 460, 185, 100, 22 statictext #main.statK, "BLAUW", 460, 245, 100, 22 statictext #main.statL, "GEEL", 460, 305, 100, 22 statictext #main.statM, "*", 30, 30, 400, 22 statictext #main.statN, "Daarna:", 630, 30, 200, 22
Open "Radiobutton oefening - v4" for window as #main #main, "trapclose Sluit" #main, "font arial 14" #main.statM, "Maak een keuze in elke kolom:"
#main.rad1, "set" #main.radA, "set" #main.rdd1, "set" wait end sub
sub Sluit handle$ CLOSE #main end end sub
Sub radioSet1 handle$ 'afhandeling radiobuttons rond/ovaal keus = 0 Txt$ = handle$ keus = val(right$(Txt$, 1)) Cijfer(0) = keus end sub
Sub radioSet2 handle$ 'afhandeling radiobuttons parameters keus$ = "-" Txt$ = handle$ keus$ = right$(Txt$, 1) Letter$(0) = keus$ end sub
Sub radioSet3 handle$ 'afhandeling radiobuttons parameters keus = 0 Txt$ = handle$ keus = val(right$(Txt$, 1)) select case keus case 0 keus$ = "ZWART" case 1 keus$ = "ROOD" case 2 keus$ = "GROEN" case 3 keus$ = "BLAUW" case 4 keus$ = "GEEL" case else keus$ = "ZWART" end select Kleur$(0) = keus$ end sub
sub Start handle$ 'afhandeling Start button print "Jouw keuze is:" print "cijfer : "; Cijfer(0) print "letter : "; Letter$(0) print "kleur : "; Kleur$(0) Print end sub
sub Reset handle$ 'afhandeling Reset button #main.rad1, "set" #main.radA, "set" #main.rdd1, "set" Cijfer(0) = 1 Letter$(0) = "A" Kleur$(0) = "ROOD" end sub
|
|
|
Post by Marco Kurvers on Nov 22, 2023 16:35:23 GMT
Een mooi voorbeeld. Iedereen kan de code kopiëren en plakken in Liberty BASIC en uitproberen.
Vragen of ideeën? Stel ze hier gerust.
Do you not speak Dutch? You can also place questions and ideas about Liberty BASIC.
More about Liberty BASIC, see the map Liberty BASIC.
|
|
|
Post by Marco Kurvers on Jan 23, 2024 20:56:45 GMT
Nou Marja, vraag maar raak.
Ik ben onderhand bezig met leuke beginners voorbeeldjes toe te voegen. Je kunt het vinden in de map Programming Languages -> Liberty BASIC -> Beginners.
|
|
|
Post by willembever on Jul 1, 2024 11:39:49 GMT
Ha, ha, als je het avatar plaatje door een ander vervangt is het oude weg! Trouwens, dan moet je de foto van mijn broer eens zien. Knappe vent hoor. Hij kijkt alleen een beetje streng.
|
|