Search found 19 matches

by diskay
Thu Nov 19, 2020 8:41 am
Forum: Bugs - IDE
Topic: purebasic IDE “Format indentation” bug
Replies: 7
Views: 7021

Re: purebasic IDE “Format indentation” bug

I've found the problem

It is located in:

https://github.com/fantaisie-software/p ... er.pb#L421



PureBasicIDE/ SourceParser.pb

line 421-430,433

Delete these lines and it's OK :D
by diskay
Sat Nov 07, 2020 1:05 am
Forum: Bugs - IDE
Topic: purebasic IDE “Format indentation” bug
Replies: 7
Views: 7021

Re: purebasic IDE “Format indentation” bug

I hope someone can see it :(
by diskay
Fri Feb 28, 2020 12:49 pm
Forum: Coding Questions
Topic: ListIcon Header centering
Replies: 1
Views: 1454

Re: ListIcon Header centering

Procedure ListIconGadget_JustifyColumn(Gadget, Item, Align.s = "left")
Protected lvc.LVCOLUMN\mask = #LVCF_FMT
Select LCase(Trim(Align))
Case "left"
lvc\fmt = #LVCFMT_LEFT
Case "right"
lvc\fmt = #LVCFMT_RIGHT
Case "center"
lvc\fmt = #LVCFMT_CENTER
Default
lvc\fmt = #LVCFMT_LEFT
EndSelect ...
by diskay
Fri Feb 14, 2020 7:19 am
Forum: Bugs - IDE
Topic: purebasic IDE “Format indentation” bug
Replies: 7
Views: 7021

purebasic IDE “Format indentation” bug

An attempt to use "Format indentation" on the following code produced strange results:

Code: Select all

a(0, 1, "你好世界!", 100)
Debug 1
It looks like this

Code: Select all

a(0, 1, "你好世界!", 100)
                 Debug 1
by diskay
Tue Sep 03, 2019 2:55 pm
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 485
Views: 198738

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

Second try:

Procedure ClearItems(GNum.i)

If FindMapElement(ListEx(), Str(GNum))

ClearList(ListEx()\Rows())

ListEx()\Row\Number = 0
UpdateRowY_()
AdjustScrollBars_()

Draw_()
EndIf

EndProcedure

It can't solve the problem.

Only in this way can we solve the problem:

Procedure ...
by diskay
Tue Sep 03, 2019 1:44 pm
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 485
Views: 198738

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

Please try:

Procedure ClearItems(GNum.i)

If FindMapElement(ListEx(), Str(GNum))
ClearList(ListEx()\Rows())
Draw_()
EndIf

EndProcedure
Does it work then?

Can't solve the problem

The problem may be that ListEx()\Row\Number, ListEx()\VScroll, ListEx()\HScroll, ClearItems haven't been ...
by diskay
Tue Sep 03, 2019 12:03 pm
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 485
Views: 198738

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

1. When using ListEx::AddItem() to add a large number of items, then clear with ListEx::ClearItems()

When you add a small number of items again, various problems occur: the items disappear, and the scrollbars are in the wrong position.

2. The scroll bar position is not updated to the correct ...
by diskay
Tue Jun 18, 2019 12:54 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] Chart - Gadget
Replies: 100
Views: 49857

Re: [Module] Chart - Gadget

Refer to the code here :)
https://github.com/mity/mctrl
Image
by diskay
Fri Mar 15, 2019 3:03 pm
Forum: Applications - Feedback and Discussion
Topic: [Modules] ListEx (all OS / DPI)
Replies: 485
Views: 198738

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

very powerful :D
Can you put it on github?
The download address is not accessible in some areas
by diskay
Wed May 09, 2018 2:44 am
Forum: Tricks 'n' Tips
Topic: module_scrollarea
Replies: 3
Views: 1856

Re: module_scrollarea

Is this very nice, can you put it on github? :D
This does not support the mouse wheel
:arrow: Translated from Google
by diskay
Wed Nov 30, 2016 6:53 pm
Forum: Coding Questions
Topic: Structure Bug,Invalid memory access.
Replies: 9
Views: 4421

Re: Structure Bug,Invalid memory access.

PureBasic 5.50 (x86)

Structure Viewer :

Structure TOKEN_PRIVILEGES
PrivilegeCount.l
Privileges.LUID_AND_ATTRIBUTES[0]
EndStructure

msdn:

typedef struct _TOKEN_PRIVILEGES {
DWORD PrivilegeCount;
LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY]; //ANYSIZE_ARRAY=1
} TOKEN_PRIVILEGES, *PTOKEN ...
by diskay
Tue Nov 22, 2016 6:46 am
Forum: Coding Questions
Topic: Structure Bug,Invalid memory access.
Replies: 9
Views: 4421

Re: Structure Bug,Invalid memory access.

Demivec ,Thank you.

I see:

Code: Select all

Structure TOKEN_PRIVILEGES
    PrivilegeCount.l
    Privileges.LUID_AND_ATTRIBUTES[0]
EndStructure
PureBasic 5.50 (Windows - x86)