Added more controls and functionality. I also removed the DrawImmediate function as it is not needed. I changed to two different draw calls with all the controls: one with clipping, one without. This is to squeeze more speed when the control is known not to exceed the boundary of its control. Buttons, Text, checkboxes, sliders, are all examples of controls that will not use clipping when being drawn unless a parent, like a window, or scroll bar control draws them, in which case, they will be drawn with clipping on.
Check the right hand Library menu for the download.
Nice GUI library, great work!
I tried out the demo, it works fine on Win7 64-bit.
Some things i noticed, only minor bugs/issues…
* there are some text artefacts, see screenshot
* scrollbar is only useable with click&drag the knob, the clicking above/below a knob and the up/down buttons don’t work / or not good enough
* right bottom edge of two scrollbars shows shows “hidden” objects like buttons
* sliders are only usable with the knob
* using e.g. right bottom corner to resize a window to the smallest possible form and then trying to resize it to make the window bigger again (all with one mouse click and holding the mouse button) is not possible
* also resizing the window to make it smaller also move the window position
* color picker can move the window position
* changing the color involves clicking exactly on the color picker circle marker
* the text looks blurred and a bit stretched
* minimizing windows, the z-index of the window title is in front of the buttons to maximize, close the window
* textfield cursor is one space too far away to the right side
Screenshot:
http://img651.imageshack.us/img651/6159/guitextartefacts.png
Keep up the good work!
Thanks for the comment.
The text artifacts are contained in the skin file that I have to clean up by zooming in and removing them. I will get to that next.
The scrollbar issues are on my to-do list and I will add those features very soon and place a grey square over the bottom right corner so its seamless.
Sliders will be able to move by clicking on the rail soon too.
The window resizing is still screwy –I admit. I have some work to get it to behave correctly.
I will add an area to the color picker window for dragging –maybe a small tab– and make the window only movable from that tab, so picking colors doesnt accidentally move the window. Also, I will make it so you can click somewhere on the color and the circle will goto the mouse.
The blurriness of the text is another problem of the skin. I have to clean up the letters to make them sharp. Currently, there are pixels of the letters that have an alpha value which is like 50%, so a small text size will cause the text to appear blurry.
I will fix the window minimize text so that it cuts itself off before the buttons.
I will move the text cursor to the left a couple of pixels and see if that works better.
I greatly appreciate the comments and suggestions. I will work to integrate all of them by Wednesday.
Great.
One thing I forgot is that i may be that some files (e.g. sln) are missing or wrong path in the source package. I tried to build it with VS 2010, and I got such related errors. I hadn’t the time to fix them..
Thank you for that, I included an old Project file. I just uploaded the correct one.
try that out