Recent Posts

Pages: [1] 2 3 ... 10
Linux / Re: TrayIcon Events
« Last post by Handoko on Today at 04:41:58 am »
I have a small tray icon program, so far it is working good.

I checked the code, I think you may need to add this:

Code: Pascal  [Select]
  1. procedure TfrmMain.TrayIconClick(Sender: TObject);
  2. begin
  3.   mnuTray.PopUp; // mnuTray is a TPopupMenu instance
  4. end;
OpenGL / Re: What's wrong ?
« Last post by Handoko on Today at 04:32:00 am »
The issue can be solved simply by adding inherited; at the beginning of your TOpenGLcube.Paint method in myopenglcube.pas.

But I got SIGSEGV exception (see the image below) when closing the program. I found that setting Parent := Panel1; (or := Panel2) in your TForm1.FormCreate will trigger the exception. Unfortunately I haven't found solution for this.

Tested on Lazarus 1.8.4 GTK2 Linux 64-bit.
Linux / TrayIcon Events
« Last post by dbannon on Today at 02:05:36 am »
On Linux (at least) I don't seem to be able to see any events from clicking on a System Tray Icon.  OnClick, OnDblClick, OnMouseDown, OnMouseMove, OnMouseUp.

And even trying to hook into its PopupMenu fails, OnPopup does not get fired either.

Anyone know any background to this please ?

Easy to reproduce, drop a TrayIcon ('Additional') on a form, make a menu for it, set an icon and then point all the events to a method (or each to own method) and that method never gets called. The menu pops up OK, its items get responded to etc.

General / Re: JSON Config sometimes file is empty
« Last post by engkin on Today at 01:50:10 am »
How to reproduce?

The broken file is full of zeros. From its size, it does not seem to take long to have this happen.

Does gsRealm change, or is it a fixed value?

Can you save sSeccion, sKey and sValue in another file to track the sequence of values needed to cause this?

Your code seems to catch any exception, but does not report them. Is that intentional?

Finally, the usual basic info: Laz/FPC versions, OS, GUI or console app?
General / Re: TryStrToDate and {$INCLUDE %DATE}
« Last post by PeterX on Today at 12:12:59 am »

Cool - there's much more inside. To be compiled into my EXE file ! Wow !
OpenGL / What's wrong ?
« Last post by PeterX on Today at 12:09:45 am »

I played around with a OpenGL example.

But my derived component does not behave as the code in the MainForm.

What's wrong ?
Android / Re: LAMW with jar libraries
« Last post by jmpessoa on March 25, 2019, 11:02:05 pm »

You can try the demo "AppIntentDemoZXing1"

But we can implement a pascal interface to your jar library.
Upload  a simple java demo to some "online open drive"....

General / Re: JSON Config sometimes file is empty
« Last post by Lainz on March 25, 2019, 10:56:53 pm »
Here is the broken config file attached, I renamed it from json to txt to be able to upload it to the forum.
Android / LAMW with jar libraries
« Last post by Robert Gilland on March 25, 2019, 10:48:17 pm »
I used Tools -> LAMW -> Use Import Java Stuff.

All it did was move files from my Third Party java Library to my Project directory.

I was expecting it to convert the java files to pas files.

So I could use them in my LAMW application.

No Idea how to actually use these files in my project.

I have a Bar code scanner jar library. I need to access.

None of the demos or example projects seem to help.

I would upload the jar library but it is too big.

LCL / Re: TMemo & Line Index
« Last post by madref on March 25, 2019, 10:45:50 pm »
Thanks everyone.... it works
Pages: [1] 2 3 ... 10