Search found 21 matches

by nicoh
Mon Jul 25, 2022 12:31 pm
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

Re: FillArea() inside ClipOutput() does not work

Mijikai wrote: Mon Jul 25, 2022 12:07 pm That looks like a bug , FillArea() seems not to be correctly checked against the clipping rect. :o
So someone could move this post back to "bug reports" please?

Edit: Created new bug report: https://www.purebasic.fr/english/viewtopic.php?t=79568
by nicoh
Mon Jul 25, 2022 11:06 am
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

Re: FillArea() inside ClipOutput() does not work

This works: ;A ClipOutput(248, 100, 30, 54) FillArea(277, 110, $FF0000, $FF0000) UnclipOutput() ;B ClipOutput(248, 0, 30, 46) FillArea(277, 9, $00FF00, $00FF00) UnclipOutput() But when swapping, it crashes. ;B ClipOutput(248, 0, 30, 46) FillArea(277, 9, $00FF00, $00FF00) UnclipOutput() ;A ClipOutput...
by nicoh
Mon Jul 25, 2022 9:55 am
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

Re: FillArea() inside ClipOutput() does not work

So, I added boundary checks to my programm but it still crashes with a memory error. EnableExplicit OpenWindow(0, 0, 0, 800, 800, "FillArea() Bug", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) CanvasGadget(0, 0, 0, 800, 800) If StartDrawing(CanvasOutput(0)) ClipOutput(248, 0, 30, 46)...
by nicoh
Fri Jul 22, 2022 6:39 pm
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

Re: FillArea() inside ClipOutput() does not work

Not a bug: beware of typing errors: -50 F1 ClipOutput() The (x, y) coordinates are always absolute [...] :wink: Okay, that's a calculation error in my program. The value should not be smaller then 0. I agree. But still ... there should not be a Memory Error since I don't do any memory operations?
by nicoh
Fri Jul 22, 2022 3:19 pm
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

Re: FillArea() inside ClipOutput() does not work

Hello, now I am able to reproduce the crash ! EnableExplicit OpenWindow(0, 0, 0, 400, 400, "FillArea() Bug", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) CanvasGadget(0, 0, 0, 400, 400) If StartDrawing(CanvasOutput(0)) ClipOutput(248,-50,30,54) FillArea(277,3,$FF,$FF) UnclipOutput() ...
by nicoh
Fri Jul 22, 2022 3:03 pm
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

Re: FillArea() inside ClipOutput() does not work

No Bug! From the help: [...] I know the origin (50,50) is outside the clipped area. when replacing FillArea() with Box(0, 0, 400, 400, #Blue) the inner square is still painted blue, even if the (0,0) point is outside the clipped area. Same thing when drawing lines, circles etc ... every drawing ope...
by nicoh
Fri Jul 22, 2022 2:45 pm
Forum: Coding Questions
Topic: FillArea() inside ClipOutput() does not work
Replies: 11
Views: 747

FillArea() inside ClipOutput() does not work

Hello, I guess there is a bug in FillArea() when the drawing output is clipped. EnableExplicit OpenWindow(0, 0, 0, 400, 400, "FillArea() Bug", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) CanvasGadget(0, 0, 0, 400, 400) If StartDrawing(CanvasOutput(0)) Box(0, 0, 400, 400, #Green) Cli...
by nicoh
Thu Mar 17, 2022 4:01 pm
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 471
Views: 128140

Re: [Modules] ListEx (all OS / DPI)

I fixed 2 bugs related to DPI scaling. The lines between "EDIT nicoh" and "EDIT nicoh end" have been changed from the last officially released version. 1. Add dpi(X) in GetColum_X() Procedure.i GetColumn_(X.i) If ListEx()\ScrollBar\Item("VScroll")\Hide = #False And X >=...
by nicoh
Wed Mar 16, 2022 11:55 am
Forum: Coding Questions
Topic: [DPI] DateGadget with CheckBox is not scaled correctly
Replies: 1
Views: 597

[DPI] DateGadget with CheckBox is not scaled correctly

Hi, when DPI scaling is enabled, the CheckBox of a DateGadget is not scaled correctly. When trying to reproduce this, do not forget to turn on the "DPI Aware" compiler option. OpenWindow(0, 0, 0, 150, 75, "DateGadget", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) DateGadget...
by nicoh
Tue Mar 01, 2022 9:51 am
Forum: Windows
Topic: [Win11] Custom window title color
Replies: 4
Views: 2374

Re: [Win11] Custom window title color

The example does not work on windows10, the constants used only work on windows 11 and above. I found this with the same values: Flags used by the DwmGetWindowAttribute and DwmSetWindowAttribute functions Hi, thanks for the link. According to this documentation, the DWMWA_USE_IMMERSIVE_DARK_MODE wa...
by nicoh
Tue Feb 22, 2022 9:32 pm
Forum: Windows
Topic: [Win11] Custom window title color
Replies: 4
Views: 2374

[Win11] Custom window title color

Hi, I found a way how to color the title bar of windows in Windows 11. EnableExplicit ; https://docs.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute ; The documented enumeration values are not correct !! ; I played around with the values and found the following: Enumeration...
by nicoh
Tue Feb 23, 2021 9:26 am
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 471
Views: 128140

Re: [Modules] ListEx (all OS / DPI)

Hi,

the ListEx::#EventType_Row event is not fired when navigating with up and down keys.
by nicoh
Tue Feb 16, 2021 11:17 am
Forum: Tricks 'n' Tips
Topic: Custom TreeGadget with column support, cross-platform
Replies: 30
Views: 20911

Re: Custom TreeGadget with column support, cross-platform

Bug : When items are collapsed in the tree, some of the items that follow are no longer clickable. This is because the methode _cust_tree_getItem() does not check whether an item is actually visible or not (when it's parent is collapsed, x and y should be -1 but they aren't). So it can happen that ...
by nicoh
Wed Sep 25, 2019 12:06 pm
Forum: Tricks 'n' Tips
Topic: Custom TreeGadget with column support, cross-platform
Replies: 30
Views: 20911

Re: Custom TreeGadget with column support, cross-platform

Hi, if you use the mouse wheel to scroll down, the bottom of the scroll bar will never be reached, because the scrolling stops a bit earlier. When you click or drag the scroll bar to the bottom instead, it works as expected. So, it's an issue inside your event handler. In _cust_tree_eventHandler() c...
by nicoh
Tue Sep 24, 2019 12:39 pm
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 471
Views: 128140

Re: [Modules] ListEx (all OS / DPI)

Thorsten1867 wrote:Now it should work like the ListIconGadget:
  • Shift / Ctrl + RightClick => popup menu only
  • RightClick => reset selection / change focus / popup menu
Confirmed, works very well now.

Thanks for your updates and bugfixes! :)