Search found 349 matches
- Tue Mar 26, 2024 3:58 am
- Forum: Bugs - Windows
- Topic: Demo PB doesn't compile code that full version can
- Replies: 5
- Views: 525
Re: Demo PB doesn't compile code that full version can
It should probably be pointed out that the constants missing is most likely not intentional?
- Sat Mar 23, 2024 7:15 am
- Forum: Bugs - Windows
- Topic: Demo PB doesn't compile code that full version can
- Replies: 5
- Views: 525
Re: Demo PB doesn't compile code that full version can
I got it working, it was only the constants that I needed to hard code with numbers. The API commands work.
- Sat Mar 23, 2024 3:36 am
- Forum: Bugs - Windows
- Topic: Demo PB doesn't compile code that full version can
- Replies: 5
- Views: 525
Demo PB doesn't compile code that full version can
I was playing around in the demo PB and noticed this doesn't compile: Procedure SetGadgetTextVCenter(gadNum.i) ; Centers text vertically in a gadget Protected.i hdc = GetDC_(GadgetID(gadNum)) Protected.RECT eRect Protected.SIZE textXY Protected.s GadgetText = GetGadgetText(gadNum) GetTextExtentPoint...
- Thu Feb 29, 2024 10:28 pm
- Forum: Coding Questions
- Topic: Downloading webpages
- Replies: 3
- Views: 394
Re: Downloading webpages
It's alright now, I was trying to scrape some data but I found an alternative. Thanks for your help.
- Mon Feb 26, 2024 3:34 am
- Forum: Coding Questions
- Topic: Downloading webpages
- Replies: 3
- Views: 394
Downloading webpages
I have a question that I don't really know what I'm doing, so any advice you might have will be helpful. I am trying to download a website using HTTPRequest however the website I am trying to access does not send a response. I am guessing I need to send it a cookie first? Does anyone know how to dea...
- Sun Feb 25, 2024 1:02 am
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
I think you are right, I was running the thread loop at maximum speed, so probably too many
- Sat Feb 24, 2024 11:13 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
Using PostEvent causes the main window to not show the mouse when it is moved over it and I can't click anything. It also causes some of the gadgets to not display properly. Event = WaitWindowEvent(1) Select Event Case #Event_Update_Video SetGadgetState(#imgVideo, ImageID(Param\CaptureImage)) ; upda...
- Fri Feb 23, 2024 11:03 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
Thanks it works good
- Fri Feb 23, 2024 10:07 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
I have narrowed it down to this line: SetGadgetState(#imgVideo, ImageID(*Param\CaptureImage)) I'm not sure why that line interferes with events. I think what it does is it refreshes the image? I'm not actually sure, I copied the code from someone. EDIT: I moved the line to the main loop and it fixed...
- Fri Feb 23, 2024 9:57 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
I think I have found the cause, I have a video capture thread and when I disable it the problem goes away. Does anyone know why it would interefere with the events? Procedure ThreadCapture(*Param.Parameters) Protected.i x, y, Pixel, RGB *Param\Capturing = 1 Repeat doCapture(*Param\CaptureDevice) If ...
- Fri Feb 23, 2024 9:43 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
There is something wrong with my event handling because it all my gadgets don't respond to clicks at times. The loop is really simple and I don't have any event clearing. My main loop looks like this: Repeat Event = WaitWindowEvent() Select Event Case #PB_Event_Timer ... Case #PB_Event_Menu Select E...
- Fri Feb 23, 2024 9:24 am
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Close button intermittently doesn't close
Does anyone know why the close button on my app randomly doesn't close the application? Sometimes it takes a few clicks to close it.
- Thu Feb 22, 2024 12:14 pm
- Forum: Coding Questions
- Topic: Vertically center string gadget
- Replies: 5
- Views: 167
Re: Vertically center string gadget
Does that work for string gadget? Looks like it is only for text gadget
- Thu Feb 22, 2024 11:36 am
- Forum: Coding Questions
- Topic: Vertically center string gadget
- Replies: 5
- Views: 167
Re: Vertically center string gadget
Thanks I got it working. Here it is for future people: Procedure SetGadgetTextVCenter(gadNum.i) Protected.i hdc = GetDC_(GadgetID(gadNum)) Protected.RECT eRect Protected.SIZE textXY Protected.s GadgetText = GetGadgetText(gadNum) GetTextExtentPoint32_(hdc, GadgetText, Len(GadgetText), @textXY) Releas...
- Thu Feb 22, 2024 8:18 am
- Forum: Coding Questions
- Topic: Vertically center string gadget
- Replies: 5
- Views: 167
Vertically center string gadget
Can you vertically center the text in a string gadget?