Search found 98 matches

by a_carignan
Sun Jun 08, 2025 8:04 am
Forum: Tricks 'n' Tips
Topic: ComboBoxGadget in Editable ListIconGadget [Windows]
Replies: 40
Views: 13213

Re: ComboBoxGadget in Editable ListIconGadget [Windows]

Hello, I would like an example with an editable combobox on column 5 and why not a dategadget and thus have a complete example of editing a listgadget with all the compatible editing gadgets. Thank you in advance.
by a_carignan
Fri Nov 15, 2024 6:57 am
Forum: Coding Questions
Topic: End a program started with RunProgram?
Replies: 12
Views: 2936

Re: End a program started with RunProgram?

closeprogram cuts off communication with the software opened by runprogram, but does not close it.
by a_carignan
Thu Nov 14, 2024 12:33 pm
Forum: Coding Questions
Topic: End a program started with RunProgram?
Replies: 12
Views: 2936

Re: End a program started with RunProgram?

because killprogram kills the program, it does not close it.
by a_carignan
Sun Nov 10, 2024 11:11 am
Forum: Coding Questions
Topic: End a program started with RunProgram?
Replies: 12
Views: 2936

Re: End a program started with RunProgram?

Hello, Here is an example to close Notepad, The example is a little clearer than one already described.
;-TOP

; Comment : Window Functions
; Author : mk-soft
; Version : v1.03.0
; Create : ?
; Update : 20.11.2021

Structure udtListWindows
Name.s
Class.s
Handle.i
Process.i
Childs.i
Level.i ...
by a_carignan
Sun Nov 10, 2024 11:02 am
Forum: Coding Questions
Topic: End a program started with RunProgram?
Replies: 12
Views: 2936

Re: End a program started with RunProgram?

Hello, Here is a working example for applications other than Notepad.
Procedure EndProgram(processID)
w=GetWindow_(GetDesktopWindow_(),#GW_CHILD)
Repeat
GetWindowThreadProcessId_(w,@pid)
If pid=processID
hWnd=w
;PostMessage_(hWnd,#WM_SYSCOMMAND,#SC_CLOSE,0) ; Returns 1 but Notepad is still ...
by a_carignan
Wed Jun 12, 2024 11:58 pm
Forum: Coding Questions
Topic: selection display in Editorgadget in Windows
Replies: 9
Views: 1177

Re: selection display in Editorgadget in Windows

Yes, that's right, I want to change the color of the selected text. Too bad it's not a gadget attribute. :( THANKS :)
by a_carignan
Wed Jun 05, 2024 4:43 am
Forum: Coding Questions
Topic: selection display in Editorgadget in Windows
Replies: 9
Views: 1177

Re: selection display in Editorgadget in Windows

I want to change the appearance of the text selection.
https://1drv.ms/i/s!Atmzt_kAwqmYtPAhj3p ... A?e=EGSPS4
by a_carignan
Tue Jun 04, 2024 10:41 pm
Forum: Coding Questions
Topic: selection display in Editorgadget in Windows
Replies: 9
Views: 1177

Re: selection display in Editorgadget in Windows

The color of the selection highlight box.
by a_carignan
Tue Jun 04, 2024 9:15 pm
Forum: Coding Questions
Topic: selection display in Editorgadget in Windows
Replies: 9
Views: 1177

Re: selection display in Editorgadget in Windows

Oops, I'm not talking about how to select text. I'm talking about how to change text highlighting when selected. Sorry for my mistake. :?
by a_carignan
Fri May 31, 2024 7:36 am
Forum: Coding Questions
Topic: selection display in Editorgadget in Windows
Replies: 9
Views: 1177

selection display in Editorgadget in Windows

Good morning,
Is there an easy way to change the text selection display in Editorgadget in Windows?
by a_carignan
Wed May 29, 2024 5:24 am
Forum: Coding Questions
Topic: EditorGadget flickering with custom selection color (Win)
Replies: 1
Views: 1020

Re: EditorGadget flickering with custom selection color (Win)

Hello this version is functional, but has the same problem as the previous one.
#CFM_BACKCOLOR = $4000000

Global lpPrevFunc
Global hwndRichEdit

OpenWindow(0,0,0,500,400,"Owner-Draw Text Selection")

hwndRichEdit = EditorGadget(0,0,0,WindowWidth(0),WindowHeight(0))
SendMessage_(GadgetID(0), #EM ...
by a_carignan
Wed May 29, 2024 5:00 am
Forum: Coding Questions
Topic: How to color text in EditorGadget?
Replies: 2
Views: 724

Re: How to color text in EditorGadget?

Hello, here is an example that works.

EnableExplicit
; Selects Text inside an EditorGadget
; Line numbers range from 0 to CountGadgetItems(#Gadget)-1
; Char numbers range from 1 to the length of a line
; Set Line numbers to -1 to indicate the last line, and Char
; numbers to -1 to indicate the end ...
by a_carignan
Sat May 04, 2024 9:55 pm
Forum: Tricks 'n' Tips
Topic: Create Desktop Shortcuts (Windows)
Replies: 23
Views: 16299

Re: Create Desktop Shortcuts (Windows)


New to this.

Trying to use the code to create a shortcut if I use.

obj = getSpecialFolder(#CSIDL_WINDOWS) + "World Stamp Collector.exe"
lnk = getSpecialFolder(#CSIDL_DESKTOPDIRECTORY) + "WSC.lnk"

The shortcut is created but tells me it cannot find the exe file to run it if i browse it then ...
by a_carignan
Sat May 04, 2024 9:49 pm
Forum: Coding Questions
Topic: WebGadget - retreiving URL of link under pointer
Replies: 21
Views: 7706

Re: WebGadget - retreiving URL of link under pointer


Hi

Prototype.l AccessibleObjectFromPoint(x,y,*ia,*var)
Global AccessibleObjectFromPoint.AccessibleObjectFromPoint,Value.string, vt.VARIANT,*pIAcc.IAccessible,Text$

Olelib = OpenLibrary(#PB_Any,"Oleacc.dll")
If Olelib
AccessibleObjectFromPoint=GetFunction(Olelib,"AccessibleObjectFromPoint ...