Greetings all,
This may be an elementary question for those of you who are more familiar than I with PB Win 8.0 & PB Forms1.51 and the solution is probably quite simple, but I just can’t seem to figure it out. Back in the day a BASIC program to get a data string from a user and output (i.e. print) that data to the screen was simple and would look something like this:
10 get input a$
20 print a$
Problem is under Windows nothing can be that simple. If I understand correctly, once a program is coded it must be wrapped in a GUI (i.e. run within a window). So, we must create a new dialog (%IDD_DIALOG1). Then we add two textbox controls (%IDC_TEXTBOX1 and %IDC_TEXTBOX2). This much is easy enough, but how do I instruct the GUI to get UserInput$ from TEXTBOX1 then output (i.e. PRINT) UserInput$ to TEXTBOX2 ?
For example, think of a simple Instant Messenger program, chat program, or even a telnet/MUD client. All of these types of programs need to get UserInput$ from one textbox then display UserInput$ to a secondary textbox. At least, I assume this is typically done within two textboxes. Perhaps I am wrong, or maybe there is a better way of achieving the same effect.
An actual example of code is preferable to an explanation of how this can be achieved. If I have the code, the explanation should be self-evident. However, I appreciate any help you may be able to provide.
This may be an elementary question for those of you who are more familiar than I with PB Win 8.0 & PB Forms1.51 and the solution is probably quite simple, but I just can’t seem to figure it out. Back in the day a BASIC program to get a data string from a user and output (i.e. print) that data to the screen was simple and would look something like this:
10 get input a$
20 print a$
Problem is under Windows nothing can be that simple. If I understand correctly, once a program is coded it must be wrapped in a GUI (i.e. run within a window). So, we must create a new dialog (%IDD_DIALOG1). Then we add two textbox controls (%IDC_TEXTBOX1 and %IDC_TEXTBOX2). This much is easy enough, but how do I instruct the GUI to get UserInput$ from TEXTBOX1 then output (i.e. PRINT) UserInput$ to TEXTBOX2 ?
For example, think of a simple Instant Messenger program, chat program, or even a telnet/MUD client. All of these types of programs need to get UserInput$ from one textbox then display UserInput$ to a secondary textbox. At least, I assume this is typically done within two textboxes. Perhaps I am wrong, or maybe there is a better way of achieving the same effect.
An actual example of code is preferable to an explanation of how this can be achieved. If I have the code, the explanation should be self-evident. However, I appreciate any help you may be able to provide.
Comment