|
Post by (X) on Jun 4, 2023 19:22:44 GMT 1
Another kick at the can with an image URL download from the internet to boot...
|
|
|
Post by dragonjim on Jun 4, 2023 22:26:14 GMT 1
That's a good idea. I think it will be as close as you are going to get to a UDT type Trace.👍
|
|
|
Post by scalion on Jun 6, 2023 14:00:20 GMT 1
Wow je n'avais pas encore vu ce thread (bon c'est vrai je suis pas souvent là). C'est juste génial ce qu'on peut faire avec les variants, on dirait du python, top top ! Je ne connaissais même pas les New Collections en plus, rooooh la honte. Très instructif
|
|
|
Post by (X) on Jun 7, 2023 2:38:40 GMT 1
Here is the 6th iteration of a demo that tries to display a Variant Array this time in a Treeview... I am using historical Manhattan Project employee cards as a real world example just to help me focus on the rather abstract concepts of Variant Arrays and Treeview Nodes.
You can select the person's name in the treeview or the rich edit textbox and their card will come up. I am hoping to be able to directly edit the Variant Array via the Treeview and save it to file.
This could obviously lead to many practical uses including as a programming aid.
I have so many reservations* about Treeview it isn't funny. But, I really really want to be able to use a treeview!
*For example if I try to expand all the nodes in code, I have to reselect the root node, collapse and expand it again before it starts acting normal.
|
|
|
Post by dragonjim on Jun 7, 2023 9:23:47 GMT 1
Treeview can be clunky with GFA; that said, I have never used it outside of GFA so it may be the root Window control functions. Have a look here at the TreeView message TVM_EXPAND - this may give you more options to those built into GFA.
|
|
|
Post by (X) on Jun 7, 2023 22:07:36 GMT 1
Thanks for the suggestion, dj.
I stumbled upon Control Spy V2 a developer tool executable that lets you view various controls with different settings - and more - in a sort of WYSIWYG environment.
This is kind of what I am shooting for in terms of what a GFA application could do for a novice programmer that just wants to build an app in minutes with click and drag convenience.
|
|
|
Post by dragonjim on Jun 7, 2023 22:26:57 GMT 1
An improvement to the Form Editor could go some way to achieving this, allowing for preloaded data in controls and performated objects.
|
|
|
Post by Roger Cabo on Jun 27, 2023 19:02:22 GMT 1
Perhaps its possible to create a Quadtree by this collection using recursion in GB32 now :-)
|
|
|
Post by (X) on Feb 23, 2024 17:58:55 GMT 1
This is version 6 of a Treeview application with a nostalgic look back to the manual file keeping days... featuring historic employee card information about the Manhatten Project members.
Demo Variant Array 6.G32 (30.62 KB) // Updated 2024-02-23 13:25 Variants.lg32 (21.76 KB) // Replace this library file in your GFABASIC32/Include/ directory to benefit from updated VarSize() function.
I used the Erikas Buero TTF for the give the text that "type-writer" look. You can download & install if not available on your PC or substitute your own prefered font.
|
|
|
Post by Roger Cabo on Feb 26, 2024 17:51:36 GMT 1
Hi everyone,
Hmm at first I thought, what is the intention to use a collection.
My intention could be, use strings, values and any data package store into a database.
And data packages can be pictures as well?
And what is imported? Calculate or to find and save data as quickly as possible?
Are the data is always structured, like String(0), Int(1), Picture(2), Rgb(3) Double(4) Byte(5) -------- String(6), Int(7), Picture(8), Rgb(9) Double(10) Byte(11)
Or would it be important to save any Type of data sequentially.
Eg SaveCollection(index, any) Is gb32 able to use any type of var as Parameter? And identify inside the SaveCollection(idx, typeof(any)) ?
|
|
|
Post by Roger Cabo on Feb 26, 2024 21:19:27 GMT 1
Or perhaps multiple deeper dimensions at any node?
Eg:
person(0).personal.currentage person(0).personal.weight person(0).hobbys(0).save person(0).hobbys(1).dangerous ---- person(1).personal.currentage person(1).personal.weight person(1).hobbys(0).save(0) person(1).hobbys(5).dangerous(2)
What does the gb32 collection is able to do?
Sorry ask this question. I'm currently not able to use gb32 because I have no PC with me on my tour.
|
|
|
Post by (X) on Feb 26, 2024 21:22:56 GMT 1
All good questions!
I was just playing around with Variant Arrays and tried out a few ideas to see what I might come up with that might store and display many types of data in a Treeview.
Unfortunately, I tend to produce a lot of code that might be useful and very little that absolutely is.
|
|
|
Post by (X) on Feb 26, 2024 21:33:18 GMT 1
Perhaps its possible to create a Quadtree by this collection using recursion in GB32 now :-) Sorry for asking such a basic question. Could you please share more about why you’re interested in GB32’s ability to produce a Quadtree?
|
|