Search found 73 matches

by AZJIO
Wed Sep 13, 2023 8:47 am
Forum: Tricks 'n' Tips
Topic: LoadScript (CSS)
Replies: 5
Views: 11000

LoadScript (CSS)

Try switching the "flat" style to black. The archive contains all the necessary files. Download Procedure Callback(URL$, Success) Debug Success EndProcedure Procedure ButtonHandler() LoadScript("./data/flat.css", @Callback(), #PB_Script_CSS) LoadScript("./data/window.css&quo...
by AZJIO
Fri Sep 08, 2023 11:11 am
Forum: General Discussion
Topic: Gadget demonstration
Replies: 0
Views: 12569

Gadget demonstration

When changing the theme, I want to see what all the gadgets look like. Here is an example of a demonstration of all the gadgets. screenshot EnableExplicit #Window = 0 #Menu = 0 Enumeration #btn #Str #Ch #Combo #Date #Calendar #Editor #Frame #Link #Image #LIG #LV #Spin #Txt #Track #Tree #Panel #Op1 #...
by AZJIO
Wed Sep 06, 2023 1:15 pm
Forum: Coding Questions
Topic: How to make HTML help
Replies: 7
Views: 7645

Re: How to make HTML help

I tried to do a search by generating an html page, in the end I can't open it g_id_savefile = CreateFile(#PB_Any, "search.htm", @SaveCallback(), #PB_UTF8 | #PB_LocalStorage) WriteStringN(g_id_savefile, ~"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html>...
by AZJIO
Sun Sep 03, 2023 12:32 am
Forum: Coding Questions
Topic: How to make HTML help
Replies: 7
Views: 7645

Re: How to make HTML help

Is it possible to increase the font of all pages opened in WebGadget? Someone has poor eyesight and needs a larger font. How to make it possible to regulate it? As far as I see the situation now, this is to open css in the data folder and change the value using a regular expression. And then refresh...
by AZJIO
Sat Sep 02, 2023 3:28 am
Forum: Coding Questions
Topic: Open files in a loop
Replies: 2
Views: 4055

Re: Open files in a loop

Thanks, it works. Is there a way to check when the callback has finished processing files? For me, the loop ends quickly and the file menu drops out, but the callback continues to work and populates the menu, which automatically expands. I'd like to expand the menu when the callback is done, because...
by AZJIO
Fri Sep 01, 2023 10:06 pm
Forum: Coding Questions
Topic: str.replace()
Replies: 0
Views: 13041

str.replace()

Using ReplaceString() to add the highlight tags, the text "KV" is replaced with "kv" if I searched in lower case. I need to preserve the case of the letters, so I use a regular expression to get the "$1" group in the original case. The example taken from the javascript ...
by AZJIO
Tue Aug 29, 2023 3:08 pm
Forum: Coding Questions
Topic: How to make HTML help
Replies: 7
Views: 7645

Re: How to make HTML help

I complicated the code, now 2 search options work, by tags and by files. ; AZJIO 02.09.2023 EnableExplicit #Window = 0 #WinSet = 1 #Menu = 0 #Menu2 = 1 #Menu3 = 2 ;- Перечисление Enumeration #WebG #StrG #btnClear #StrSearchAll #btnAll #btnDown #btnDown1 #ch1 #ch2 #ch3 #ch4 #Op1 #Op2 #Op3 #btnOK #btn...
by AZJIO
Tue Aug 29, 2023 9:58 am
Forum: Coding Questions
Topic: Open files in a loop
Replies: 2
Views: 4055

Open files in a loop

I'm testing searching for text in files in a cache. I'm getting filenames, but the ReadString() function keeps returning empty. Procedure ReadCallback3(Status, Filename$, File, Size) Protected Format, SearchText3$, CountFound If Status = #PB_Status_Loaded ; Debug "|" + Filename$ + "|&...
by AZJIO
Mon Aug 28, 2023 12:29 pm
Forum: Coding Questions
Topic: How to make HTML help
Replies: 7
Views: 7645

Re: How to make HTML help

I'm sorry, I have a mistake. I forgot to include "Resource directory: data\"
Now it works perfectly, I'm even surprised that it turned out so simply.

#PB_Web_Back and #PB_Web_Forward do not work yet
by AZJIO
Mon Aug 28, 2023 5:43 am
Forum: Coding Questions
Topic: How to make HTML help
Replies: 7
Views: 7645

How to make HTML help

Download: yandex (apk + Source) screenshot (en) screenshot (ru) ————————————— It works in the browser, but not in the APK EnableExplicit #Window = 0 Enumeration #WebG #btnL #btnR #btnHome EndEnumeration Global ww, hh ExamineDesktops() ww = DesktopWidth(0) hh = DesktopHeight(0) If ww < 60 Or hh < 60 ...