-
Content Count
170 -
Joined
-
Last visited
Community Reputation
9 NeutralTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I have some to bytecode compiled python scripts. Is there a way to run them via ExecFile or other functions?
-
Thank you, good to know. But I dont create the module in the main unit, where the python component is on the form. I create it instead when another form is created, in the formcreate event and thought I must free it also in the formclose event. So how shall hat work when I dont free the module? It would get always created again when the form is created.
-
I have a python engine on form 1, dropped to the form, which is working fine. Now I create a module in code in another unit: module:=TPythonModule.create(nil); module.Engine:=GetPythonEngine; module.ModuleName:='delphicallback'; module.OnInitialization:=InitPythonModule; module.Initialize; The InitPythonModule event contains just: TPythonModule(Sender).ClearMethods; TPythonModule(Sender).AddDelphiMethod('callback',delphi_callback,'callback(name, value)->value'); This works, I execute a python script which send data back to the module "delphicallback". All is fine so far, I get the data from the python script. When I close the form, I free the module with module.free; Still all is fine. But when I then try to open the form again, I get the error "No python engine was created" when it creates the module. What did I miss?
-
I need to modify forms the moment they are created, before they are shown. And there are many forms, so i cant use the onCreate event. I know I can check the Screen.Forms[], but I would like to use an event, so the code to check the forms array is only called when needed. Is this somehow possible? I currently use such test code: var i:Integer; begin Result := nil; for i := 0 to Screen.FormCount - 1 do begin if Screen.Forms[i].Handle = AHandle then begin Result := Screen.Forms[i]; break; end; end; end; begin if (Msg.message = WM_DWMNCRENDERINGCHANGED) then begin f := GetFormByHandle(Msg.hwnd); if Assigned(f) then begin // Process form here end; end; end; I know the WM_DWMNCRENDERINGCHANGED is not made for this, but it at least seems to work. I was hoping there is a proper way to do that, but I had no luck to find anything related.
-
Lets say I have a modal form , which I display with myform.ShowModal; How can I close this form when the user click outside the form? The form wont have a caption, and is just showing a listview and no buttons. The user can click an entry in the listview, and the form close. But the form should also close when the user click outside the form.
-
I would try that if I could install it. I tried installing my registered 12.2 and it popup the registration wizard and when I enter my EDN login and serial, I only get an error that I have to enter a valid serial number in order to install Delphi 12.2. It looks like once the license is expired, I cant even install older Delphi versions. That sucks! I paid for a product which I cannot install, funny.
-
And it came out just short after my subscription expired... I downloaded the patch from getit. When I start it, it tells me that it will uninstall 12.2 (I cancelled that). I assume that after it uninstalls 12.2, the installer will tell me that it cant install the patch because my subscription is expired, and I might end up with no more delphi installation. Am I right?
-
Thanks, I used a CardPanel and its fine for now.
-
Beside TJvWizard, which looks a little dated, does anybody know other free/open source components to create a wizard/multi-step form?
-
So they assume that user using the Pro version do not create large projects? I think its more a money thing again.
-
So the Delphi 64 bit compiler and 64 bit lsp are only in the expensive enterprise and architect versions? Why is that?
-
I dont have that entry in the popup menu, thats the problem. EDIT: After uninstalling madExcept, it suddenly appeared.
-
Does anybody know how that Smart Codeinsight is supposed to work? I enabled it, setup the base url and api key etc., but thats it, nowhere anything to invoke the chat window. The popup menu of the selected source does not have anything related to AI.
-
Thank you for the detailed information. I decided to go with a virtualstringtree, and that seems to work as expected.
-
That is what it is currently doing, but user complain that they lost lots of changes because they forgot to click that button. I am now playing with the virtualtreeview, that seems to work better.