Questions tagged [tcustomcontrol]

7 questions
4
votes
2 answers

Using TControlBar, how do I limit the movement of the bands to a single row?

I have use for the TControlBar component in my current project but I'm having issues with the control drawing extra rows when I'm moving the bands around, basically what I want is the ControlBar to always only have 1 Row which is of fixed Height,…
Peter
  • 2,977
  • 1
  • 17
  • 29
4
votes
1 answer

How does a TCustomControl receive input focus?

I am writing a grid control which I based on TCustomControl so I can handle all the structure, painting and navigation myself. The bit that I can't seem to figure out is this: In my constructor, I set ControlStyle to this: ControlStyle :=…
Cobus Kruger
  • 8,338
  • 3
  • 61
  • 106
3
votes
2 answers

How do I make the scrollbar's thumbtrack resize

If you open Notepad, add ten lines and resize the editor to only show nine, the thumb track (the draggable block on a scroll bar) is almost the full length of the vertical scroll bar. If you add a couple of thousand rows, the thumb track is only a…
Cobus Kruger
  • 8,338
  • 3
  • 61
  • 106
2
votes
1 answer

how to create a TCustomControl that behaves like Tpanel?

how do I create a TCustomControl that will behave like Tpanel? eg MyCustomComponent, that I can drop components in like labels, images etc.
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
1
vote
1 answer

Delphi tcustomcontrol/twincontrol

Can someone please explain me which control is better to create custom componens? What is the difference between twincontrol and tcustomcontrol? Thank you in advance
Emre Acikgoz
  • 93
  • 1
  • 11
1
vote
3 answers

How to select sub-control in my custom control in design-time in delphi

I'm trying to create a control, which creates 3 standard TPanel onto itself in design-time and run-time. Everything is okay: control creates panels perfectly. But I struck with one problem: in design-time I want to have an ability to choose one of…
Josef Švejk
  • 1,047
  • 2
  • 12
  • 23
1
vote
1 answer

how to add TAboutBox in TCustomControls?

I want to add aboutbox/dialogbox on my Custom component. how to make the small button[...] appear on the object inspector? just like the assigning a picure on the Timage component.
XBasic3000
  • 3,418
  • 5
  • 46
  • 91