Search found 1140 matches

by Seymour Clufley
Mon Jan 22, 2024 11:16 pm
Forum: Feature Requests and Wishlists
Topic: Default taskbar behavior for borderless windows
Replies: 6
Views: 654

Re: Default taskbar behavior for borderless windows

freak wrote: Sun Jan 21, 2024 2:40 pm There are a lot of uses for borderless windows where a taskbar button is not desired. For example the AutoComplete window in the IDE.
Sure, but what's the point of having a taskbar button, but it doesn't work in the normal way? Wouldn't it be better to either have a taskbar button or not have it?
by Seymour Clufley
Fri Jan 19, 2024 7:40 pm
Forum: Coding Questions
Topic: Borderless window but taskbar behaves as normal?
Replies: 6
Views: 671

Re: Borderless window but taskbar behaves as normal?

I agree, the taskbar button should behave consistently. And this behaviour is normal, so I'm sure most people would want it for their programs.
by Seymour Clufley
Thu Jan 18, 2024 8:39 pm
Forum: Coding Questions
Topic: Borderless window but taskbar behaves as normal?
Replies: 6
Views: 671

Re: Borderless window but taskbar behaves as normal?

That's perfect, Chris. Thank you very much.
by Seymour Clufley
Thu Jan 18, 2024 11:32 am
Forum: Coding Questions
Topic: Monitoring errors in the WebViewGadget?
Replies: 3
Views: 555

Re: Monitoring errors in the WebViewGadget?

Hopefully this will be added for PB's native WebViewGadget.
by Seymour Clufley
Thu Jan 18, 2024 11:31 am
Forum: Coding Questions
Topic: Borderless window but taskbar behaves as normal?
Replies: 6
Views: 671

Borderless window but taskbar behaves as normal?

On Windows, the default behaviour is that clicking on an app in the taskbar will toggle the app's window size. If it is minimised, it will maximise. If it is maximised, it will minimise. With PB, in order to have this default behaviour, you need to add the minimise gadget: win = OpenWindow(#PB_Any,0...
by Seymour Clufley
Fri Jan 12, 2024 9:01 pm
Forum: Coding Questions
Topic: Basic JSON stuff
Replies: 2
Views: 456

Re: Basic JSON stuff

That's perfect, Spikey. Thank you very much.
by Seymour Clufley
Fri Jan 12, 2024 5:20 pm
Forum: Coding Questions
Topic: Basic JSON stuff
Replies: 2
Views: 456

Basic JSON stuff

I'm struggling to get to grips with the JSON library. Let's say that I have a JSON like this: [ "saveObject", "task8nv7a6o", "{\"text\":\"tedrt227\",\"project\":\"projpfrzfw5\",\"sequel\":[],\"dl_created\":\"20...
by Seymour Clufley
Fri Jan 12, 2024 4:53 pm
Forum: Coding Questions
Topic: Monitoring errors in the WebViewGadget?
Replies: 3
Views: 555

Monitoring errors in the WebViewGadget?

I love the new WebViewGadget, but one thing that is missing is the ability to track anything going wrong in the javascript. In a browser, this kind of thing is reported in the console. Is there any way, or will be there be any way, to access this in the WebViewGadget?
by Seymour Clufley
Tue Oct 24, 2023 2:39 am
Forum: Coding Questions
Topic: Vector drawing: grab rotated rectangle from image
Replies: 2
Views: 291

Re: Vector drawing: grab rotated rectangle from image

A useful helper function: Procedure.i GrabImageRotatedCentredAt(simg.i,nimg.i,cx.d,cy.d,w.d,h.d,rot.d) radia.d = Radian(rot-180) ncx.d = (Cos(radia)*(w/2))+cx ncy.d = (Sin(radia)*(w/2))+cy radia.d = Radian(rot-90) ncx2.d = (Cos(radia)*(h/2))+ncx ncy2.d = (Sin(radia)*(h/2))+ncy ProcedureReturn GrabIm...
by Seymour Clufley
Tue Oct 24, 2023 2:22 am
Forum: Coding Questions
Topic: Vector drawing: grab rotated rectangle from image
Replies: 2
Views: 291

Re: Vector drawing: grab rotated rectangle from image

Ah! I managed it. Procedure.i GrabImageRotated(source_img.i,new_img.i,x.d,y.d,w.d,h.d,rot.d) img.i = CreateImage(new_img,w,h,32,#PB_Image_Transparent) If Not img ProcedureReturn #False EndIf StartVectorDrawing(ImageVectorOutput(img)) RotateCoordinates(0,0,-rot) MovePathCursor(-x,-y) DrawVectorImage(...
by Seymour Clufley
Tue Oct 24, 2023 12:44 am
Forum: Coding Questions
Topic: Vector drawing: grab rotated rectangle from image
Replies: 2
Views: 291

Vector drawing: grab rotated rectangle from image

If I have the required x, y, width, height and rotation angle, is there a way to do GrabImage() but with the Vector Drawing library, to create a new image that is the required section, "unrotated"?