Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.03.04;
Скачать: CL | DM;

Вниз

GRushSplitter - уменьшить ширину   Найти похожие ветки 

 
parovoZZ ©   (2006-06-09 20:23) [0]

А как убрать лишние серые куски (показаны стрелками)? Слишком толстый вышел сплиттер.

http://img209.imageshack.us/img209/6295/split6co.png


 
homm ©   (2006-06-09 22:29) [1]


> А как убрать лишние серые куски

Как поставили так, и убирайте... Я то откуда могу знать что это за куски, и как они там оказались. Вы же ничего не сказали про это...


 
homm ©   (2006-06-09 23:23) [2]

А вообще больше похоже на то что Border у родителя выставлен такой.


 
parovoZZ ©   (2006-06-09 23:39) [3]

А, забыл сказать, что это увеличено в 5 раз. Слева панель, справа тоже панель. Сплиттер прилеплен к левой панели. Сейчас width=3, а выглядит на 5 из-за этих полосок.


 
homm ©   (2006-06-09 23:46) [4]

А вообще больше похоже на то что Border у родителя выставлен такой.


 
parovoZZ ©   (2006-06-10 01:33) [5]

У панельки Border = 1 для создания красивой кромки у дерева. Панелька справа развёрнута во всю, кромка тоже 1. Ну ладно, придётся смириться.


 
homm ©   (2006-06-10 17:07) [6]


> Ну ладно, придётся смириться.

MarginLeft
MarginRight
MarginTop
MatginBottom


 
parovoZZ ©   (2006-06-11 18:46) [7]

Всё по-прежнему.


 
parovoZZ ©   (2006-06-11 18:46) [8]

Всё по-прежнему.


 
ECM ©   (2006-06-11 19:17) [9]


> Всё по-прежнему.

Это про мозги?
:)


 
parovoZZ ©   (2006-06-11 21:42) [10]

Какие ещё мозги?

Я в OnShow поставил значения в еденицу - как было, так и осталось.


 
homm ©   (2006-06-11 23:56) [11]


> parovoZZ ©

"Адик, ты тупой!!!!"
(с) не я, а жаль

Выставь Border в ноль, а где надо кромку поставь MarginLeft MarginRight MarginTop MatginBottom!!!


 
parovoZZ ©   (2006-06-12 01:36) [12]

Да не надо мне никаких кромок. В инспекторе объектов нет таких параметров, а если лезть в OnPaint, то вся красявость девается в неизвестном направлении.


 
homm ©   (2006-06-12 02:08) [13]


> В инспекторе объектов нет таких параметров

За базар кто будет отвечать?


 
parovoZZ ©   (2006-06-12 02:55) [14]

Да нету у меня такого. Есть Только BorderWidth, BorderRoundWidth и BorderRoundHeight во всяких ххPaintState.


 
homm ©   (2006-06-12 03:12) [15]

Бля, у контейнеров!!!! Причем здесь споиттер. Ты же у него наоборот удрать хочеш, валнок!!! Что же ты ему кромки собрался выставитт, дятел????


 
homm ©   (2006-06-12 03:18) [16]

Бля, у контейнеров!!!! Причем здесь сплиттер. Ты же у него наоборот убрать хочеш, валенок!!! Что же ты ему кромки собрался выставитт, дятел????

ЗЫ. Мои прошу великожушного прошения за опечатки в первом посте :-) Был в состоянии аффекта.


 
parovoZZ ©   (2006-06-12 06:50) [17]

Там по нулям всё
А отрицательные значения дают отрицательный резальтат.


 
homm ©   (2006-06-12 09:37) [18]

Интерактивная пошаговая инструкция для дебилов, бухих свиней и parovoZZа в частности:

1) Создаем KOL проект. (см. другие енструкции, правдя для нормальных людей)
2) Кидеаем на форму панель. Для пущей наглядности у нее высавляем:
edgeStyle=esNone
Color=clTeal
Align=caLeft
а для формы
Color=clMaroon
3) Кидаем заветный сплиттер!!! (можно хоть граш, хоть Сепаратор)
4) Повторяем пункт 2, но теперь Align=caClient
5) Убеждаемся что получен эффект, описаный в [0].
Далее есть 2 пути решения проблемы
1) Застрелится
2) Выставить для формы Border=0, а также MarginLeft MarginRight MarginTop MatginBottom в нужное значение.

Мое имхо: тебе будет проще пойти первым путем. Не мучай себя и чесь мир.
Можно спросить пару личных вопросов:
1) Сколько тебелет?
2) Ты профессиональный программист?
3) Если да, то в какой деревне и сколько получаеш?


 
parovoZZ ©   (2006-06-12 16:56) [19]

Вот моя главная панель (лежит непосредственно на форме)

 object MainPnl: TKOLPanel
   Tag = 0
   Left = 3
   Top = 55
   Width = 713
   Height = 413
   HelpContext = 0
   IgnoreDefault = False
   AnchorRight = False
   AnchorBottom = False
   TabOrder = 0
   MinWidth = 0
   MinHeight = 0
   MaxWidth = 0
   MaxHeight = 0
   PlaceDown = False
   PlaceRight = False
   PlaceUnder = False
   Visible = True
   Enabled = True
   DoubleBuffered = False
   Align = caClient
   CenterOnParent = False
   Ctl3D = False
   Color = clBtnFace
   parentColor = True
   Font.Color = clBlack
   Font.FontStyle = []
   Font.FontHeight = -11
   Font.FontWidth = 0
   Font.FontWeight = 0
   Font.FontName = "Tahoma"
   Font.FontOrientation = 0
   Font.FontCharset = 204
   Font.FontPitch = fpDefault
   parentFont = True
   EraseBackground = False
   Localizy = loForm
   Transparent = False
   TextAlign = taLeft
   edgeStyle = esNone
   VerticalAlign = vaTop
   Border = 2
   MarginTop = 0
   MarginBottom = 0
   MarginLeft = 0
   MarginRight = 0
   Brush.Color = clBtnFace
   Brush.BrushStyle = bsSolid
   ShowAccelChar = False
   object TrVPnl: TKOLPanel
     Tag = 0
     Left = 2
     Top = 2
     Width = 167
     Height = 409
     HelpContext = 0
     IgnoreDefault = False
     AnchorRight = False
     AnchorBottom = False
     TabOrder = 0
     MinWidth = 0
     MinHeight = 0
     MaxWidth = 0
     MaxHeight = 0
     PlaceDown = False
     PlaceRight = False
     PlaceUnder = False
     Visible = True
     Enabled = True
     DoubleBuffered = False
     Align = caLeft
     CenterOnParent = False
     Ctl3D = False
     Color = clBtnShadow
     parentColor = False
     Font.Color = clBlack
     Font.FontStyle = []
     Font.FontHeight = -11
     Font.FontWidth = 0
     Font.FontWeight = 0
     Font.FontName = "Tahoma"
     Font.FontOrientation = 0
     Font.FontCharset = 204
     Font.FontPitch = fpDefault
     parentFont = True
     EraseBackground = False
     Localizy = loForm
     Transparent = False
     TextAlign = taLeft
     edgeStyle = esNone
     VerticalAlign = vaTop
     Border = 1
     MarginTop = 0
     MarginBottom = 0
     MarginLeft = 0
     MarginRight = 0
     Brush.Color = clBtnShadow
     Brush.BrushStyle = bsSolid
     ShowAccelChar = False
     object GRushPanel1: TKOLGRushPanel
       Tag = 0
       Left = 1
       Top = 1
       Width = 165
       Height = 20
       HelpContext = 0
       IgnoreDefault = False
       AnchorRight = False
       AnchorBottom = False
       TabOrder = 0
       MinWidth = 0
       MinHeight = 0
       MaxWidth = 0
       MaxHeight = 0
       PlaceDown = False
       PlaceRight = False
       PlaceUnder = False
       Visible = True
       Enabled = True
       DoubleBuffered = False
       Align = caTop
       CenterOnParent = False
       Caption = #1052#1086#1081" "#1078#1091#1088#1085#1072#1083
       Font.Color = clBlack
       Font.FontStyle = []
       Font.FontHeight = -11
       Font.FontWidth = 0
       Font.FontWeight = 0
       Font.FontName = "MS Sans Serif"
       Font.FontOrientation = 0
       Font.FontCharset = 204
       Font.FontPitch = fpDefault
       parentFont = False
       Localizy = loForm
       Transparent = False
       Border = 0
       MarginTop = 0
       MarginBottom = 0
       MarginLeft = 0
       MarginRight = 0
       GRushStyles.DefPaintState.ColorFrom = 13745839
       GRushStyles.DefPaintState.ColorTo = clWhite
       GRushStyles.DefPaintState.ColorOuter = -2147483633
       GRushStyles.DefPaintState.ColorText = clBlack
       GRushStyles.DefPaintState.ColorShadow = clWhite
       GRushStyles.DefPaintState.BorderColor = clBtnShadow
       GRushStyles.DefPaintState.BorderRoundWidth = 0
       GRushStyles.DefPaintState.BorderRoundHeight = 0
       GRushStyles.DefPaintState.BorderWidth = 0
       GRushStyles.DefPaintState.GradientStyle = gsHorizontal
       GRushStyles.DefPaintState.ShadowOffset = 1
       GRushStyles.DisPaintState.ColorFrom = clWhite
       GRushStyles.DisPaintState.ColorTo = 10398900
       GRushStyles.DisPaintState.ColorOuter = -2147483633
       GRushStyles.DisPaintState.ColorText = clBlack
       GRushStyles.DisPaintState.ColorShadow = clGray
       GRushStyles.DisPaintState.BorderColor = clGray
       GRushStyles.DisPaintState.BorderRoundWidth = 0
       GRushStyles.DisPaintState.BorderRoundHeight = 0
       GRushStyles.DisPaintState.BorderWidth = 0
       GRushStyles.DisPaintState.GradientStyle = gsFromTopLeft
       GRushStyles.DisPaintState.ShadowOffset = 2
       GRushStyles.ContentOffsets.Left = 4
       GRushStyles.ContentOffsets.Top = 4
       GRushStyles.ContentOffsets.Right = -4
       GRushStyles.ContentOffsets.Bottom = -4
       GRushStyles.TextHAlign = haLeft
       GRushStyles.DrawGlyph = False
     end


 
