Re: [Lazarus] Drag/drop project and package filenames on the IDE

2021-11-16 Thread Juha Manninen via lazarus
On Sun, Nov 14, 2021 at 2:52 AM Alexey Tor. via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> This must be tested with the patch: --pcp= parameter, which is used in
> IDE shortcuts from fpcupdeluxe. What if different --pcp content is
> passed (1st instance has another --pcp).
>

My commit only changed the way the parameters are interpreted.
*.lpi is interpreted as a project always, *.lpk as a package.
It does not affect the logic of how a single instance / multiple instances
are opened.
Do you see a problem in how it behaves?

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Code generates an error after upgraded to FPC 3.2.2

2021-11-16 Thread Jamal Gabra via lazarus
Hello all,

I just found out that something has changed from FPC 3.2.0 to FPC 3.2.2
that is starting to cause error in a simple app I developed to send emails
through MS Outlook.

I use Lazarus v2.2.0RC2 and FPC3.2.2.

I use OLEVariant, and I believe the changes have taken place in the
unit ComObj, but I could be wrong.

PS:I do not own this code.

Snippet code:

uses comobj, variants;

...

procedure TForm1.SendBtnClick(Sender: TObject);
const
  olMailItem = 0;
  olByValue = 1;
var
  MailItem: OLEVariant;
  podatak: OLEVariant;
begin
  try
Outlook := GetActiveOleObject('Outlook.Application');
  except
Outlook := CreateOleObject('Outlook.Application');
  end;

  namespace := Outlook.GetNamespace('MAPI');
  namespace.logon;

  MailItem := Outlook.CreateItem(olMailItem);
  podatak := 't...@test.com';
  MailItem.Recipients.Add(podatak);
  MailItem.Recipients.ResolveAll;
  podatak := 'Subject';
  MailItem.Subject := podatak;
  podatak := 'Body Msg';
  MailItem.Body := podatak;

  MailItem.Display;//send

  Outlook := Unassigned;
end;

This code last worked fine while on FPC 3.2.0 but when upgraded it started
erroring at the line:
MailItem*.Subject* := podatak;

Appreciate if someone can assist in pointing out something (the above code
or the FPC code :)

Not sure if this is the right place to report this but will start here.

Thank you...

Jamal
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TextHint in TComboBox

2021-11-16 Thread Marcos Douglas B. Santos via lazarus
On Mon, Nov 15, 2021 at 4:50 PM Juha Manninen via lazarus
 wrote:
>
> On Mon, Nov 15, 2021 at 8:12 PM Marcos Douglas B. Santos via lazarus 
>  wrote:
>>
>> Yes, I'll try to copy from 2.2RC. Thank you.
>
>
> Why can't you use 2.2RC directly? It is very close to the final 2.2.
> Do you experience a regression bug there?

I need to use the same version which all developers in the company are using.
But we're testing 2.2RC to see if we can upgrade directly. Thanks.

Marcos Douglas
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus