Recent

Author Topic: Any led/knob graphics for mac?  (Read 12207 times)

Michael Collier

  • Sr. Member
  • ****
  • Posts: 301
Any led/knob graphics for mac?
« on: October 27, 2015, 02:11:15 pm »
I'm looking for graphical controls to simulate electronic devices such as led, knob.

I found ueControls but they don't seem to work on Mac
Quote
uE Controls is a open source set of instrumentation controls for Lazarus and Free Pascal, compilable under Windows and Linux.

Does anyone know of any other 3rd party components please?

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Any led/knob graphics for mac?
« Reply #1 on: October 29, 2015, 12:48:47 am »
You mean a LED (matrix) component like this one I wrote for fpGUI recently? If you don't use fpGUI, it should be easy to port to LCL - licensing is compatible.

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Any led/knob graphics for mac?
« Reply #2 on: October 29, 2015, 01:12:33 am »
hello,
for leds you can try the components TindLed and TLedNumber from the Industrial package include in the Lazarus distribution.

Friendly, J.P

Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Carver413

  • Full Member
  • ***
  • Posts: 119
Re: Any led/knob graphics for mac?
« Reply #3 on: October 30, 2015, 12:37:17 am »
You mean a LED (matrix) component like this one I wrote for fpGUI recently? If you don't use fpGUI, it should be easy to port to LCL - licensing is compatible.
Looks pretty cool, does it scroll ?

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Any led/knob graphics for mac?
« Reply #4 on: October 30, 2015, 12:50:09 am »
Looks pretty cool, does it scroll ?
Yes it scrolls - though this mod has not yet been pushed to the public repository. I need about another 30 minutes to clean-up some code first - this should be done over the weekend.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Any led/knob graphics for mac?
« Reply #5 on: October 30, 2015, 02:20:35 am »
hello,
with the TindLednumber component and a timer, you can scroll text but not so smooth than a led matrix component (TindLedNumber is a led segment).
code to Scroll Text :
Code: Pascal  [Select][+][-]
  1. procedure TForm1.Timer1Timer(Sender: TObject);
  2. var
  3.   ScrollPosition: Integer;
  4. begin
  5.   LEDNumber1.Caption := ScrollingText;
  6.   for ScrollPosition := 1 to (Length(ScrollingText) - 1) do
  7.     begin
  8.       ScrollingText[ScrollPosition] := LEDNumber1.Caption[ScrollPosition + 1];
  9.       ScrollingText[Length(ScrollingText)] := LEDNumber1.Caption[1];
  10.      end;
  11. end;

click on the  attachment to see animated gif

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Any led/knob graphics for mac?
« Reply #6 on: October 30, 2015, 09:30:08 am »
A LED matrix comp would be a logical addition to Industrial package, if somebody wants to make it.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

picstart

  • Full Member
  • ***
  • Posts: 236
Re: Any led/knob graphics for mac?
« Reply #7 on: October 31, 2015, 03:56:31 pm »
Thought I'd take a look at this component so I downloaded it from Git hub.
Something I have gotten used to is the very frequent failure of Lazarus code to actually work out of the box.
When installing the package using its lpk
It fails to compile
FGlyphs[lsOn].LoadFromResourceName(HInstance, OnBitmaps[LedKind]);
Not entirely unexpected due to the dependency within dependency and the sometimes lexigraphic nature of Lazarus.

IDE v1.0.12 (no ooze to other directories)  all files contained within the folder Lazarus. Windows 7 pro 64 bit
There is a resouces folder with the png's and xpm files

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Any led/knob graphics for mac?
« Reply #8 on: October 31, 2015, 04:50:22 pm »
Thought I'd take a look at this component so I downloaded it from Git hub.

Which component? Industrial package is included in Lazarus distribution.

Quote
IDE v1.0.12 (no ooze to other directories)  all files contained within the folder Lazarus. Windows 7 pro 64 bit
There is a resouces folder with the png's and xpm files

Lazarus 1.0.12 is very old. Could you please try something more recent.
Besides, if you plan to contribute code for Lazarus then you must use the development version trunk.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Any led/knob graphics for mac?
« Reply #9 on: November 01, 2015, 12:34:54 pm »
A LED matrix comp would be a logical addition to Industrial package, if somebody wants to make it.
I thought I would mention that I'm also busy building an "Industrial" set of widgets for fpGUI Toolkit. Toggle Switch and LED Matrix is just the start. ;-)
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

picstart

  • Full Member
  • ***
  • Posts: 236
Re: Any led/knob graphics for mac?
« Reply #10 on: November 01, 2015, 10:56:50 pm »
Thought I'd take a look at this component so I downloaded it from Git hub.
Something I have gotten used to is the very frequent failure of Lazarus code to actually work out of the box.
When installing the package using its lpk
It fails to compile
FGlyphs[lsOn].LoadFromResourceName(HInstance, OnBitmaps[LedKind]);
Not entirely unexpected due to the dependency within dependency and the sometimes lexigraphic nature of Lazarus.

IDE v1.4.4 (no ooze to other directories)  all files contained within the folder Lazarus. Windows 7 pro 64 bit

I installed the Win 32 version since a Lazarus win64 version errors out for lack of a make.exe file.

Again no surprise Lazarus failed with win32  when trying to install Component Industrialstuff via the lpk file.
Lazarus v1.4.4 didn't install the component due to a dependency on the debugger
module GDBMIServerDebugger
class function CreateProperties: TDebuggerProperties; override;  // Creates debuggerproperties
 
May have to go back to Lazarus  IDE v1.0.12 for a reliable version.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Any led/knob graphics for mac?
« Reply #11 on: November 01, 2015, 11:37:28 pm »
hello,
picstart has said :
Quote
IDE v1.4.4 (no ooze to other directories)  all files contained within the folder Lazarus. Windows 7 pro 64 bit

my config :  Lazarus IDE V1.4.4  32 bits   Windows 7 Home premium 64 bits  ---> No problem . IndustrialStuff package compiled and installed without error.

in Menu Tools/Options/Debugger/Debugger Type and path ---> Gnu Debugger (gdb)  . Not gnu remote debugger (gdbserver). May be it's your problem.
Friendly J.P
« Last Edit: November 01, 2015, 11:49:29 pm by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Any led/knob graphics for mac?
« Reply #12 on: November 02, 2015, 12:39:20 am »
downloaded it from Git hub
Git hub? Why? The Industrial package is part of the Lazarus distribution. Open menu "Package" / "Install/uninstall packages", select "Industrial 0.1" in the right list, "Install selection", "Save and rebuild IDE".

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Any led/knob graphics for mac?
« Reply #13 on: November 02, 2015, 12:49:43 am »
Something I have gotten used to is the very frequent failure of Lazarus code to actually work out of the box.
PEBKAC
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

picstart

  • Full Member
  • ***
  • Posts: 236
Re: Any led/knob graphics for mac?
« Reply #14 on: November 02, 2015, 03:37:57 pm »
For some reason the file lazarus which contained the earlier version   IDE v1.0.12 was not completely uninstalled as part of the install ...it may have had something to do with the earlier mingw file attributes.
The symptom was projects would run and debug but the IDE could not be rebuilt either as a clean build or when installing any package since it called GDBMIServerDebugger even though the debugger was set to  GNU debugger gdb.

Solution was to manually delete the folder Lazarus and do a fresh install
IDE 1.4.4 fpc 2.64 is now working correctly Yeah!
Thanks for the help

 

TinyPortal © 2005-2018