+ 1
Programming types dynamically? Can i program graphics,controls and other objects dynamically with out a toolbox? Please explain.
codes tell the pc that you will be using graphics,controls or any other code. I have tried many times to make my own buttons and graphics with no success and many do not display. Somebody tell me how to notify the pc that i will be manipulating creating and manipulating some of its code. Is it done only when there is an initialize component?
7 Réponses
+ 1
thats the problem that i have searched for a ways to access other types such as graphics,widgets etc. how come its so easy to call a string and actully display it compared to graphics,controls, etc?
+ 1
for exaple in unity to have access to the gameobjects all you need to do is use "getcomponent"
+ 1
thanks mahmoud Farouk I will try reflections.
I understand programming, but just a simple problem like trying to have access to a type so it can be manipulated is so hard for me.
+ 1
I can see, you are welcome bro
0
there is jQuery which allows you to inser all components dynamically if you are a web designer, but for static languages like c++ find any tutorial about qt for example and it allows you to do it statically by the designer or dynamically by code, actually any language allows you to do that, just search for it
0
its hard because you need to specify multiple things and go through alot of bugs and errors, so I suggest you to build the back end of what ever you are doing with any language, but front end and I mean graphics do it using JavaScript and jQuery, and find a way to make them work together
0
I think languages like c# and java allows you to do this "getComponnent" it uses something called reflection, but nit all languages do that, and it makes performance sucks