Jump to content

Layout Window


estrify

Recommended Posts

Not directly from Delphi, but you may try playing with config params of Ext.Panel in UniPanel.

I am trying but I can't find the way. I attach:

 

  • ExtJS demo that I wish simulate with UnigUI (Basically is a simple Window that contains a panel and a tab panel)
  • UniGUI equivalent to ExtJS demo

 

The intended effect is caused by the config line layout: 'border' (line 54 in layout.js). In UniGUI, I am using ClientEvents to put the following:

 

function window.OnAdded(sender, ownerCt, index)

{

//sender.border=false;

sender.plain=true;

sender.layout='border';

}

 

But it doesn't work. May be these lines must be put in other place?

 

Regards,

ExtJS Layout Window Example.rar

UniGUI_Equivalent_To_ExtJS_Layout_Window_Example.rar

Link to comment
Share on other sites

I am trying but I can't find the way. I attach:

 

  • ExtJS demo that I wish simulate with UnigUI (Basically is a simple Window that contains a panel and a tab panel)
  • UniGUI equivalent to ExtJS demo

 

The intended effect is caused by the config line layout: 'border' (line 54 in layout.js). In UniGUI, I am using ClientEvents to put the following:

 

function window.OnAdded(sender, ownerCt, index)

{

//sender.border=false;

sender.plain=true;

sender.layout='border';

}

 

But it doesn't work. May be these lines must be put in other place?

 

Regards,

 

Can anyone help to find what is wrong with the sample or tell me how to achieve the desired result of ExtJS using UniGUI?

Thx

Link to comment
Share on other sites

I played around with this for a while with no real success. The real issue is so deep that you can't simply achieve it by setting JS parameters. Implementing this functionality requires a deeper integration with unigui.

 

Logged #1362

Thank you very much for your dedication. It will be great to see this functionality integrated within UniGUI.

Link to comment
Share on other sites

  • 4 weeks later...
  • Administrators

Why not use TUniRegionPanel component from PatMap:

 

 

http://forums.unigui.com/index.php?/topic/1233-region-slider-panel/page__view__findpost__p__4313

 

object MainForm: TMainForm
 Left = 0
 Top = 0
 Caption = 'MainForm'
 ClientHeight = 421
 ClientWidth = 707
 Color = clBtnFace
 OldCreateOrder = False
 MonitoredKeys.Keys = <>
 PixelsPerInch = 96
 TextHeight = 13
 object UniRegionPanel1: TUniRegionPanel
Left = 0
Top = 0
Width = 707
Height = 421
Caption = 'UniRegionPanel1'
Align = alClient
Anchors = [akLeft, akTop, akRight, akBottom]
Color = clBtnFace
TabOrder = 0
Regionable = False
RegionSplit = False
RegionFrame = False
RegionTitleCollapse = False
RegionCollapsible = False
Region = rgCenter
object UniRegionPanel2: TUniRegionPanel
 	Left = 1
 	Top = 1
 	Width = 185
 	Height = 419
 	Caption = 'UniRegionPanel1'
 	Align = alLeft
 	Anchors = [akLeft, akTop, akBottom]
 	Color = clBtnFace
 	TabOrder = 1
 	Regionable = True
 	RegionSplit = False
 	RegionFrame = False
 	RegionTitleCollapse = False
 	RegionCollapsible = True
 	Region = rgWest
 	RegionParent = UniRegionPanel1
end
object UniRegionPanel3: TUniRegionPanel
 	Left = 185
 	Top = 1
 	Width = 522
 	Height = 419
 	Caption = 'UniRegionPanel3'
 	Align = alClient
 	Anchors = [akLeft, akTop, akRight, akBottom]
 	Color = clBtnFace
 	TabOrder = 2
 	Regionable = True
 	RegionSplit = False
 	RegionFrame = False
 	RegionTitleCollapse = False
 	RegionCollapsible = False
 	Region = rgCenter
 	RegionParent = UniRegionPanel1
end
 end
end

Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...