

Ian Branch
Members-
Content Count
1431 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Ian Branch
-
Getting the Windows version
Ian Branch replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Hi Thomas, I have had a look at the OSDN page. Where/how does one actually download the dzLib? I don't recognise any download type prompt. Regards & TIA, Ian -
Hi Team, I think, from time to time I have seen a function embedded in another function. I think. Something like.. function foobar(param1, param2: string): string; var somevar: string; begin function inside(Param3: string): string; var anothervar: string; Begin Do something with Param3; .... ... Result := anothervar; end; ... Somevar := inside(somestring); Result := Somevar; end; Is this doable? If so, what is the mechanism for it pls? Why do I want to do this? So I can embed a function in the main function and not have to have it as a separate app function. Regards & TIA, Ian
-
Ahh. Excellent. Thanks Remy.
-
Hi Guys, When I build my Apps I send the .exe files to an Applications folder for testing. When I do that, the .drc and .map files go there too. Is there any way to have the .drc & .map files stay in the source/development directory, or somewhere else, rather than the Apps directory? Regards & TIA, Ian
-
Alternative directory for .drc & .map files?
Ian Branch replied to Ian Branch's topic in General Help
Hi Thomas, Yes I discovered that. Thanks for the alternative suggestion. Regards, Ian -
Alternative directory for .drc & .map files?
Ian Branch replied to Ian Branch's topic in General Help
Hi Sue, Excellent. Works perfectly. Thank you. Regards, Ian -
Hi Guys, My IDE has suddenly stopped opening all the Favorite Projects in the Welcome Window. They are all showing. It won't even allow me to Delete them. I have rebooted the PC and restarted Delphi but NG. Any thoughts/suggestions on how to fix this? Regards & TIA, Ian
-
Delphi 10.3.1 IDE Favourites no longer working??
Ian Branch replied to Ian Branch's topic in Delphi IDE and APIs
OK. Instructions are correct. I just can't read straight. :-( -
Delphi 10.3.1 IDE Favourites no longer working??
Ian Branch replied to Ian Branch's topic in Delphi IDE and APIs
Hi Guys, Thanks for the Pointer and additional info. Installed and being populated as I type. Instructions for disabling the standard Welcome Page in the registry don't seem to match for D10.3. Not game to experiment so left as is. Still be interested to find out why the standard Welcome Page no longer works. Regards, Ian -
Delphi 10.3.1 IDE Favourites no longer working??
Ian Branch replied to Ian Branch's topic in Delphi IDE and APIs
Hmmm. Although all the Favorite Projects and the Open Recently are showing, none of them will open when selected. 😞 They did this morning. File Associations seem to be OK. I can double click on a .dproj file and it opens OK. -
Hi to the Community Manager, There seems to still be an active interest in the TurboPower component sets. Is there a chance of a TurboPower Tools sub forum under Delphi Third-Party which then subsets into the various TurboPower Component Packs.? Regards & Tks for considering. Ian
-
Hi Guys, Is there any kind of master/reference list around that details what has changed between Delphi versions? I am looking at an older library and the compile messages are saying things like.. [dcc32 Warning] xxxxx.pas: W1000 Symbol 'TImageIndex' is deprecated: 'Use System.UITypes.TImageIndex' and [dcc32 Warning] xxxxx.pas: W1000 Symbol 'TScrollStyle' is deprecated: 'Use System.UITypes.TScrollStyle' and [dcc32 Warning] xxxxx.pas: W1000 Symbol 'ThemeServices' is deprecated: 'Use StyleServices' amongst others. when were they introduced? I have come across this issue many other times when working older code. Regards & TIA, Ian
-
Hi David, Agreed, but knowing where they change means I can insert conditionals relevant to the Delphi version. Ian
-
Hi Boris, Thanks for that. It is a big step forward from where I was. Regards, Ian
-
Hi Sherlock, Thanks for that. I was afraid that would be the case. I only have Rio installed so searching back through isn't an option. Sigh! I'll try one of the other links mentioned in the thread. Regards, Ian
-
TurboPower component sets sub forums.
Ian Branch replied to Ian Branch's topic in Community Management
I can live with that. -
Hi Team, I have a small App that lets users call other Apps using the following borrowed code example for MyApp1 & 2... procedure TMainForm.btnMyApp1Click(Sender: TObject); var SEInfo: TShellExecuteInfo; ExitCode: DWORD; ExecuteFile: string; begin lMyApp1Open := True; Cursor := crHourGlass; btnMyApp1.Color := clLime; // Standard is clBtnFace ExecuteFile := sAppsFilePath + '\MyApp1.exe'; FillChar(SEInfo, SizeOf(SEInfo), 0); SEInfo.cbSize := SizeOf(TShellExecuteInfo); with SEInfo do begin fMask := SEE_MASK_NOCLOSEPROCESS; Wnd := Application.Handle; lpFile := PChar(ExecuteFile); nShow := SW_SHOWNORMAL; end; Cursor := crDefault; if ShellExecuteEx(@SEInfo) then begin repeat Application.ProcessMessages; GetExitCodeProcess(SEInfo.hProcess, ExitCode); until (ExitCode <> STILL_ACTIVE) or Application.Terminated; end else ShowMessage('Error starting MyApp1!'); btnMyApp1.Color := clBtnFace; // Standard is clBtnFace lMyApp1Open := False; end; // procedure TMainForm.btnMyApp2Click(Sender: TObject); var SEInfo: TShellExecuteInfo; ExitCode: DWORD; ExecuteFile: string; begin lMyApp2Open := True; Cursor := crHourGlass; btnMyApp2.Color := clLime; // Standard is clBtnFace ExecuteFile := sAppsFilePath + '\MyApp2.exe'; FillChar(SEInfo, SizeOf(SEInfo), 0); SEInfo.cbSize := SizeOf(TShellExecuteInfo); with SEInfo do begin fMask := SEE_MASK_NOCLOSEPROCESS; Wnd := Application.Handle; lpFile := PChar(ExecuteFile); nShow := SW_SHOWNORMAL; end; Cursor := crDefault; if ShellExecuteEx(@SEInfo) then begin repeat Application.ProcessMessages; GetExitCodeProcess(SEInfo.hProcess, ExitCode); until (ExitCode <> STILL_ACTIVE) or Application.Terminated; end else ShowMessage('Error starting MyApp2!'); btnMyApp2.Color := clBtnFace; // Standard is clBtnFace lMyApp2Open := False; end; The issue is that if both MyApp1 & MyApp2 apps are called and MyApp1 closes, it does actually close, it appears to stay open in my front end app, the buttons stay colored, until MyApp2 closes. Then both buttons return to normal color. This is an area I have no knowledge of. Can someone advise/suggest what is not happening and how it can be corrected please? Be greatly appreciated. Regards & TIA, Ian
-
Hi David, Thanks for your input. Appreciated. I have scrapped the existing routine(s) and gone a different route. All working as desired now. Regards, Ian
-
Hi Team, D10.3.1. It is a long time since I had a 'clean' Delphi edit window. My PC did a Windows update, 1809, and all hell broke loose. Had to reinstall Delphi from scratch. 😞 Anyway I install all the usual add-ons, Gexperts, cnPack, DDevExtensions, etc. Added all the required 3rd party stuff. All good. I was busy editing away when I noticed that the IDE Navigation Bar would only show those Functions/Procedures I had added to the app source, none of the ones for normal events. See attached screen shot 2. cnPack was displaying all of them. See screen shot 3. Is this something wrong or normal? If the Delphi Nav Bar should be showing all of them, is there a 'switch' somewhere? I did disable/enable the Nav Bar to no effect. It only seems to affect those projects that were originally created in D10.2.3 or earlier. Anything created in 10.3.0 or later is fine. Thoughts/suggestions? Regards & TIA, Ian
-
Yes, I have MMX installed. You wouldn't have any in-line variable declarations in your source would you?
-
Hi Attila, Thank you. I was aware of the issue with not recognizing the syntax correctly, but I wasn't aware of its impact on the Nav Bar listing of procedures/functions. Is there a RSP for this? Regards, Ian
-
So, the thicken plots.... I found that most of the source files in the project were in fact ok and all the procedures/functions/events were showing. Hmmm, what was different in the two that they weren't? Only two functions were showing. In my GenKey function, the second in the source, I had the following line.. {code} for var i: Integer := 1 to 7 do ... ... {code} With the attendant underlining of 'var' and ':='. See screen shot 4 attached. Hmmmmm. I wonder???? So I declared i and changed the code to the conventional "for i := 1 to 7 do" BINGO!!! I now get all the procedures/functions/events showing. See screen shot 5 attached. Reverse the change and the issue returns. Reverse it again and all good. I think I found a Bug!!! Can someone replicate this and verify please... I'm going to have a look at the other file now. Regards, Ian Update: Same issue with the same inline code in the second file.
-
Hi Team, Anybody know if there will be such a beast in Getit? Regards, Ian
-
Hi Fred, In fact, I have, I was just looking for the 'Official' sanctioned one. :-) Regards, Ian
-
Hi Team, I am updating an old project ex D2007, to Rio. Have it all working fine. I went to select a style, 'Iceberg Classico' which was selected and built OK. When I run the App in either the IDE or stand alone it tells me "Style 'Iceberg Classico' not found.". What could be stopping it please. The Style is fine on my newer projects. Regards & TIA, Ian