How to create objects using APIs?
BlitzPlus Forums/BlitzPlus Programming/How to create objects using APIs?
| ||
The title of the topic probably says enoungh. ;) I would like to be able to create Trackbar, Spinner, etc. gadgets using the APIs, but I can't figure out how! Could anyone tell me what I need to do, and what other functions I need to get the states, etc? Thanks for your time! |
| ||
http://www.blitzbasic.com/codearcs/codearcs.php?code=1181 http://www.blitzbasic.com/codearcs/codearcs.php?code=1180 http://www.blitzbasic.com/codearcs/codearcs.php?code=1179 Also, visit micro$oft's site for the MSDN documents. http://msdn.microsoft.com/ |
| ||
The Code Archives are where you get the commands from, but I'm asking for help on using them, which those pages don't have. Tried the MSDN and it wasn't exactly helpful... When I try to use CreateWindowEx to create the gadgets, it doesn't work. Maybe if you could give me some code that would create a working gadget with an API command, I could probably go from there. |
| ||
OK, here is some code that I put in the code archives a while ago. It generates more api requesters than you usually get with the standard version of Blitz Plus. http://www.blitzbasic.com/codearcs/codearcs.php?code=1349 Read up on 'userlibs' because you have to put the declarations in there first before Blitz Plus will recognise them. |
| ||
Cool, but what I really need is something that shows how to use "CreateWindowEx()" (or whichever command is used to create gadgets) in B+. I though that the program shown in the screenie at http://www.blitzbasic.com/codearcs/codearcs.php?code=1381 looked like it had a real spinner gadget in it, so I thought that there must be some way to use API commands to create working gadgets in B+... |
| ||
Blaine, I simulated a spinner button with a slider control put next to a text box... works mostly like a spinner except the arrow work the opposite of what you would expect. ;P |
| ||
Oh. I had thought that it looked like a real spinner, but if that's the case then I guess that there's nothing special... darn. Ohwell... |