Atozed Forums

Full Version: IWTabControl TabHeight
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im try use Intraweb 14.2.8. How to change TabHeight ? I set TabRowHeight to 32, and TabHeight to 32:

[attachment=32]

has changed in design time:

[attachment=35]

but in browser TabHeight does not change, it remains 16-20, although the TabRowHeight has changed.

[attachment=36]
(07-29-2018, 12:57 PM)Rassamaha78 Wrote: [ -> ]Im try use Intraweb 14.2.8. How to change TabHeight ? I set TabRowHeight to 32, and TabHeight to 32:



has changed in design time:



but in browser TabHeight does not change, it remains 16-20, although the TabRowHeight has changed.

Hi,

last time I checked this worked as expected. Can you please post your DFM code for this control so I can test it?
Quote:Can you please post your DFM code for this control so I can test it?


Code:
object IWForm2: TIWForm2
 Left = 0
 Top = 0
 Width = 555
 Height = 400
 RenderInvisibleControls = True
 AllowPageAccess = True
 ConnectionMode = cmAny
 Background.Fixed = False
 HandleTabs = False
 LeftToRight = True
 LockUntilLoaded = True
 LockOnSubmit = True
 ShowHint = True
 XPTheme = True
 DesignLeft = 8
 DesignTop = 8
 object IWTabControl1: TIWTabControl
   Left = 72
   Top = 80
   Width = 433
   Height = 265
   RenderInvisibleControls = True
   ActiveTabFont.Color = clWebWHITE
   ActiveTabFont.FontFamily = 'Arial, Sans-Serif, Verdana'
   ActiveTabFont.Size = 10
   ActiveTabFont.Style = [fsBold]
   InactiveTabFont.Color = clWebBLACK
   InactiveTabFont.FontFamily = 'Arial, Sans-Serif, Verdana'
   InactiveTabFont.Size = 10
   InactiveTabFont.Style = []
   ActiveTabColor = clWebDARKGRAY
   InactiveTabColor = clWebLIGHTGRAY
   ActivePage = 0
   BorderOptions.NumericWidth = 0
   BorderOptions.BorderWidth = cbwNumeric
   BorderOptions.Style = cbsNone
   BorderOptions.Color = clNone
   Color = clWebSILVER
   ClipRegion = False
   TabPadding = 0
   TabRowHeight = 32
   TabHeight = 32
   ActiveTabBorder.Color = clWebBLACK
   ActiveTabBorder.Width = 0
   InactiveTabBorder.Color = clWebBLACK
   InactiveTabBorder.Width = 0
   DesignSize = (
     433
     265)
   object IWTabControl1Page0: TIWTabPage
     Left = 0
     Top = 32
     Width = 433
     Height = 233
     RenderInvisibleControls = True
     TabOrder = 0
     Title = 'Page0'
     BorderOptions.NumericWidth = 0
     BorderOptions.BorderWidth = cbwNumeric
     BorderOptions.Style = cbsNone
     BorderOptions.Color = clNone
     Color = clWebWHITE
     ExplicitWidth = 321
     ExplicitHeight = 153
   end
   object IWTabControl1Page1: TIWTabPage
     Left = 0
     Top = 32
     Width = 433
     Height = 233
     RenderInvisibleControls = True
     TabOrder = 1
     Title = 'Page1'
     BorderOptions.NumericWidth = 0
     BorderOptions.BorderWidth = cbwNumeric
     BorderOptions.Style = cbsNone
     BorderOptions.Color = clNone
     Color = clWebWHITE
     ExplicitWidth = 321
     ExplicitHeight = 153
   end
 end
end
(07-31-2018, 03:38 AM)Rassamaha78 Wrote: [ -> ]
Quote:Can you please post your DFM code for this control so I can test it?


Code:
object IWForm2: TIWForm2
 Left = 0
 Top = 0
 Width = 555
 Height = 400
 RenderInvisibleControls = True
 AllowPageAccess = True
 ConnectionMode = cmAny
 Background.Fixed = False
 HandleTabs = False
 LeftToRight = True
 LockUntilLoaded = True
 LockOnSubmit = True
 ShowHint = True
 XPTheme = True
 DesignLeft = 8
 DesignTop = 8
 object IWTabControl1: TIWTabControl
   Left = 72
   Top = 80
   Width = 433
   Height = 265
   RenderInvisibleControls = True
   ActiveTabFont.Color = clWebWHITE
   ActiveTabFont.FontFamily = 'Arial, Sans-Serif, Verdana'
   ActiveTabFont.Size = 10
   ActiveTabFont.Style = [fsBold]
   InactiveTabFont.Color = clWebBLACK
   InactiveTabFont.FontFamily = 'Arial, Sans-Serif, Verdana'
   InactiveTabFont.Size = 10
   InactiveTabFont.Style = []
   ActiveTabColor = clWebDARKGRAY
   InactiveTabColor = clWebLIGHTGRAY
   ActivePage = 0
   BorderOptions.NumericWidth = 0
   BorderOptions.BorderWidth = cbwNumeric
   BorderOptions.Style = cbsNone
   BorderOptions.Color = clNone
   Color = clWebSILVER
   ClipRegion = False
   TabPadding = 0
   TabRowHeight = 32
   TabHeight = 32
   ActiveTabBorder.Color = clWebBLACK
   ActiveTabBorder.Width = 0
   InactiveTabBorder.Color = clWebBLACK
   InactiveTabBorder.Width = 0
   DesignSize = (
     433
     265)
   object IWTabControl1Page0: TIWTabPage
     Left = 0
     Top = 32
     Width = 433
     Height = 233
     RenderInvisibleControls = True
     TabOrder = 0
     Title = 'Page0'
     BorderOptions.NumericWidth = 0
     BorderOptions.BorderWidth = cbwNumeric
     BorderOptions.Style = cbsNone
     BorderOptions.Color = clNone
     Color = clWebWHITE
     ExplicitWidth = 321
     ExplicitHeight = 153
   end
   object IWTabControl1Page1: TIWTabPage
     Left = 0
     Top = 32
     Width = 433
     Height = 233
     RenderInvisibleControls = True
     TabOrder = 1
     Title = 'Page1'
     BorderOptions.NumericWidth = 0
     BorderOptions.BorderWidth = cbwNumeric
     BorderOptions.Style = cbsNone
     BorderOptions.Color = clNone
     Color = clWebWHITE
     ExplicitWidth = 321
     ExplicitHeight = 153
   end
 end
end

Hello,

I can confirm that IWTabControl won't render as expected using this test case, which is quite surprising...

I'll check what is causing that and get back to you ASAP
Can you please try new update 15.0.10 and see it if fixes this issue?


https://www.atozed.com/2018/07/15-0-10/
I solved this problem with css:
Code:
.TABCONTROLNAMECSS-INACTIVE-TAB {
display: inline-block;    
}

.TABCONTROLNAMECSS-ACTIVE-TAB {
display: inline-block;    
}
(07-31-2018, 11:50 PM)Rassamaha78 Wrote: [ -> ]I solved this problem with css:
Code:
.TABCONTROLNAMECSS-INACTIVE-TAB {
display: inline-block;    
}

.TABCONTROLNAMECSS-ACTIVE-TAB {
display: inline-block;    
}

That's exactly what IW 15.0.10 does :-)