How to create a new table with JSL: no menu bar, no toolbar, no sidebar, no status bar
Thanks!
alternatively, you could use
dt = new table("test", INvisible()); new window("test",<< type("Dialog"), db = dt<< new data box()); db << Close Side Panels( 1 );
to remove the status bar as well:
OK
nw=new window("",dt<<Get As Report);
Hi @lala ,this code will generate a data table view without the surrounding menus:
dt = new table("test", INvisible()); new window("test",show toolbars(0), show menu(0), db = dt<< new data box()); db << Close Side Panels( 1 );
Can it go any further?
Looks like this code doesn't work?
Wait(0);window=Get Window(dt);sp=window<<Find(SplitterBox(1));dt<<Set Row ID Width(15);
What are you trying to achieve? Just an empty grid? Does it have to be a data table? You could create Table Box for example
Names Default To Here(1); nw = new windoW("", show toolbars(0), show menu(0), tb = Table Box( String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}), String Col Edit Box("", {""}) ) ); scebs = nw << XPath("//StringColEditBox"); scebs << Set Width(100); For(i = 1, i <= 20, i++, Eval(EvalExpr( tb << Add Row(Expr(Repeat({""}, N Items(scebs)))); )); ); Write();
You can also somewhat hide those
Names Default To Here(1); dt = New Table("", Invisible); nw = New Window("School", show toolbars(0), show menu(0), H List Box( dg = dt << New Data Box() ) ); dg << close side panels(1); dg << Set Header Height(1); dg << close summary panels(1); dg << Set Row ID Width(15);
and you might be able to further "minimize" (rather hide) using spanning