Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there any way to position the inputbox$ window?
#11
You can look at mpgcan's old post on inputboxes back at the archived forums where he did this win windows API calls.  It allows one to position their input box as desired on the screen.

https://qb64forum.alephc.xyz/index.php?t...#msg137585
Reply
#12
Oh cool, thanks Steve! 
But hey, wait, aren't you supposed to be taking some time off for self care??? 
Get outta here and put those feet back up!  Tongue
Reply
#13
Doing the things you love IS the best self care!

Except if you love eating ice cream.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#14
^^^ TRUTH! 

Except if said ice cream is asparagus ice cream?
Reply
#15
I also have these source codes for the inputbox from the old forum. For some unknown reason, they don't work under the QB64PE 4.0.0 32bit IDE. I checked the compatibility with the content on the old forum and it's there. Has anyone tried to compile and run it? The compilation and execution work for me, but after entering text into the inputbox and pressing enter, the program crashes every time, instead of showing the text in the program window. For this reason, I didn't put them here.


Reply
#16
(11-06-2025, 05:21 PM)Petr Wrote: I also have these source codes for the inputbox from the old forum. For some unknown reason, they don't work under the QB64PE 4.0.0 32bit IDE. I checked the compatibility with the content on the old forum and it's there. Has anyone tried to compile and run it? The compilation and execution work for me, but after entering text into the inputbox and pressing enter, the program crashes every time, instead of showing the text in the program window. For this reason, I didn't put them here.

@Petr, please send them my way and I'll troubleshoot.
The noticing will continue
Reply
#17

.zip   InputBox2.zip (Size: 9.92 KB / Downloads: 15)
@SpriggsySpriggs

You have private messages disabled. That's why I'm sending it to you in a ZIP file here. It's from 10/30/2021 and I have a working EXE file with it, but God knows what version I compiled it with at the time. Maybe QB64 1.4? Maybe. EXE file is not contained in ZIP file.


Reply
#18
mpgcan's code scares me. I'm surprised it worked at all.
The noticing will continue
Reply
#19
Yes. The code is really very complex. It crashes in this loop:

(bm file)

While GetMessageA(_Offset(msg), 0, 0, 0) > 0 ' gets a message from our application's message queue.
        dummyL = TranslateMessage(_Offset(msg)) '  performs some additional processing on keyboard events
        dummyO = DispatchMessageA(_Offset(msg)) '  sends the message out to the window that the message was sent to
Wend

Good news. In version QB64PE 32 bit 3.12.0 works as expected.


Reply
#20
Well, that's just the main loop of the Win32 GUI. So, it's just crashing somewhere in the logic he wrote for the windows themselves. Probably something to do with struct sizes or strings that aren't terminated with null characters.
The noticing will continue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 387 12-24-2025, 09:36 PM
Last Post: paulel
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,035 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 212 10-26-2025, 06:58 PM
Last Post: madscijr
  Play wav file in the background without a window on the forground Rudy M 12 1,125 09-18-2025, 07:08 PM
Last Post: Pete
  file.. open dialog window pmackay 2 397 08-31-2025, 11:27 PM
Last Post: pmackay

Forum Jump:


Users browsing this thread: 1 Guest(s)