Search found 14 matches

by Daffodil the Duck
Wed Dec 21, 2005 9:51 pm
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

Srod that's terrific. It works and now TreeViews seem to behave as I would want them to behave. It's one of those snippets of code that should be saved somewhere on this forum for ready access. Thanks for taking the time to understand the problem and to solve it. Hope all is well

Daffodil
by Daffodil the Duck
Fri Dec 16, 2005 9:49 pm
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

Srod
Wait a sec. You may have it. While the last reply I sent is still true (where the'child' is highlighted), if I highlight the parent node (Item 1) and click "Child" then the child is added as the last child node and that is what I wanted to achieve. Terrific. So in my code (haven't done it yet ...
by Daffodil the Duck
Fri Dec 16, 2005 9:42 pm
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

Srod

Glad to hear you are fine. Thanks for looking at it. I tried out your code and I think you'll see the issue if you expand 'Item 1', highlight 'ChildItem3' and click 'SameLevel'. The item that gets created 'New 5' is not created at the same level but is created as the next parent node, one ...
by Daffodil the Duck
Fri Dec 16, 2005 5:57 pm
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

Thanks Srod. It does help. I have to agree with your assumption so yes, it does seem as though the data required to maintain treeviews in PB and the API's are a bit out of sync here. I guess if I want to proceed using the TreeView in my program I am going to have to learn a bit about these API calls ...
by Daffodil the Duck
Thu Dec 15, 2005 10:58 pm
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

Thanks for reopening this topic because I still haven't found an answer.

My original question was how to add a new row into a child node of a tree that would be at the same level as the child. Using just the PB commands, I can make it work if I am not inserting after the last child in the node. But ...
by Daffodil the Duck
Tue Nov 15, 2005 10:55 pm
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

TreeView - adding same level at end of child nodes

Further to my previous question, I found some terrific code on this forum for TreeViews (TVAddItem) which I played with for a while. Doesn't 100% solve my problem. I am trying to solve adding a new row into a TreeView at the tail end of a set of child nodes so that the new row will be at the same ...
by Daffodil the Duck
Fri Nov 11, 2005 3:17 am
Forum: Coding Questions
Topic: Fill a ListIcon faster than with AddGadgetItem?
Replies: 9
Views: 3921

IconListView Loading Time

And to join this debate I am going to ask something that I really don't know anything about so don't laugh but here goes anyway. If you wait the 3 minutes or more it takes to load 50,000 items into the list for the initial time only, is there then a way to save the chunk of memory that holds the ...
by Daffodil the Duck
Fri Nov 11, 2005 2:58 am
Forum: Coding Questions
Topic: Visual designer file format specs..
Replies: 19
Views: 5870

Congrats on the kids

The pictures are great. From one father of triplets to another, how on earth did you get any time at all? Mine are 5 and I am only just starting to get time now to return to the computer. I am almost out of touch with the computing world which is why sequential programming in PB, not OO etc, is such ...
by Daffodil the Duck
Fri Nov 11, 2005 1:36 am
Forum: Coding Questions
Topic: help with TreeGadget
Replies: 28
Views: 5204

TreeView - adding same level at end of child nodes

I know this thread is a little old but the code in it was really really helpful. Although it still leaves one issue that I just can't seem to resolve. When I am trying to add another node to my tree and I want that node to be at the same level as the node I have selected, I can do it with ...
by Daffodil the Duck
Wed Aug 17, 2005 2:26 am
Forum: Coding Questions
Topic: String Gadget - Read Only
Replies: 7
Views: 2748

Darn. Looks like my brain must have turned to liquid and drained away again. I actually had a bug in my code which was giving me some results I didn't want. Can't believe it. Errr ... never happened before.

Anyway, thanks to everyones help I now have all that I need. In short, 'read only' mode ...
by Daffodil the Duck
Tue Aug 16, 2005 7:32 pm
Forum: Coding Questions
Topic: String Gadget - Read Only
Replies: 7
Views: 2748

Thanks Terry. That works well also. I modified it so that I don't have to remember the X and Y coords etc and it works just great.


StringGadget(0, GadgetX(0), GadgetY(0), GadgetWidth(0), GadgetHeight(0), GetGadgetText(0), #PB_String_ReadOnly)


I don't know which is best (API or PureBasic). API ...
by Daffodil the Duck
Tue Aug 16, 2005 2:25 pm
Forum: Coding Questions
Topic: String Gadget - Read Only
Replies: 7
Views: 2748

Thanks HeX0R. That works. It's great. I sense I have a whole world of WINAPI's to explore .... somehow.

I had naively thought that this same command would apply to all gadgets but it seems only to work with string gadgets, which is after all what I asked for.

#ReadOnly = 1
#Editable = 0 ...
by Daffodil the Duck
Tue Aug 16, 2005 4:31 am
Forum: Tricks 'n' Tips
Topic: Read and Write Binary String
Replies: 3
Views: 2445

Binary write and read

Guimauve
This is fantastic. It solves one half of something I have been stuck on for a while now. The other half I am stuck on is similar. Is there any way to adapt it so that instead of saving the contents of a linked list in binary form to a file and restoring, it could save the contents of a tree ...
by Daffodil the Duck
Mon Aug 15, 2005 10:21 pm
Forum: Coding Questions
Topic: String Gadget - Read Only
Replies: 7
Views: 2748

String Gadget - Read Only

Forgive this question but how do I make a string gadget read only once it is created. I know it can be created as read only but 'read only' is an attribute I would like to turn off and on as determined by the business logic. I know also that I can disable gadgets but that makes the content invisible ...