parovoZZ ©   (2006-06-12 16:58) [20]

object GRushPanel2: TKOLGRushPanel
       Tag = 0
       Left = 1
       Top = 22
       Width = 165
       Height = 1
       HelpContext = 0
       IgnoreDefault = False
       AnchorRight = False
       AnchorBottom = False
       TabOrder = 1
       MinWidth = 0
       MinHeight = 0
       MaxWidth = 0
       MaxHeight = 0
       PlaceDown = False
       PlaceRight = False
       PlaceUnder = False
       Visible = True
       Enabled = True
       DoubleBuffered = False
       Align = caTop
       CenterOnParent = False
       Font.Color = clWindowText
       Font.FontStyle = []
       Font.FontHeight = 0
       Font.FontWidth = 0
       Font.FontWeight = 0
       Font.FontName = "MS Sans Serif"
       Font.FontOrientation = 0
       Font.FontCharset = 1
       Font.FontPitch = fpDefault
       parentFont = False
       Localizy = loForm
       Transparent = False
       Border = 0
       MarginTop = -1
       MarginBottom = -1
       MarginLeft = 0
       MarginRight = 0
       GRushStyles.DefPaintState.ColorFrom = clWhite
       GRushStyles.DefPaintState.ColorTo = 13745839
       GRushStyles.DefPaintState.ColorOuter = -2147483633
       GRushStyles.DefPaintState.ColorText = clBlack
       GRushStyles.DefPaintState.ColorShadow = clWhite
       GRushStyles.DefPaintState.BorderColor = clMedGray
       GRushStyles.DefPaintState.BorderRoundWidth = 0
       GRushStyles.DefPaintState.BorderRoundHeight = 0
       GRushStyles.DefPaintState.BorderWidth = 0
       GRushStyles.DefPaintState.GradientStyle = gsSolid
       GRushStyles.DefPaintState.ShadowOffset = 1
       GRushStyles.DisPaintState.ColorFrom = clWhite
       GRushStyles.DisPaintState.ColorTo = 10398900
       GRushStyles.DisPaintState.ColorOuter = -2147483633
       GRushStyles.DisPaintState.ColorText = clBlack
       GRushStyles.DisPaintState.ColorShadow = clGray
       GRushStyles.DisPaintState.BorderColor = clGray
       GRushStyles.DisPaintState.BorderRoundWidth = 6
       GRushStyles.DisPaintState.BorderRoundHeight = 6
       GRushStyles.DisPaintState.BorderWidth = 2
       GRushStyles.DisPaintState.GradientStyle = gsFromTopLeft
       GRushStyles.DisPaintState.ShadowOffset = 2
       GRushStyles.ContentOffsets.Left = 4
       GRushStyles.ContentOffsets.Top = 4
       GRushStyles.ContentOffsets.Right = -4
       GRushStyles.ContentOffsets.Bottom = -4
       GRushStyles.DrawGlyph = False
       GRushStyles.DrawText = False
     end
     object TrV: TKOLTreeView
       Tag = 0
       Left = 1
       Top = 24
       Width = 165
       Height = 384
       HelpContext = 0
       IgnoreDefault = False
       AnchorRight = False
       AnchorBottom = False
       TabOrder = 2
       MinWidth = 0
       MinHeight = 0
       MaxWidth = 0
       MaxHeight = 0
       PlaceDown = False
       PlaceRight = False
       PlaceUnder = False
       Visible = True
       Enabled = True
       DoubleBuffered = False
       Align = caClient
       CenterOnParent = False
       Ctl3D = False
       Color = clWindow
       parentColor = False
       Font.Color = clBlack
       Font.FontStyle = []
       Font.FontHeight = -11
       Font.FontWidth = 0
       Font.FontWeight = 0
       Font.FontName = "Tahoma"
       Font.FontOrientation = 0
       Font.FontCharset = 204
       Font.FontPitch = fpDefault
       parentFont = True
       EraseBackground = False
       Localizy = loForm
       Transparent = False
       Options = []
       CurIndex = 0
       TVRightClickSelect = False
       TVIndent = 0
       HasBorder = False
       TabStop = True
       Brush.Color = clWindow
       Brush.BrushStyle = bsSolid
       Unicode = False
     end
   end
   object WebPnl: TKOLPanel
     Tag = 0
     Left = 176
     Top = 2
     Width = 535
     Height = 409
     HelpContext = 0
     IgnoreDefault = False
     AnchorRight = False
     AnchorBottom = False
     TabOrder = 2
     MinWidth = 0
     MinHeight = 0
     MaxWidth = 0
     MaxHeight = 0
     PlaceDown = False
     PlaceRight = False
     PlaceUnder = False
     Visible = True
     Enabled = True
     DoubleBuffered = False
     Align = caClient
     CenterOnParent = False
     Ctl3D = False
     Color = clBtnShadow
     parentColor = False
     Font.Color = clBlack
     Font.FontStyle = []
     Font.FontHeight = -11
     Font.FontWidth = 0
     Font.FontWeight = 0
     Font.FontName = "Tahoma"
     Font.FontOrientation = 0
     Font.FontCharset = 204
     Font.FontPitch = fpDefault
     parentFont = True
     OnResize = WebPnlResize
     EraseBackground = False
     Localizy = loForm
     Transparent = False
     TextAlign = taLeft
     edgeStyle = esNone
     VerticalAlign = vaTop
     Border = 1
     MarginTop = 0
     MarginBottom = 0
     MarginLeft = 0
     MarginRight = 0
     Brush.Color = clBtnShadow
     Brush.BrushStyle = bsSolid
     ShowAccelChar = False


 
