BDS2006: TReader, TWriter and Event-Management Hello,
suppose I have a string with the RTTI of an TButton and one event and want to create that Button during runtime:
object btpTEST_RTTI: TButton Left = 5 Top = | | 2 | 78 | 3/21/2008 7:44:57 PM |
Redrawing component when Enabled property changed. I am writing a visual component derived from TCustomControl. I provide the Enabled property to enable/disable user input on the control. I want two things to happen:
1) When control | | 4 | 103 | 3/18/2008 12:41:33 AM |
Syntax error Hi,
I'm trying to set a method FormMouseWheelDown to OnMouseWheel event. The compiler is giving the following error. I'm using BCB6. What am I doing wrong?
[C++ Error] Pro | | 1 | 89 | 3/15/2008 8:36:22 PM |
TBitmap Hello all,
I've tried searching the newsgroup for this. I'm trying to create a component that has a Graphics::TBitmap as a published property like so: //----------------------- | | 2 | 145 | 3/14/2008 10:50:50 AM |
Need help translate Pascal to BCB2007 Dear All,
Almost VCL are made by Pascal, I don't know how to modify and add any code use Pascal. One old DWaveMix VCL compont can not run under BCB2007, It's just can be use on | | 7 | 103 | 3/12/2008 8:14:08 AM |
Pascal questions Hi there
I know this might of topic, but since is I understand C++ I thought that I might get more understandeble answers here..
I am trying to do some Pascal(VCL) parsing, so I | | 3 | 85 | 3/10/2008 5:23:09 PM |
OnKeyDown Hi
I've a Form and I've assigned a method OnKeyDown event.
Do you have any idea why dosen't this event triggered when a key is down?
Thanks
Sabetay
| | 2 | 104 | 3/7/2008 11:37:00 PM |
Package builds, but no components register. I am upgrading a CBuilder 5 package to 2007. The package referenced some time design time units, so I decided to separate the package into a run time package and a design time package. This | | 6 | 99 | 3/7/2008 12:31:40 AM |
TLabel and OnChange event Hello,
I need for my component, derived from TLabel, an event when the Caption was changed. The Caption's setter method is private. Also overwriting SetTextBuf doesn't work.
| | 2 | 75 | 3/2/2008 11:13:54 AM |
Send an object and use in a function Hello! I want to send a TDBEdit and a TImage when I call my function, and use it to set a picture to the TImage and focus the TDBEdit. How can I do it? Thank you very much. Regards, | | 2 | 88 | 2/27/2008 9:41:59 PM |
Returning Class Objects from a Function Lets say I have a new class called myclass.
I want to do this.....
myclass FooBar(int x) { myclass a; a.get(x); // some function called get return a; } | | 5 | 76 | 2/27/2008 6:59:39 AM |
TButton example... Can someone point me at example code that illustrates how to create a decendant(sp) control based on a TButton (or any simple control really).
Thanks.
g.
-- Pr | | 2 | 81 | 2/26/2008 2:03:40 PM |
Delphi to C++ Hi,
Can someone translate the following DelphiCode to C++
Thanks
Sabetay
procedure TForm1.ListView2DragDrop(Sender, Source: TObject; X, Y: Integer); var | | 6 | 87 | 2/19/2008 6:15:15 PM |
Setting Property/Event categories in Object Inspector. When creating a new VCL component, is there any way to define new event categories for the Object Inspector, and to define which events are in which categories? What about for non-event prop | | 10 | 95 | 2/14/2008 7:12:44 PM |
Doing runtime init using property values set in designer. In BCB 2007, I have a VCL component that needs to do some one-time initialization, at runtime, right when the program starts, but the initialization depends on some property values that were s | | 13 | 82 | 2/14/2008 7:06:11 PM |
need help for having checkboxes in a virtual listview Hi
I'have develop a class for handling all the stuff needed for making virtual list view worked (see post Virtual listview this might help) I'm trying to add checkboxes management, b | | 5 | 81 | 2/12/2008 8:51:46 PM |
Virtual listview this might help Hi,
Recently I had to change all listviews in my app to make them virtual. I finally developped a "feeder" which does what has to be done for virtual list view to work prop | | 1 | 68 | 2/12/2008 12:08:12 PM |
Using frames dynamically with no ParentWindow Hi, I have some frames I'm using in a project. The frames have some buttons, edit boxes and some TMemos.
In my program, I create a frame,
Aframe* = new AFrame(NULL);
| | 2 | 87 | 2/8/2008 6:31:55 PM |
Responsibilities when overriding TControl::WndProc. I am writing a new VCL component based on a TControl. In general, can I assume that all the Really Important Stuff has been done by the real window procedure (i.e. whatever calls TControll:: | | 22 | 211 | 2/8/2008 1:00:27 AM |
Default values for "double" __properties. The following __property declaration:
__property double RotateSensitivity = {read=FRotSens,write=FRotSens,default=1.6};
Fails to compile; the compiler says "constan | | 13 | 73 | 2/7/2008 6:15:58 PM |
Set<> properties; and other special property types. I'm trying to write a VCL component with a property like the BorderIcons property in TForm -- where it expands in the object inspector to a set of bools. I looked at the TForm header for an | | 9 | 61 | 2/7/2008 12:08:04 AM |
BDS2006: Getting an {UNDEF ...} from the Pascal-Source to the C++-Header Hello,
I must add an {UNDEF ...} to the Pascal-Source of a component which must be then included in the C++-Header. I don't know whether I need the {UNDEF ...} in the Pascal-File at a | | 3 | 72 | 2/6/2008 8:13:29 PM |
Adding an OnAfterPaint event to RichEdit
Hi,
I added an OnAfterPaint event to a RichEdit quite a few years ago.
The code looks like this:
void __fastcall TMyRE::WndProc(Messages::TMessage &Message) { | | 4 | 95 | 2/4/2008 11:12:11 AM |
Properties and getter/setter visibility BCB5 - Are we the last ones using it?
We have a control with a published property that takes an int. A co-worker overloaded the setter function to take an __int64. The property type wa | | 2 | 69 | 2/1/2008 1:37:03 PM |
DPI Character Is there anyboby that can tell me how to read the DPI of character (normal character or big character)? I'm using Borland C++ Builder 6
Thanks Silvana
| | 1 | 95 | 2/1/2008 9:15:06 AM |
Save custom TStrings property in dfm Hi all. I'm using Borland C++ Builder 4. I have extended a TComboBox with another TStrings property. This new property name is Values.
When I look inside DFM file as text file I | | 2 | 84 | 1/31/2008 11:12:50 AM |
Undefined references when building BPL packages. I'm kind of embarassed to post about linker errors but this one is really frustrating me... I am trying to write a VCL component in a BPL package. This component's header #includes DB.hpp an | | 3 | 96 | 1/30/2008 6:47:53 AM |
How to save component to the VCL Stream Hi
I have made an Imagelist derived from TComponent Internaly it store the images in my own TAjBitmap which is not derived from VCL.
How do write the imagedata to the VCL str | | 1 | 86 | 1/24/2008 6:40:54 PM |
Breaking the Paint ! I got an application wich changes properties meanwhile the mouse moves. When a property changes, I do fire Invalidate !
How to break to Invalidate chain... or the Paint chain... So that o | | 1 | 74 | 1/22/2008 7:55:53 PM |
WndProc vs BEGIN_MESSAGE_MAP Hi group,
I entered the wonderfull world of C++ builder just a few weeks ago, so please forgive my ignorance.
Studying various examples about component writing, I came to the co | | 11 | 433 | 1/22/2008 7:52:58 PM |
Control has no parent window error Hi all:
I have written a Control to check a password. Code is like this:
ControlPrueba.h file:
//------------------------------------------------------------------------ | | 5 | 133 | 1/22/2008 3:52:32 PM |
Breaking the Paint (continued) Impossible to cancel all pending Paint's calls ? And to do a definitive one ?
| | 0 | 84 | 1/22/2008 3:51:21 PM |
How to use Events at console
for example,i want to use TTimer 's ONTimer events at console,how?
| | 1 | 74 | 1/22/2008 3:28:18 AM |
Icon in Palette Hi, I worte my component and installed it. How can I insert an Icon inside Tool palette for my component?
| | 4 | 73 | 1/20/2008 1:12:02 PM |
TImageList add image dialog ? Hi
I have made my own ImageList and I would like to be able to add picture in the IDE just like the TImageList do it, so is it possible to use the "add image dialog" that Yo | | 9 | 85 | 1/15/2008 3:21:52 PM |
Why does Ceil return a negative number?
var i1, i2, R: Int64; U: Double;
begin i1 := 2958333333; i2 := 0; U := 1.0;
R := Ceil((i1 - i2) / U); // R equals -1336633963 | | 4 | 111 | 1/13/2008 12:34:49 AM |
polymorphism and TObject Hello all,
I'm trying to derive a class from 2 classes. One of them begin TObject.
class TMyBase { .... }
class TMySquare : public TObject, public TM | | 10 | 97 | 1/11/2008 8:31:54 PM |
How to dynamically create a TEdit in a component Hi
I'm trying to create a component which will contain several TEdit It compiles, the component is installed in the IDE but when I drag n drop it on a form I have an error: Control ' | | 9 | 83 | 1/9/2008 7:25:04 AM |
Listview Column header resizing related events in a component Hi,
I'm building a component that contains a listview and I'd like to get notification of listview's columns resize within my component. The folowing codes works fine for a custom_li | | 17 | 99 | 1/9/2008 7:19:14 AM |
Unresolved external in BCB2007 I have a set of standard dialogs that I've modified only to adjust the parent window (so the dialog doesn't bring the application main form to the foreground when being displayed), and I'm get | | 8 | 136 | 1/8/2008 4:23:09 AM |
Strange problem with properties: ok at design time but linker error at runt ime Hi,
I'm having a very strange problem with properties of one of my custom components. I have two custom components: TModbusSerialClient and TSerialPort, which are linked via a prope | | 3 | 105 | 1/7/2008 10:32:25 AM |
Enum Lists not sure if i'm in the right place here. basically, i'm looking for a way to get a list of enum names. for example, the property editor for TPanel will have a drop down list of enum values b | | 13 | 81 | 12/20/2007 6:31:26 PM |
Draw TButtonItem Hi,
I've created a derived class of TButtonItem.
class TMyButtomItem : public TButtonItem { public:
__fastcall TMyButtomItem(Classes::TCollection* Collection);
| | 4 | 107 | 12/16/2007 9:24:25 PM |
Strange RTTI problem - any suggestions welcome!
I've derived a C++ component from a third-party Delphi component, and I'm getting a crash when trying to use the GetPropList RTTI function with it:
function GetPropList(TypeInfo: | | 2 | 98 | 12/12/2007 8:33:05 PM |
TCustomDrawGrid repalcement I need a tCustomDrawGrid replacement that will allow me to access more than an ints worth of rows, i.e. ARow must be an __int64. I either need a third party one or some pointers on how I wou | | 16 | 124 | 12/12/2007 1:56:07 PM |
Why do these constructors conflict? I am trying to override the constructor for this object, but keep getting this error: C++ Error] DBComboBox1.h(85): E2113 Virtual function '_fastcall TFieldProperty::TFieldProperty(cons | | 5 | 99 | 12/7/2007 9:15:03 PM |
Consuming Delphi components Hello,
I have my component library created with Delphi 2007 for Win32 - the code is properly separated to runtime and designtime packages (*.dproj and *.dpk files). Now I'd like to | | 3 | 122 | 12/5/2007 12:48:45 PM |
Access Violation from PropertyEditor Descendant Okay , I am using BCB 5.0 (I know, Big sigh) trying to build a custom component that has a TField property that connects it to a specific field provided by the datasource; all this works. | | 2 | 90 | 12/3/2007 8:21:00 PM |
custom groupbox
I am making a custom groupbox component derived from TCustomComponent. I am using regions to make part of it transparent. It should be a box with another smaller box with the caption in it slight | | 9 | 96 | 11/30/2007 5:46:10 PM |
Making a Component Property available to other Components in object Hi,
I have a component 'Foo' which has a published property of type integer named 'FooInt' (as an example). This property appears fine in the object inspector. Now, I would like thi | | 5 | 70 | 11/29/2007 8:07:38 AM |