Search found 641 matches

by toralf
18 Nov 2019, 06:04
Forum: Offtopic
Topic: 10 Year Anniversary
Replies: 6
Views: 204

Re: 10 Year Anniversary

Congrats, all your effort is highly appreciated
by toralf
18 Nov 2019, 05:59
Forum: Ask For Help
Topic: Wrapper (class/function) for REST with JSON:API
Replies: 11
Views: 435

Re: Wrapper (class/function) for REST with JSON:API

Are you sure?
In an expression %val% is the address of val if i‘m not mistaken. At least it is a double reference.
The whole lines of code look “different” to what I’m used to. Checking Val if it is the string true or false.... but I do not know the mechanics behind the screen (inside of jxon)
by toralf
15 Nov 2019, 10:17
Forum: Ask For Help
Topic: Wrapper (class/function) for REST with JSON:API
Replies: 11
Views: 435

Re: Wrapper (class/function) for REST with JSON:API

Why do you use jxon then?
by toralf
15 Nov 2019, 06:29
Forum: Ask For Help
Topic: Wrapper (class/function) for REST with JSON:API
Replies: 11
Views: 435

Re: Wrapper (class/function) for REST with JSON:API

Yes, that seems very close to it. Thanks a lot. I see that you use Jxon, I assume you have it in your lib, right? I will have to use OpenID Connect to be allowed to use the REST interface, I hope I can use the same restclient class to get the token. Is there anything special about JSON:API that woul...
by toralf
14 Nov 2019, 17:59
Forum: Ask For Help
Topic: Wrapper (class/function) for REST with JSON:API
Replies: 11
Views: 435

Wrapper (class/function) for REST with JSON:API

Dear all, I‘m in need to contact a server via a REST interface that uses JSON:API. Is there a wrapper for AHK, e.g. class or function, somewhere available? On the forum I could find some comobject examples that show how to establish a REST communication, but not a wrapper for it. For JSON:API I got ...
by toralf
06 Nov 2019, 04:56
Forum: Ask For Help
Topic: Extract icon index from ListView/TreeView item/row
Replies: 8
Views: 437

Re: Extract icon index from ListView/TreeView item/row

Yes, would reduce bookkeeping. I would use the technique as well when all info is in the control.
But if there is more info then i’ll have to use an array anyway.
by toralf
06 Nov 2019, 04:30
Forum: Ask For Help
Topic: Extract icon index from ListView/TreeView item/row
Replies: 8
Views: 437

Re: Extract icon index from ListView/TreeView item/row

You could as well store the status/ID of the icon in a separate array. You would then have to update/sync the treeview and the array all the time.
by toralf
05 Nov 2019, 16:23
Forum: Ask For Help
Topic: Sync scrolling of two listviews or treeview controls
Replies: 2
Views: 209

Re: Sync scrolling of two listviews or treeview controls

Thanks a lot for the example.
It‘s a little hard to follow but i‘ll Try to digest it.
Thanks again

Any thoughts on treeview?
by toralf
02 Nov 2019, 04:11
Forum: Ask For Help
Topic: Sync scrolling of two listviews or treeview controls
Replies: 2
Views: 209

Sync scrolling of two listviews or treeview controls

I would like to synchronize the scrolling of two ListView or TreeView controls in an AHK GUI. Is this possible?
by toralf
30 Oct 2019, 17:34
Forum: Ask For Help
Topic: Color individual items in Treeview Topic is solved
Replies: 3
Views: 283

Re: Color individual items in Treeview Topic is solved

Thanks a lot. Exactly wha I was looking for.
by toralf
30 Oct 2019, 10:46
Forum: Ask For Help
Topic: Color individual items in Treeview Topic is solved
Replies: 3
Views: 283

Re: Color individual items in Treeview Topic is solved

The color option only works for the whole control. It can’t be set by Tv_add or tv_modify for individual items.
Is there any other way to change the text color of some TreeView items?
by toralf
30 Oct 2019, 10:36
Forum: Ask For Help
Topic: Color individual items in Treeview Topic is solved
Replies: 3
Views: 283

Color individual items in Treeview Topic is solved

How can I color individual items in a treeview?
Using tv_modify() doesn‘t seem to work. I can set an item bold, but I can’t change its text color.
by toralf
21 Oct 2019, 12:03
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

Thanks teadrinker, so it is the hwnd of the button (ControlHwnd)
That explains why the contolHwnd is missing in the parameters.
But what I need is the hwnd of the GUI. Since the object is registered with the hwnd of the GUI
by toralf
21 Oct 2019, 10:34
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

You're probably not accounting for the "this" parameter. If you use a method directly as a control callback, "this" would contain the hwnd. In on_Close() and On_ButtonSendAnswer() this didn’t contain the hwnd. And also not the object this, so that this.hwnd could be used. Instead A_Gui contained th...
by toralf
20 Oct 2019, 10:21
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

Ok, I understood the concept. When a gui controls function gets called, it doesn't get the object as this . But it has A_Gui and with it it can retrieve the object if the object ist stored in itself. But if the storage space is not cleared when the Gui closes, __Delete() gets never called. What trou...
by toralf
20 Oct 2019, 03:17
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

Answer { get { GuiControlGet, value,, % this.hEdit return value } set { GuiControl,, % this.hEdit, % value return value } } Why have you specified set for Answer? IMHO it is never used nor needed. For examples, see DebugVars.ahk . The simplest one is probably VarEditGui - in particular, see Show() ...
by toralf
20 Oct 2019, 02:53
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

Good morning teadrinker,
I think he did, in the VarEditGui class, he used the technique:

Code: Select all

VarEditGui.Instances[this.hGui] := this
by toralf
19 Oct 2019, 23:45
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

Thanks a lot Lexikos for the detailed answer and links. I’ll have to study them. It seems to fulfill what I want to achieve.Now I have to understand what all the functions do to know where I can modify them to my needs.
by toralf
18 Oct 2019, 05:35
Forum: Ask For Help
Topic: Gui in a class
Replies: 40
Views: 1810

Re: Gui in a class

AHK_user wrote:
17 Oct 2019, 23:31
Below is another nice example of a class gui.
Hi, ist your __Delete() ever called?
by toralf
17 Oct 2019, 21:54
Forum: Wish List
Topic: Test Build - Func.Bind( . . . ) enhancments
Replies: 6
Views: 1427

Re: Test Build - Func.Bind( . . . ) enhancments

That sounds interesting. Thanks for comeback to such old suggestions and working on them. I assume is is robust, e.g. when during binding a sparse array of parameters is provided (3rd and 5th Parameter being left out of a 6 parameters) and during call 4 extra parameters are provided, that the final ...

Go to advanced search