parovoZZ ©   (2006-06-12 16:58) [21]

object WebBrowser: TKOLWebBrowser
       Left = 264
       Top = 168
       Width = 64
       Height = 64
       IgnoreDefault = False
       AnchorRight = False
       AnchorBottom = False
       Align = caNone
       Visible = True
       TabStop = False
       TabOrder = 0
       Silent = True
     end
   end
   object GRushSplitter: TKOLGRushSplitter
     Tag = 0
     Left = 171
     Top = 2
     Width = 3
     Height = 409
     HelpContext = 0
     IgnoreDefault = False
     AnchorRight = False
     AnchorBottom = False
     TabOrder = 1
     MinWidth = 0
     MinHeight = 0
     MaxWidth = 0
     MaxHeight = 0
     PlaceDown = False
     PlaceRight = False
     PlaceUnder = False
     Visible = True
     Enabled = True
     DoubleBuffered = False
     Align = caLeft
     CenterOnParent = False
     Font.Color = clBlack
     Font.FontStyle = []
     Font.FontHeight = -11
     Font.FontWidth = 0
     Font.FontWeight = 0
     Font.FontName = "Tahoma"
     Font.FontOrientation = 0
     Font.FontCharset = 204
     Font.FontPitch = fpDefault
     parentFont = True
     Localizy = loForm
     Transparent = False
     MinSizePrev = 0
     MinSizeNext = 0
     GRushStyles.DefPaintState.ColorFrom = clBtnFace
     GRushStyles.DefPaintState.ColorTo = 13745839
     GRushStyles.DefPaintState.ColorOuter = -2147483633
     GRushStyles.DefPaintState.ColorText = clBlack
     GRushStyles.DefPaintState.ColorShadow = clWhite
     GRushStyles.DefPaintState.BorderColor = clMedGray
     GRushStyles.DefPaintState.BorderRoundWidth = 0
     GRushStyles.DefPaintState.BorderRoundHeight = 0
     GRushStyles.DefPaintState.BorderWidth = 0
     GRushStyles.DefPaintState.GradientStyle = gsSolid
     GRushStyles.DefPaintState.ShadowOffset = 1
     GRushStyles.OverPaintState.ColorFrom = clWhite
     GRushStyles.OverPaintState.ColorTo = 13675925
     GRushStyles.OverPaintState.ColorOuter = -2147483633
     GRushStyles.OverPaintState.ColorText = clBlack
     GRushStyles.OverPaintState.ColorShadow = clGray
     GRushStyles.OverPaintState.BorderColor = clMedGray
     GRushStyles.OverPaintState.BorderRoundWidth = 0
     GRushStyles.OverPaintState.BorderRoundHeight = 0
     GRushStyles.OverPaintState.BorderWidth = 0
     GRushStyles.OverPaintState.GradientStyle = gsHorizontal
     GRushStyles.OverPaintState.ShadowOffset = 1
     GRushStyles.DownPaintState.ColorFrom = clWhite
     GRushStyles.DownPaintState.ColorTo = 12817525
     GRushStyles.DownPaintState.ColorOuter = -2147483633
     GRushStyles.DownPaintState.ColorText = clBlack
     GRushStyles.DownPaintState.ColorShadow = clGray
     GRushStyles.DownPaintState.BorderColor = clGray
     GRushStyles.DownPaintState.BorderRoundWidth = 0
     GRushStyles.DownPaintState.BorderRoundHeight = 0
     GRushStyles.DownPaintState.BorderWidth = 0
     GRushStyles.DownPaintState.GradientStyle = gsHorizontal
     GRushStyles.DownPaintState.ShadowOffset = -1
     GRushStyles.DisPaintState.ColorFrom = clWhite
     GRushStyles.DisPaintState.ColorTo = 10398900
     GRushStyles.DisPaintState.ColorOuter = -2147483633
     GRushStyles.DisPaintState.ColorText = clBlack
     GRushStyles.DisPaintState.ColorShadow = clGray
     GRushStyles.DisPaintState.BorderColor = clGray
     GRushStyles.DisPaintState.BorderRoundWidth = 0
     GRushStyles.DisPaintState.BorderRoundHeight = 0
     GRushStyles.DisPaintState.BorderWidth = 0
     GRushStyles.DisPaintState.GradientStyle = gsHorizontal
     GRushStyles.DisPaintState.ShadowOffset = 2
     GRushStyles.ContentOffsets.Left = 4
     GRushStyles.ContentOffsets.Top = 4
     GRushStyles.ContentOffsets.Right = -4
     GRushStyles.ContentOffsets.Bottom = -4
   end
 end


