Jump to content


Photo

TUnimMenu - Scrollable - How ?

menu

  • Please log in to reply
2 replies to this topic

#1 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 17 December 2017 - 09:07 PM

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

 

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

  • 0

Andy


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3885 posts

Posted 19 December 2017 - 09:48 AM

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,


  • 0

#3 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 20 December 2017 - 05:16 AM

Thank you - will test


  • 0

Andy






Also tagged with one or more of these keywords: menu

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users