BlitzPlusEXT DLL adds new commands
BlitzPlus Forums/BlitzPlus Programming/BlitzPlusEXT DLL adds new commands
| ||
GadgetHidden(gadget) Returns True if the gadget is hidden, otherwise False. GetTreeViewNode(node,index) Returns the child of the indicated tree view node. Use this to sort through tree views recursively: For n=1 to CountTreeViewNodes(root) node=GetTreeViewNode(root,n) NextI wouldn't charge for it, but I spent two days figuring this stuff out. Buy the DLL. |
| ||
Excuse me while I lol. |
| ||
why is that funny? If (when) I create my own library of function, why should I not charge for it? |
| ||
why is that funny? First, because of the way Halo treats people who offer him help. Second, the DLL only contains two functions, one of which he already shared the source for. If I charged twenty bucks for every little DLL I coded, I wouldn't be rich, I'd be an ass. He can do what he wants, and I'll continue helping people for free. |
| ||
$19.95 USD for two functions, oh dear :/ Good luck with those sales halo. |
| ||
If you need it, you really need it, if you don't, you don't. I don't care. |
| ||
First, because of the way Halo treats people who offer him help I don't know how Halo treats people, but it sounds like a personal issue also not buying ... ?? None of my business really, I help people I can here for free, and expect the same in return. Nothing more, nothing less. |
| ||
Halo... Are you sure your GadgetHidden() function works? I posted a reply in the BlitzPlus section and re-wrote your code so that it would work. So, I am rightfully entitled to half your sales arn't I? |
| ||
Prof, I'm sure Halo's solution doesn't give an "Invalid Bank Handle" error. |
| ||
Strange... Works OK on my PC. [EDIT] Just ran it again and all was fine. God knows why you get an 'Invalid Bank' error. Anyone else get the same error? |
| ||
The code I posted earlier used an external lib, and would have crashed if you don't have my memory lib. It took a couple days to figure out, so i don't care if you call me greedy or selfish, no one else will get this stuff done. |
| ||
Thats OK. I won't be posting any more code then from now on if others are going to profit from it. |
| ||
Prof, I would hope God uses Debug mode when programming. |
| ||
Aaahhhhh! Correct! It does produce an error with debug mode on. How strange! I hardly think that God would do this though seeing as.... No, I wont bother turning this into a thread 300 posts long. |
| ||
I don't even know what you are talking about, and there is no way to write a GadgetHidden() function without an external library. |
| ||
The IsWindowVisible API call should work with all gadgets. |
| ||
He can do what he wants, and I'll continue helping people for free. I second that. How in your right mind can you charge $20 for two functions? And it seems like one of them you have already shared, so its $20 for one function. Maybe you should rethink that. |
| ||
I can charge $1,000,0000, if I want. Why do you care? |
| ||
; Userlibs -> user32.decls: ; IsWindowVisible% (hWnd) window = CreateWindow ("Test window", 300, 200, 300, 50, 0, 1 + 32) oink = CreateButton ("Oink", 0, 0, 300, 25, window) hide = CreateButton ("Hide Oink button", 0, 25, 300, 25, window) Repeat e = WaitEvent () Select e Case $803 End Case $401 If EventSource () = hide t = 1 - t If t HideGadget oink Else ShowGadget oink EndIf If GadgetHidden (oink) SetGadgetText window, "Hidden" Else SetGadgetText window, "Visible" EndIf EndIf End Select Forever Function GadgetHidden (gadget) Return Not IsWindowVisible (QueryObject (gadget, 1)) End Function |
| ||
Heh...here is how to add checkboxes: Const TVS_CHECKBOXES =$0100 htree=QueryObject(tree,1) style=GetWindowLong(htree,GWL_STYLE) SetWindowLong htree,GWL_STYLE,style+TVS_CHECKBOXES |
| ||
ROFLMAO @ this thread. |
| ||
@GFX what does ROFLMAO mean? |
| ||
There's nobody here called GFX, Hansie. BlitzSupport: Thanks for the code - a cheque for $20 is in the post ;) (not really) |
| ||
LOL where's the bacon, boy? |
| ||
I think im gonna take those functions halo and james posted and sell it for $20!!!!!!!! just kidding |
| ||
I'm selling Pong for $20. I wouldn't charge for it, but it took 2 days blah blah blah (is this funny any more?) |
| ||
If Halo ever makes a sale of that dll and shows me proof of it I will buy 2 copies for myself. |
| ||
Has anyone actually paid for it? |
| ||
@GFK Sorry for calling you GFX :-D Typo, ya see ... |
| ||
Added some more...let's see, it has...CountTreeViewNodes() GetTreeViewNode() SelectTreeViewNode() ExpandTreeViewNode() CheckTreeViewNode() UncheckTreeViewNode() TreeViewNodeExpanded() TreeViewNodeChecked() TreeViewNodeSelected()Oh, and just added this: SortTreeViewNode()Of course, I guess you would just as soon wish I had never figured this all out. |
| ||
Good for you :) I'm sure no-one will have any problem parting with their $20 if they feel they're getting good value for money. |
| ||
@Halo How many licenses did you sell, just out of curiosity? |