Если скажешь, где что подкрутить - придётся выписать премию. У меня при изменении Margin - ов налезают на кромку панелей WebBrowser и TreeView, а не панельки на сплиттер. А все эти панельки мне нужны как раз из-за кромок в 1 пиксель для дерева и браузера.

=====
1) Старше тебя
2) Нет
3) На днях был в Карелии - Турция и прочая вражеская лабуда отдыхает. Жаль только, что наш брат всё загадит.


 
parovoZZ ©   (2006-06-12 19:17) [22]

Всё, разобрался. Без маргинов, мать их. Можно удалять нах.



Страницы: 1 вся ветка

Текущий архив: 2007.03.04;
Скачать: CL | DM;

Наверх




Память: 0.56 MB
Время: 0.029 c
9-1131554360
2Wish
2005-11-09 19:39
2007.03.04
Изометрия


1-1168788788
Kolan
2007-01-14 18:33
2007.03.04
Если Rich едит нарисован на StatusBar е, как сделать его выше?


4-1161170550
Alex_06
2006-10-18 15:22
2007.03.04
Получение иконки из exe-файла


4-1161670009
DevilDevil
2006-10-24 10:06
2007.03.04
GetObject(Bitmap, sizeof(TagBitmap), @TB);


6-1159622677
Русло
2006-09-30 17:24
2007.03.04
Обработка почты...