Filling sidenav

Just like tabs, content on sidenav is a form of surface. To get the surface can call this function.

ui_sidenav_get_surface (control);

Return: surface id

Argument control is the handle of ui_sidenav_create (...); function.

UserMenu = ui_sidenav_create (16, 16, ui_default, ui_default);
var surface = ui_sidenav_get_surface (UserMenu);

surface_set_target (surface);
// Draw element here for sidenav
surface_reset_target ();

Setting up and organizing surface on userMenu sidenav.

results matching ""

    No results matching ""