Recent

Author Topic: Need help testing demonstration unit on Windows and macOS and other OS's  (Read 534 times)

Aruna

  • Hero Member
  • *****
  • Posts: 814
I started putting together a  Demonstration Unit of sorts for my personal use. This unit serves as a testbed / playground / fiddle to demonstrate:

  - Dynamic TButton property changes at runtime
  - Updating Caption and Hint via Edit boxes
  - Enabling or disabling AutoSize, Visible, Enabled states
  - Choosing button cursor style interactively from a ComboBox
  - Changing button font with a FontDialog
  - Attaching and detaching a PopupMenu to the button
  - Handling PopupMenu item clicks (Hello and Bye)
  - Handling mouse events: enter, leave, move, and showing live coordinates
  - Showing how to capture keyboard shortcut (Alt + Shift + P) to reveal property panel
  - Using a Checkbox to show/hide an extra properties panel with smooth form resizing animation using Timer
  - Displaying Linux process ID (PID) using fpGetPid
  - Demonstrating checkboxes to enable or disable each individual property or feature
  - Using ShowHint and live updating hint label
  - Basic Timer usage for animation (scrolling form height)

Intended as an educational demo to show students or developers   how different properties and events of TButton (and related controls) work in Lazarus.

When you first run the demo, you’ll see the initial screen as shown in the first screenshot. If you click the checkbox, the button will become enabled, and you can play around with it and test its various features.

Once you’ve had your fill of that, try pressing Alt + Shift + P — as shown in the second screenshot, this will reveal the "Properties" checkbox. When you click this checkbox, the form expands to show even more properties you can adjust and experiment with. So far, everything works as expected.

However, I noticed something curious: if I disable the button and then try to change its caption, it still updates and displays the new caption. Is this the expected and intended behavior?

Lastly, I’m wondering: how can I make the form animation faster and smoother?

Full working source code is attached in the zip. I know am asking a lot but would really appreciate if folks would just test my silly project and see if you get the same behavior. This is Linux and it works fine on Debian so should be fine on any *nix system I cannot say the same for Windows and macOS.
« Last Edit: July 13, 2025, 05:57:49 pm by Aruna »

paule32

  • Hero Member
  • *****
  • Posts: 646
  • One in all. But, not all in one.
EDIT:
Aruna, please send me your github.com Account name, if you have Interessting in - i would invite you to our Team ...

Hello aruna,
I work on a similar Project with nearly the same Intention.
But for Windows 64-Bit.

I can not Invite you until I asked fibonacci / fibodev ...
He give the rights to use many Parts of his Source Codes.

The Sources currently Public but fibo is busy with an other Project.
But you can try to take a look to our github organization "miniFPC"...

There is a public Reprository "miniRTL" which I worked on ...
It does not work in Time - because I have some Problems with Classes Constructor CREATE.

I get an Exception, but the maintainer for the Memory Manager is fibo.
So, I alone.

If you would take a look: you can visit:
https://github.com/minifpc/miniRTL

nice to hear from you ...
« Last Edit: July 13, 2025, 08:39:14 pm by paule32 »
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1353
  • Professional amateur ;-P
Hey Paule32,

EDIT:
Aruna, please send me your github.com Account name, if you have Interessting in - i would invite you to our Team ...

From his signature you can obtain (https://aruna-hewapathirane-github.io) and deduce (https://github.com/aruna-hewapathirane) :D

Cheers,
Gus

 

TinyPortal © 2005-2018