Jump to content

Ian Branch

Members
  • Content Count

    1435
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Ian Branch


  1. Hi Thomas,

    Windows 10.

    >>What's your screen resolution(s) and scaling?

    2 x 1920 x 1080.  Both 100%.

    >>If multiple monitors:

    >>Which one is primary and which one is the IDE on?

    Identity 1 is the Primary and the IDE opens on and usually runs on 1 however sometimes I flip it to 2, but only when i need to do something on 1.

    >>Do you have the task bar on both?

    Windows Task bar?  Yes.

     

    Regards,

    Ian


  2. Hmm.  Issue.  When I click on GExperts in the IDE menu, the GEXperts Menu briefly flashes then it immediately opens the ASCII Chart.

    See attached.

    Screenshot_1.jpg

    P.S.  ALL other installed 'Experts' disabled and the same occurs.

    P.P.S.  Doesn't happen in D2007.

     

    Regards,

    Ian


  3. Hi team,

    Win 10, D10.3.3.

    New form, add a button and a TOpenDialog.

    Filter set as 'All (*.mkv;*.avi;*.mov;*.mp4;*.mpg;*.flv;*.wmv)|*.avi;*.mov;*.mp4;*.mpg;*.flv;*.wmv|Matroska (*.mkv)|Audio Video Interleave (*.avi)|Quicktime File (*.mov)|*.mp4| *.mpeg|Flash (*.flv)|Windows Media (*.wmv)';

    Run it.  Select, in my case, a video file.

    I get the result as shown in attached screeshot_7

    Drop the file name dropdown and I get as shown in screenshot_8.

    Ummmm.  What the!

    The initial 'name' per SS_7 changes with the file but is always the same for any particular file.

    Any thoughts/suggestions?

    Regards & TIA,

    Ian

    Screenshot_7.jpg

    Screenshot_8.jpg


  4. Hi David,

    I am clearly having a mental block on this subject.  Starting to feel like a dunce. 😞

    Which documentation are you referring to?

    When I did F1 on FindWindow in Delphi it took me to "FMX.Platform.Win.FindWindow".  Singularly unhelpful.

    I don't understand what you mean by "It's the text of the window.". 😞

    Regards,

    Ian


  5. Hi Team,

    Accidentally got it sorted.

    I should have had..

    FindWindow(PChar('TMainForm'), nil);

    And this works.  However I would rather use the Application's name rather than having to go into each of the apps and change their class definition.

    So, I still don't understand exactly what goes into 

    FindWindow(nil, PChar('MyApp'));

    for 'MyApp'.

    Regards & TIA,

    Ian


  6. Hi Guys,

    Thank you for your inputs.

    The picture is that I have a head application that runs one or more function specific applications using the shellexecute functionality.  That all works fine.

    The individual apps can be run as a standalone app.

    As it stands, each individual App has to be closed.

    What I would like to do is when the head app is closed it automatically closes any apps that are open.  Even if the subordinate apps were run from outside the head app.

    Perhaps to complicate matters, the main form of each subordinate app is defined as follows.  

    type
      TMainForm = class(TForm)
       ....
       ...

    I tried..

    FindWindow(nil, PChar('TMainForm'));

    but that didn't work. 😞

    Regards,

    Ian


  7. Hi Team,

    D10.3.3, Win 10.

    I am experimenting with closing an external App programaticaly.

    I have the following code..

    procedure TForm10.Button2Click(Sender: TObject);
    var
      hnd: HWND;
    begin
      //
      hnd := FindWindow(nil, PChar('MyTestApp'));
      //
      if hnd = 0 then
        MessageDlg('MyTestApp is apperently not running.', mtInformation, [mbOK], 0)
      else
        MessageDlg('MyTestApp is apperently running.', mtInformation, [mbOK], 0);
      //
    end;

    Even though MyTestApp is clearly running, the FindWindow doesn't seem to find it.

    Should this work?

    Is there something I have missed?

    Is this a known issue/bug?

    Is there an alternative?

     

    Related - What actual Application property is the application name in the FindWindow(nil, PChar('AppName')); ?

     

    Regards & TIA,

    Ian

     


  8. Hi Team,

    Is there some way to call the default windows media player, what ever the user has set it as, from delphi?

    Some users use VLC, some leave it as Windows Media Player, others use other progs.

    I would need to be able to pass it a file name.

    I have looked at TMediaPlaye but it is too limiting.

    Regards & TIA,

    Ian


  9. Hi Team,

    Question 1.  What are the consequences/pros & cons of using MyForm.Create(nil).show; v MyForm.Create(self).show;?

     

    Question 2.  I have asked this somewhere/sometime in the past but I don't recall where/when or the answer.  When I open some projects they open showing the form, others open showing the source code and yet other open not showing either.   Annoying..    Where is this information kept/save so I can set or reset it so I get them to all open the same please?  If I in fact can...

     

    Regards & TIA,

    Ian


  10. When I installed D10.3.3 replacing D10.3.2, it seemed to lose the Fix Pack in part.  Couldn't find a .dll, although IDE Fix Pack 6.4.4 still showed during Delphi start up.

    I found the IDE to be horribly slow and a little weird compared to what it was in D10.3.2 with FM 6.4.4.  :-(

    I reinstalled FP 6.4.4 and all performance restored.  :-)

    • Like 1

  11. Hi Team,

    Just installed D10.3.3 32 & 64 bit.  Did have D10.3.2 32 bit installed.

    Never installed 64 bit before.

    Went to create a small 64bit project and there doesn't seem to be a 64bit option?

    If I look into the Tools|Options|Language|Delphi|Library I see Windows 64-bit as a selectable platform.

    Is there somewhere else I need to set to enable 64bit?

     

    Regards & TIA,

    Ian

     

    Screenshot_2.jpg

    • Like 1

  12. Hi Team,

    I'm sure this is something I should know. ;-)

    If I call a Form off the Main Form via a ToolBar Button using say "TSecondForm.Create(nil).Show;", it appears over the Main Form.  Good.

    From time to time the Main Form will re-appear between the SecondForm and say a dialog.

    I need the Second, Third, etc, forms to be non-modal so that more than one of them can be open(ed).

    I have a work around by when the Second, Third, etc form is called/created it calls Application.Minimize.  Messy.

    Is there a better way to manage this issue?

     

    Regards & TIA,

    Ian

×