Search found 1705 matches

by BarryG
Thu Oct 21, 2021 12:57 pm
Forum: Coding Questions
Topic: [Windows] - synchronize windows position
Replies: 12
Views: 1836

Re: [Windows] - synchronize windows position

I always add #SM_CXBORDER and #SM_CYBORDER: OpenWindow(0,0,0,300,200,"Main",#PB_Window_ScreenCentered|#PB_Window_SizeGadget|#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget) OpenWindow(1,0,0,100,100,"Snap") ResizeWindow(1,WindowX(0)+WindowWidth(0)+GetSyst...
by BarryG
Wed Oct 20, 2021 8:35 am
Forum: Off Topic
Topic: What are you working on?
Replies: 55
Views: 24414

Re: What are you working on?

Sorry to hear that, Kuron. Surely you have a legal claim to all her assets (including the house) due to being in a long-term de-facto relationship where intestate laws come into play? Or don't US laws work like that? I assume you've gotten legal advice about this?
by BarryG
Mon Oct 18, 2021 12:49 pm
Forum: The PureBasic Form Designer
Topic: Changing borders and backgrounds on form controls
Replies: 8
Views: 556

Re: Changing borders and backgrounds on form controls

your graphic alterations seem pretty encyclopedic You mean this single line of code to eliminate the background color? SetGadgetColor(0, #PB_Gadget_BackColor, GetSysColor_(#COLOR_3DFACE)) It's pretty easy to follow. We're just setting the background color of gadget number 0 to the system color of 3...
by BarryG
Mon Oct 18, 2021 11:21 am
Forum: Windows
Topic: [Solved] Freeing images/icons created from a procedure?
Replies: 2
Views: 234

[Solved] Freeing images/icons created from a procedure?

I've got code similar to below where images and icons are created from a procedure and given to the main code. However, there doesn't seem to be a way to free the icons when I'm done with them? So, how would you resolve the below and free the icons when done? Note: My real app doesn't quit, but just...
by BarryG
Mon Oct 18, 2021 4:57 am
Forum: Coding Questions
Topic: Change FrameGadget style with recreating it?
Replies: 4
Views: 368

Re: Change FrameGadget style with recreating it?

Okay, so I tried this but it doesn't cycle past the third change for some reason. What am I doing wrong? If OpenWindow(0, 400, 400, 320, 150, "FrameGadget", #PB_Window_SystemMenu) hWnd=FrameGadget(0, 10, 20, 300, 50, "Frame Border Test", #PB_Frame_Single) ButtonGadget(1, 10, 80, ...
by BarryG
Mon Oct 18, 2021 4:46 am
Forum: Coding Questions
Topic: StringGadget Vertical?
Replies: 43
Views: 11737

Re: StringGadget Vertical?

mk-soft wrote: Sun Oct 17, 2021 10:59 amAlternatively with a FrameGadget
Yeah, I'm currently doing it with a FrameGadget and a TextGadget over it. It works, except that I can't make the border look "disabled" like in my screenshot.
by BarryG
Mon Oct 18, 2021 4:39 am
Forum: The PureBasic Form Designer
Topic: Changing borders and backgrounds on form controls
Replies: 8
Views: 556

Re: Changing borders and backgrounds on form controls

What's a mouthful? That code? That's literally nothing. Welcome to coding!
by BarryG
Sun Oct 17, 2021 10:25 am
Forum: The PureBasic Form Designer
Topic: Changing borders and backgrounds on form controls
Replies: 8
Views: 556

Re: Changing borders and backgrounds on form controls

For Windows, do you mean something like this? If OpenWindow(0, 400, 200, 322, 60, "StringGadget", #PB_Window_SystemMenu) StringGadget(0, 8, 20, 306, 20, "Type here...", #PB_String_BorderLess) SetGadgetColor(0, #PB_Gadget_BackColor, GetSysColor_(#COLOR_3DFACE)) SetActiveGadget(0) ...
by BarryG
Sun Oct 17, 2021 8:23 am
Forum: Coding Questions
Topic: Change FrameGadget style with recreating it?
Replies: 4
Views: 368

Change FrameGadget style with recreating it?

The FrameGadget has these style flags: #PB_Frame_Single, #PB_Frame_Double, and #PB_Frame_Flat. Can these be changed at runtime without recreating the gadget?
by BarryG
Sun Oct 17, 2021 5:17 am
Forum: Coding Questions
Topic: StringGadget Vertical?
Replies: 43
Views: 11737

Re: StringGadget Vertical?

I'm trying to use Sparkie's code to center a disabled StringGadget vertically with a gadget height of 32 pixels (to match an icon next to it), using the default system font (I don't want a custom font to make this "work"). The code below doesn't center it, even if I use #ES_MULTILINE with ...
by BarryG
Sun Oct 17, 2021 2:31 am
Forum: The PureBasic Form Designer
Topic: Changing borders and backgrounds on form controls
Replies: 8
Views: 556

Re: Changing borders and backgrounds on form controls

fritzdekatt wrote: Sat Oct 16, 2021 7:39 pmI just want a borderless, colorless text input box
In the designer, or in your running app? Because you asked in the designer forum, so it sounds like this is a designer request?
by BarryG
Tue Oct 12, 2021 12:04 pm
Forum: General Discussion
Topic: Runtime errors close debug output window
Replies: 3
Views: 422

Re: Runtime errors close debug output window

@Axeman, your code doesn't close the Debug Output window for me with 5.73 LTS (x86 or 64bit). Have you got the preference "Debugger -> Kill program after an error" turned on by mistake? @Rinzwind: Freak said closing the Debug Output with "Kill" is by design -> https://www.purebas...
by BarryG
Tue Oct 12, 2021 11:58 am
Forum: Off Topic
Topic: Buyer Beware
Replies: 15
Views: 1440

Re: Buyer Beware

J. Baker wrote: Mon Oct 11, 2021 10:15 pmI actually paid through paypal
Pretty sure they'll refund you - they always side with the buyer.