61
Programs / Re: and another one for your toolbox...
« on: April 03, 2022, 10:48:58 pm »
Hey while we have this thread pulled down from a year ago, let's get this one posted too!
MessageBox function:
Thank you Fellippe! Very lightweight in terms of LOC.
MessageBox function:
Code: QB64: [Select]
- ' Thank you FellippeHeitor!
- ' answer = MessageBox(0, "Hi, bplus. You can do this.", "This is platform-agnostic", 0)
- m$ = "Message: press OK to return 1, press Cancel to return 2."
- answer = MessageBox(0, m$, "Test MessageBox", 4097) ' 4097 for OK = 1 Cancel = 2 Modal on top messagebox
- temp = MessageBox(0, "OK was pressed.", "Test MessageBox", 4096)
- temp = MessageBox(0, "Cancel was pressed.", "Test MessageBox", 4096)
Thank you Fellippe! Very lightweight in terms of LOC.