Search found 473 matches

by vmars316
Sun Apr 14, 2024 10:21 pm
Forum: Coding Questions
Topic: Troubles with "SendMessage...#EM_LINESCROLL
Replies: 2
Views: 625

Re: Troubles with "SendMessage...#EM_LINESCROLL

Aha..
"The number of lines to scroll vertically."
Thanks infratec
by vmars316
Sun Apr 14, 2024 10:01 pm
Forum: Coding Questions
Topic: Can't fetch a specific webpage.
Replies: 12
Views: 2235

Re: Can't fetch a specific webpage.

My internet provider is Spectrum .
With Chrome , I get the following :
Suspicious Site Blocked
This site was blocked because it may contain unsafe content that can harm your device or compromise your personal info.
by vmars316
Sun Apr 14, 2024 8:23 pm
Forum: Coding Questions
Topic: Troubles with "SendMessage...#EM_LINESCROLL
Replies: 2
Views: 625

Troubles with "SendMessage...#EM_LINESCROLL

Troubles with "SendMessage_(GadgetID(Editor_Input), #EM_LINESCROLL"

In my PilgrimsProgress.pb , '1st time thru' works fine , after that , doesnt work well (unpredictable) .
The program has an EditInput(https://vmars.us/ShowMe/Pilgrims-Progress-Small-Numbers.txt)
& EditOutput(search results ...
by vmars316
Sun Apr 14, 2024 1:55 am
Forum: Coding Questions
Topic: How to Scroll (Editor_Input = EditorGadget) to Line x ?
Replies: 5
Views: 1510

Re: How to Scroll (Editor_Input = EditorGadget) to Line x ?

This code creates item lines 0 thru 5
and then creates item lines 0 thru 5 Again .

; Author: Danilo (updated for PB4.00 by blbltheworm)
; Help from netmaestro
OpenWindow(0,200,200,300,500,"Test",#PB_Window_SystemMenu)
ButtonGadget(125,5,5,100,29,"Click Me !")
EditorGadget(2,5,50,290,450 ...
by vmars316
Sat Apr 13, 2024 5:15 pm
Forum: Coding Questions
Topic: How to Scroll (Editor_Input = EditorGadget) to Line x ?
Replies: 5
Views: 1510

How to Scroll (Editor_Input = EditorGadget) to Line x ?

Thanks in advance :
How to Scroll (Editor_Input = EditorGadget) to Line x ?
The following code Runs fine , Except it doesn't Scroll Editor_Input .

Case Editor_Output
;Global Editor_Input , Editor_Output , HelpButton ,
; itemText$ , selectedItem , event = 0 , spacePosition , number$ ,
; Editor ...
by vmars316
Sat Apr 13, 2024 2:02 am
Forum: Coding Questions
Topic: #PB_Editor_ClickSelect /#PB_ListView_ClickSelect ?
Replies: 4
Views: 933

Re: #PB_Editor_ClickSelect /#PB_ListView_ClickSelect ?

Hmm...
I stumbled across this bit , works fine:

Case Editor_Output
If EventGadget() = Editor_Output And EventType() = #PB_EventType_LeftClick ; Check for left click on the ListView
; Get the selected item index
selectedItem = GetGadgetState(Editor_Output) ; 0 is the ID of the ListView
If ...
by vmars316
Sat Apr 13, 2024 1:22 am
Forum: Coding Questions
Topic: #PB_Editor_ClickSelect /#PB_ListView_ClickSelect ?
Replies: 4
Views: 933

Re: #PB_Editor_ClickSelect /#PB_ListView_ClickSelect ?

Thanks Axolotl ,
However your code is beyond my abilities ,
I am a novice programmer .

"Happy coding and stay healthy." Good plan :D
by vmars316
Fri Apr 12, 2024 3:25 am
Forum: Coding Questions
Topic: #PB_Editor_ClickSelect /#PB_ListView_ClickSelect ?
Replies: 4
Views: 933

#PB_Editor_ClickSelect /#PB_ListView_ClickSelect ?

Thanks in advanced ,

I know there is a '#PB_ListView_ClickSelect'
How to do same for '#PB_Editor_ClickSelect' ?
Else 'How to do' ?
by vmars316
Mon Mar 18, 2024 5:11 pm
Forum: Coding Questions
Topic: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?
Replies: 12
Views: 1523

Re: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?

In the context of your PureBasic code, when you use `0` as an argument for `OpenWindow`, `CreatePopupMenu`, `LoadImage`, and similarly for other functions, it specifies the identifier (ID) for the window, popup menu, or image. The use of `0` as an ID is a common practice for simplicity, especially ...
by vmars316
Mon Mar 11, 2024 7:38 pm
Forum: Coding Questions
Topic: Having trouble with 'Right-Click on Systray icon' .
Replies: 5
Views: 889

Re: Having trouble with 'Right-Click on Systray icon' .

Ah.. Perfect ;
Great Response Folks !
Thank you...
by vmars316
Mon Mar 11, 2024 4:02 pm
Forum: Coding Questions
Topic: Having trouble with 'Right-Click on Systray icon' .
Replies: 5
Views: 889

Having trouble with 'Right-Click on Systray icon' .

TIA ,

I'm Having trouble with 'Right-Click on Systray icon' .
In the code below , everything works
except this
If Event = #PB_Event_Menu ; <<-- PopUp Event
Select EventMenu()
Case 1 ; Restore
RemoveSysTrayIcon(1)
HideWindow(0, #False)
MessageRequester("Info", "Press OK and then the ...
by vmars316
Mon Mar 11, 2024 3:47 pm
Forum: Coding Questions
Topic: Having probs with SetGadgetText ?
Replies: 7
Views: 1678

Re: Having probs with SetGadgetText ?

Thanks infratec...
by vmars316
Sun Mar 10, 2024 10:20 pm
Forum: Coding Questions
Topic: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?
Replies: 12
Views: 1523

Re: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?

Sorry ,
I'm just mixed up about what's the diff between
AddSysTrayIcon (1, WindowID(0) , LoadImage(0 , "Examples\Sources\Data\CdPlayer.ico"))
and HideWindow(0 , #True)
LoadImage(0 , #PB_Compiler_Home + "Examples\Sources\Data\CdPlayer.ico")

Are they all PB_Any objects ?
Thanks