Jump to content
uniGUI Discussion Forums
andyhill

TUnimMenu - Scrollable - How ?

Recommended Posts

Can someone please show me how to make a TUnimMenu (Menu) scrollable - Thanks.

 

  UniSession.AddJS('Ext.Viewport.setMenu('+
               '' + Menu.JSName + ',' +
               '{ '+
               '  scrollable: true '+
               '});');
 

Share this post


Link to post
Share on other sites

Hi,

 

One possible solution, can you try this?:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UniSession.AddJS('Ext.onReady(function(){'+ Menu.JSName +'.setConfig({scrollable:"vertical", width:"20%"});})');
end;

Best regards,

Share this post


Link to post
Share on other sites

×