im thinking of drawing 2 dialog boxes one has a bunch of controlls, and the other is just blank... then you click one of the controlls on the controll dialog, then click some where on the blank one, and it draws that controll on the blank dialog. why im asking this is, im working on a really crappy scripting language.
how it will work is you will have your file with the script in in, like
and so on, and all it will do is like refer to classes in my application drawing dynamic dialogs and what not, so i wanted to make some what of a mini visual enviroment for it, i know a visual enviroment is going to be hard, but what im wondering is, how would i get the coords of the dialog where the mouse is clicked, because im thinking this is how it could work...Code:dialog(Handle,Title,X,Y) { //insert controll code here }
3 text bokes for x,y,caption of the controll, then a list of buttons for like static text, buttons, check boxes etc. etc. and then after they put in the XY and caption and click the controll they want, it sets variables with the X,Y and caption, then when they click on the blank dialog it draws a button at those coords with the X,Y, and caption... what do yoiu guys think? would there be a better/easier way of doing this?