c++builder

Keep the scrollbars hidden in a Delphi dbgrid (even on resize)

时光怂恿深爱的人放手 提交于 2019-12-10 03:00:47
问题 For our dbgrid we want the scrollbars to be constantly hidden. Since TDBGrid doesn't have a 'scrollbars' property, we use: ShowScrollBar(DBGrid1.Handle, SB_VERT, False); ShowScrollBar(DBGrid1.Handle, SB_HORZ, False); However when we resize the window (and the panel containing the dbgrid), for a second the scrollbars appear and becom hidden again only after recalling the two above methods. A solution is to call these methods in DrawColumnCell, but this causes flickering of the dbgrid, even

How create an standalone (without DLL file dependencies) C++Builder console application like a Delphi application?

霸气de小男生 提交于 2019-12-09 16:28:41
问题 When I create a Delphi console application, I can deploy the generated EXE file without worrying about external DLL files. But if I create very simple C++Builder (version 2007) console application (no VCL) the EXE file requires the CC3280MT.dll file to run. How can I avoid which my C++Builder console application requires the CC3280MT.dll file? Even this simple code cause this dependence: #include <iostream.h> #pragma hdrstop #pragma argsused int main(int argc, char* argv[]) { cout << "Hello"

VirtualTreeView - different color of text in the same node

≡放荡痞女 提交于 2019-12-09 15:54:34
问题 I am attempting to create a view in TVirtualStringTree which will be similar to something like this: In the above example I have shown some of the possible scenarios I want to reach. FolderA has bold text and after that red-colored unbolded text just behind it in the same node. I am looking for way to make this sort of output. However, if this is too hard or too problematic to create, I would be happy with FolderB or FolderC type of output - which could probably be made with 2 columns, one

Converting COFF lib file to OMF format

点点圈 提交于 2019-12-09 13:31:31
问题 Is there any way to convert COFF library (lib file) to OMF library for using with C++Builder6 ? This coff is not just import library, it conatians some code. When I try to convert it using borland's coff2omf.exe, I get 1KB file from 15KB file. 回答1: It's fairly typical for an OMF object file to be a lot smaller than an equivalent COFF object, so what you're getting may well be valid. If you find that it's really not, you can probably break the lib file into individual object files, disassemble

Does the .res file need to be in source control?

依然范特西╮ 提交于 2019-12-09 10:24:14
问题 In C++Builder XE5. My understanding is that the binary file MyProject.res (which is created by the compiler in the same directory as the .cbproj file) contains compiled versions of the program icon and the project version details (although mine also seems to contain an XML manifest). But this info is also contained in the .cbproj file and the .ico files ; and if I delete the .res file then it seems to get recreated exactly was it was next time I open the project. So is it safe to mark *.res

Make movie with data files using gnuplot

社会主义新天地 提交于 2019-12-09 04:46:51
问题 I do have many data files. They look like 1.dat 2.dat .... .... 1000.dat I want to make a movie using these files plotting them in sequence. Does anyone have any idea please? It would be my great pleasure if you can help me. ND 回答1: You need two steps here. The first one is to create jpeg or png plots from the data. I do not know what your data looks like, but I guess you've already found out how to plot it with gnuplot. Gnuplot has a loop option, but if you're on a linux box, you can easly

IDE generated USEFORM macro calls changing their order

随声附和 提交于 2019-12-08 16:51:27
问题 We have a C++Builder XE project (VCL Forms Application) that has a few dozen forms and units in it. Whenever a file belonging to the project is added, deleted, or renamed, the IDE should do two things: A call to USEFORM macro is added to or altered in the Project Source file (ProjectName.cpp) if the affected unit is a form or frame A CppCompile element in the project file (ProjectName.cbproj) is added or altered However instead of just doing the necessary changes, the IDE shuffles some of the

C++ Builder bccarm error when calling std::vector::push_back with TObject descendant

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 13:41:32
问题 I have some simple C++ code which won't be compiled by the Clang based C++11 compiler bccaarm of C++ Builder 10.1 Berlin. This is the code: TComponent* Comp = new TComponent(this); std::vector<TComponent*> Comps; Comps.push_back(Comp); And this is the error: [bccaarm error] stl_iterator.h(963): rvalue reference to type 'value_type' (aka 'System: classes::TComponent * __strong') can not be bound to lvalue of type '__borland_class * isTObj __strong' (aka 'System::Classes::TComponent * __strong'

iOS notifications sporadic (FMX)

别说谁变了你拦得住时间么 提交于 2019-12-08 11:04:42
问题 Following the Embarcadero docs at this link i'm testing notifications on iOS (in FMX app built with C++). I've done the follownig: Added #include <System.Notification.hpp> to the header file Set FMLocalNotificationPermission to true Dropped TNotificationCenter component on the form Then, i put the following code in a button click: void __fastcall TForm1::ScheduleNotificationClick(TObject *Sender) { if (NotificationCenter1->Supported()) { TNotification *myNotification = NotificationCenter1-

move TRectangle with mouse (FMX, Win32)

十年热恋 提交于 2019-12-08 11:01:50
问题 I have an FMX form with a TLayout on it aligned to client. On the TLayout I have a TRectangle. I can move the TRectangle easily with the following code in a button click event: Rectangle1->Position->X = Rectangle1->Position->X + 10; Is there a clean way for me to do this (move the rectangle) with the mouse? Like click on the Rectangle and move it around to a new location? I'm just playing around trying to make a little drawing program to learn.... Using C++Builder 10.2 Version 25.0.29899.2631