FellippeHeitor / InForm

A GUI engine and WYSIWYG interface designer for QB64
MIT License
61 stars 15 forks source link

Head ape patch 794 #4

Closed HeadApe closed 6 years ago

HeadApe commented 6 years ago

disregard the -mod ended file, it's the base I was working off of

FellippeHeitor commented 6 years ago

I had a good look at it and I see the point but I don't think it affects the actual rendering so far, does it? I haven't seen changes to the actual drawing routine.

Also, there's at least one variable that was left undeclared (i'll go back to see what it is) but please do make sure they all are, so the user has a choice of using OPTION _EXPLICIT in his/her own code and not be bugged.

If you can, give your additions the IDE indent/capitalization treatment; also: the commented lines at DestroyControl can be removed; your idea for clearing the control is much clearer indeed.

HeadApe commented 6 years ago

Alright, I took care of it. it was my temp for widget being destroyed. To recap, the way I'd use ControlDrawOrder is just up its bounds by 1 and swap a control (converting its id into a ControlDrawOrder index) up to the ubound. But you can fancy it up by swapping two widgets' height in one shot. You could even have InForm automatically draw some items more than one time.