Search found 92 matches

by AZJIO
Tue Mar 19, 2024 11:15 pm
Forum: Coding Questions
Topic: Scaling png (?)
Replies: 6
Views: 11387

Re: Scaling png (?)


if its an image inside YOUR app("website") then its easy to add controls, like + button next to it to do whatever you want

I've been trying to do what I want all day, but nothing has worked out.
I was given other ideas that could well replace my idea, that is, scaling the entire window and we ...
by AZJIO
Sun Mar 17, 2024 1:07 pm
Forum: Coding Questions
Topic: Scaling png (?)
Replies: 6
Views: 11387

Re: Scaling png (?)

This is not exactly what I want. I'm displaying HTML pages in a webgadget. Many people immediately want to enlarge it, but nothing happens, the text and pictures remain in their original size. One person who liked the idea of ​​a help file decided to look for these features himself and found some ...
by AZJIO
Mon Mar 04, 2024 9:30 pm
Forum: Coding Questions
Topic: Scaling png (?)
Replies: 6
Views: 11387

Scaling png (?)

At work, I have electrical circuit diagrams for equipment. Can I create an application where I can select a schema and scale it? Nowadays, copying an archive of files is not convenient for everyone; everyone needs an application to press buttons.
by AZJIO
Mon Feb 19, 2024 6:28 pm
Forum: Coding Questions
Topic: TreeGadget Font & Color
Replies: 4
Views: 9441

Re: TreeGadget Font & Color


Custom fonts work, but line spacing seems fixed (see example). Is there a way to change line spacing with big fonts?

Non-standard solution - many things can be solved by customizing the theme. In the compiler settings ("Compiler options") you can select a theme. Initially there are two themes ...
by AZJIO
Mon Feb 19, 2024 7:11 am
Forum: General Discussion
Topic: Translating Regular Expression Errors
Replies: 2
Views: 16043

Re: Translating Regular Expression Errors

PCRE uses an error code
Error return values from pcre_exec()

If pcre_exec() fails, it returns a negative number. The following are
defined in the header file:

PCRE_ERROR_NOMATCH (-1)

The subject string did not match the pattern.

PCRE_ERROR_NULL (-2)

Either code or subject was passed as ...
by AZJIO
Thu Feb 15, 2024 7:42 pm
Forum: Coding Questions
Topic: ExtractRegularExpression, but only groups (?)
Replies: 0
Views: 17577

ExtractRegularExpression, but only groups (?)

How to transform the code to get only words matching a regular expression.
The first code works correctly.
var re = /^.*?([a-zа-яё\d_]*bi[a-zа-яё\d_]*).*?\|.+?\|.+?$/mgi;
var str="_arraybin|_ArrayBin|func\_ArrayBin\n_arraycom|_ArrayCom|func\_ArrayCom\n_arrayconc|_ArrayConc|func\_ArrayConc";
var ...
by AZJIO
Tue Feb 13, 2024 4:04 pm
Forum: Tricks 'n' Tips
Topic: Loading icons using a timer
Replies: 0
Views: 52526

Loading icons using a timer

The timer has low priority so it runs when the icons are already loaded
#Window = 0
#Menu3 = 3
Enumeration
#btnMenu
EndEnumeration
Global IsLoad
Global g_Timer
Global Dim icons(3)

Procedure Loaded(Type, Filename$, ID)
Select Mid(Filename$, Len(Filename$) - 4, 1)
Case "1"
icons(0) = ImageID(ID ...
by AZJIO
Tue Feb 13, 2024 1:56 pm
Forum: Coding Questions
Topic: Is RadixTree possible here
Replies: 5
Views: 6209

Re: Is RadixTree possible here

; --------------------------------------------------------------------------------------------
; Copyright (c) Fantaisie Software. All rights reserved.
; Dual licensed under the GPL and Fantaisie Software licenses.
; See LICENSE and LICENSE-FANTAISIE in the project root for license information ...
by AZJIO
Tue Feb 13, 2024 12:11 pm
Forum: Coding Questions
Topic: Is RadixTree possible here
Replies: 5
Views: 6209

Re: Is RadixTree possible here

There is no message. It’s just that when you enter text, nothing happens, but a list of words should appear.

And also the StrChange() function does not work
BindGadgetEvent(#Str, @StrChange(), #PB_EventType_Change)
But if I remove the word insertion in the RadixTree (inside the loop the line ...
by AZJIO
Tue Feb 13, 2024 11:08 am
Forum: Coding Questions
Topic: Is RadixTree possible here
Replies: 5
Views: 6209

Is RadixTree possible here

I tried to adapt RadixTree for SpiderBasic and it didn't work.
#Window = 0
Enumeration
#Str
#Editor
EndEnumeration


Global Tree.RadixTree
Global NewList Dictionary.s()


; function is executed when the search input field changes
Procedure StrChange()
Protected Prefix$, i
Protected NewList ...