Dovahkiin wrote:
The progress you make looks great..!! but you haven't posted something for the last days.. How is it going?
I'm still fighting with the menu XD.
The problem here is I need the functionality to create an editor from them.
As I mentioned several times I don't even have a list control XD.
I reworked some parts of the menu code and included some basic functionality
into the base-objects of the menu-controls, such as scrollsbars and basic
alignment of the text and the control itself.
Also I changed the menus themselves so they no longer need positions for the
controls. The menus are initially devided into a 5x10 raster.
If I add a control to the menu it will be positioned at 0;0 and the rasterposition
is increased. If the number of controls I added to one "line" of the menu is
bigger than the current menu raster, the raster will get increased and all
controls in the menu are repositioned and resized to match the new raster with
their individual attributes. Same happens if I increase the number of "lines".
That way I can create pretty neat menus without setting any position or size
for any of the menu-controls. However there is the possibility to set the raster-
position for a control manually though. I also included the possibility to give the
menu controls a raster-span to let them stretch over different raster-boxes.
Maybe a picture will explain some things a bit better XD.
The following screenshot is taken from the latest menu-version.
But the re-development of existing code always is a pain in the ass, so I most likely
will recreate the whole menu-system from scratch, by copying over function by
function from the old menu version.
Also I want to change the basic menu-handling itself. Until now I always just could
show one menu in fullscreen. But I want to be able to show different menus at a
time in different viewmodes such as windows or docks on the sides of the screen.
The post was edited 4 times, last by grasmann ().