QB64.org Forum

QB64 Team Software => InForm Discussion => Topic started by: SierraKen on November 11, 2019, 07:26:44 pm

Title: InForm Question
Post by: SierraKen on November 11, 2019, 07:26:44 pm
Hi all,

I just installed InForm for QB64, it's now available here: https://www.qb64.org/inform/ (https://www.qb64.org/inform/)
It lets you make buttons and text on forms kinda like Visual Basic. but now for QB64. :) I'm sure some of you have the beta version as well.
But my question is, I'm a very very newbie at using it and is there a commands page for it somewhere online? I saw they have some Wiki pages but it's very vague without much to go with except a couple of examples like the Tic-Tac-Toe and the fireworks demos, maybe 1 more. But see, I also only used Visual Basic a couple times and same with C language and other languages, so I don't know too much about this kind of command structure to implement into QB64. So far I've made 1 simple program that renames a button if you click it. I got that info from the Tic-Tac-Toe demo. But how do we know the rest of the commands, like for example renaming a different Caption from the click of a separate button? I couldn't find the right names to use in the SUB. I know what SUB to use, but have no idea on what to do inside it. I named the Caption HelloWorld and tried HelloWorld =  True when I clicked to hide it in the InForm. I also tried other ways including not hiding it and just naming it. I would really love to learn all I can but I need a place to start out from. Thanks.
Title: Re: InForm Question
Post by: FellippeHeitor on November 11, 2019, 08:23:01 pm
Hi there. Thanks for you interest in InForm.

To change a caption, you use the Caption() array. For example, to change the caption of a control named Button1 you will do:
Code: QB64: [Select]
  1. Caption(Button1) = "Desired caption"

To change the caption of a label called Label1:
Code: QB64: [Select]
  1. Caption(Label1) = "New caption"

Best way is to actually study the examples that are available in https://www.qb64.org/inform/demos/ and also in https://www.qb64.org/forum/index.php?board=13.0

The wiki is at https://github.com/FellippeHeitor/InForm/wiki

And I'm always around. Let me know how else I can assist you with InForm.
Title: Re: InForm Question
Post by: SierraKen on November 11, 2019, 08:42:26 pm
WOW I did it!!! LOL I feel like I did when I was a kid making my first Apple 2e BASIC program that said "HELLO WORLD!" Thank you! And thanks for the URL to the special forum for this. I will try to learn a lot more now as I go on. :)
Title: Re: InForm Question
Post by: FellippeHeitor on November 11, 2019, 08:44:12 pm
❤️
Title: Re: InForm Question
Post by: Qwerkey on November 12, 2019, 07:29:29 am
By the way, there is a separate section for InForm questions: the InForm section.
Title: Re: InForm Question
Post by: SierraKen on November 12, 2019, 05:36:46 pm
Yes, Felippe told me above, but thanks.