Search found 1087 matches

by ChrisR
Fri Mar 08, 2024 4:19 pm
Forum: Coding Questions
Topic: Can a structure be defined dynamically by csv headers
Replies: 24
Views: 943

Re: Can a structure be defined dynamically by csv headers

Nicely done with sqlite and probably the most appropriate way for csv Another possible way without using sqllite: CompilerIf #PB_Compiler_IsMainFile EnableExplicit CompilerEndIf Structure MyFieldTable Array Field$(0) EndStructure Global NewList MyTable.MyFieldTable() ; mk-soft SplitString to List or...
by ChrisR
Thu Mar 07, 2024 10:29 pm
Forum: Tricks 'n' Tips
Topic: Object Theme Library (for Dark or Light Theme)
Replies: 44
Views: 5145

Re: Object Theme Library (for Dark or Light Theme)

Yes, I'm aware that nothing has been done for the Menu, ToolBar and StatusBar. For ToolBar, it uses the window's background color but keeps the default black text color, which isn't great at all for a dark background. If anyone tells me how to paint the Menu, ToolBar or StatusBar, I'll be happy to a...
by ChrisR
Thu Mar 07, 2024 9:30 pm
Forum: General Discussion
Topic: AddElement() behaviour
Replies: 15
Views: 642

Re: AddElement() behaviour

My 'fix': Use LastElement() before using AddElement() On my side, I do it with If AddElement(List()) : MoveElement(List(), #PB_List_Last) It would be nice to have the MoveElement() flags available in AddElement(List()[, Location]) with Location = #PB_List_First, #PB_List_Last, #PB_List_Before, #PB_...
by ChrisR
Thu Mar 07, 2024 4:14 pm
Forum: Applications - Feedback and Discussion
Topic: IceDesign GUI designer
Replies: 575
Views: 142010

Re: IceDesign GUI designer

IceDesign has been updated in version 2.0.3 For Multi-Window support, change "Window Name To Var/#Const" setting option, by removing #Windows and adding #Gadget, #Imag or #Font, I mean: #Windows_Main -> #Gadget_Main_Button, #Gadget_Main_CheckBox -> #Imag_Main_ImageName -> #Font_Main_Arial...
by ChrisR
Thu Mar 07, 2024 12:48 pm
Forum: Tricks 'n' Tips
Topic: Object Theme Library (for Dark or Light Theme)
Replies: 44
Views: 5145

Re: Object Theme Library (for Dark or Light Theme)

Hi jacdelad, Thank you for your interest, it's a bit difficult here these days... ObjectTheme should also be compatible with the Dialog library. When calling SetObjectTheme(), gadgets are retrieved with PB_Object_Enumerate. For dynamic windows, SetObjectTheme() must be called after each new OpenXMLD...
by ChrisR
Thu Mar 07, 2024 12:29 pm
Forum: Off Topic
Topic: Windows 11 is now supported in Win10XPE project
Replies: 3
Views: 8749

Re: Windows 11 is now supported in Win10XPE project

Hi karam, I don't really want to support Win10XPE here, it was just an ad here but it's really off topic on PureBasic forum. The script was written for an earlier version of AOMEI Partition Assistant and there are a few changes in the latest version. You can find the updated "AOMEI Partition As...
by ChrisR
Mon Mar 04, 2024 8:13 pm
Forum: Coding Questions
Topic: 6.10 Beta7 CustomFilterCallback()
Replies: 2
Views: 152

Re: 6.10 Beta7 CustomFilterCallback()

I'm running late and I've just read Fred's reply here The callback definition is wrong, I added stricter debugger check for this so it's easy to spot on and updated the doc as both color needs to be defined as '.l' (long). It has worked without the need to define the color type in previous version a...
by ChrisR
Mon Mar 04, 2024 7:50 pm
Forum: Coding Questions
Topic: 6.10 Beta7 CustomFilterCallback()
Replies: 2
Views: 152

6.10 Beta7 CustomFilterCallback()

The CustomFilterCallback() help example crash with PB 6.10 beta 7 Windows x64 with Debugger On, it worked without the debugger, also with beta 7 x86 or with beta 6.
CustomFilterCallback(): The Procedure specified in '@Callback()' does not have the required argument or returntype.
by ChrisR
Sat Mar 02, 2024 3:37 pm
Forum: Applications - Feedback and Discussion
Topic: IceDesign GUI designer
Replies: 575
Views: 142010

Re: IceDesign GUI designer

The splitter is indeed not so easy to select, the 2 children take up almost all the space, it remains the splitter size itself, of 7 px, between the 2 children gadgets. It should be 4 px without the #PB_Splitter_Separator flag but I keep the 7 px size in IceDesign to see and select it more easily. W...
by ChrisR
Sat Mar 02, 2024 1:58 pm
Forum: Applications - Feedback and Discussion
Topic: IceDesign GUI designer
Replies: 575
Views: 142010

Re: IceDesign GUI designer

Hi Storck, Yes, "proportional size for all gadgets" option is the solution for automatic resizing. Note that the Splitter is resized by the code but not the 2 child gadgets, which are automatically resized, internally by the splitter. And you'll notice that the positions and dimensions of ...
by ChrisR
Fri Mar 01, 2024 5:31 pm
Forum: Applications - Feedback and Discussion
Topic: IceDesign GUI designer
Replies: 575
Views: 142010

Re: IceDesign GUI designer

IceDesign has been updated in version 2.0.2 Added the SplitterGadget, All PureBasic Gadgets are now supported :) It wasn't really easy to add it and I push my ass to do it but cool, glad I did it now 8) The 2 child gadgets are locked and resized along with the Splitter (with a little blinking) and ...
by ChrisR
Thu Feb 29, 2024 5:29 pm
Forum: Applications - Feedback and Discussion
Topic: IceDesign GUI designer
Replies: 575
Views: 142010

Re: IceDesign GUI designer

Hi le_magn, Sorry for the late reply, I'm quite busy at the moment. I don't have this and I don't really see how it could be done! How to know what to keep and what to replace when creating code! I don't have gnozal's PureForm. Maybe it could help me to see and understand what is done. If you have a...
by ChrisR
Wed Feb 14, 2024 4:23 pm
Forum: Feature Requests and Wishlists
Topic: Less paint & events for the SplitterGadget
Replies: 0
Views: 266

Less paint & events for the SplitterGadget

It seems that some redrawing and event sending are done for the Splitter Gadget even without changing the Splitter position (same Gadget state), they seem superfluous and cause flashing. Including when the cursor is beyond the minimum position (MinimumSize or 0) or maximum position(GadgetWidth-Separ...
by ChrisR
Tue Feb 13, 2024 11:58 pm
Forum: Tricks 'n' Tips
Topic: DEfliker Splitter with a child ScrollArea
Replies: 4
Views: 446

Re: DEfliker Splitter with a child ScrollArea

Re, I think you've got it right, that's it, replace the first or second or both of the splitter's child gadgets with image(s) that prevent flickering. The example with the left side flickering is only for demonstration purposes, to show the difference between the 2 sides. By clicking on one of the 2...
by ChrisR
Tue Feb 13, 2024 5:09 pm
Forum: Tricks 'n' Tips
Topic: DEfliker Splitter with a child ScrollArea
Replies: 4
Views: 446

Re: DEfliker Splitter with a child ScrollArea

Hi Jacdelad, I'll see if I can make a pbi. It will probably have 2 functions, one for Bindevent and one for the event loop. For now, I've replaced the CanvasGadget with an ImageGadget, it should be faster ; A tip to remove flickering from a ScrollArea resized with a SplitterGadget: ; BindGadgetEvent...