Recent

Author Topic: How can i make this window ?  (Read 1033 times)

majid.ebru

  • Hero Member
  • *****
  • Posts: 508
How can i make this window ?
« on: April 16, 2024, 02:51:31 pm »
Hi
please help and guide me

I don't know what is the name of this window?  maybe popup ?

how can i create this window ?

TRon

  • Hero Member
  • *****
  • Posts: 2663
Re: How can i make this window ?
« Reply #1 on: April 16, 2024, 03:12:25 pm »
Not that I have experience with it but TPopupNotifier seems to be a candidate for that ?

Fibonacci

  • Sr. Member
  • ****
  • Posts: 434
Re: How can i make this window ?
« Reply #2 on: April 16, 2024, 03:17:24 pm »
This is HTML

Code: Text  [Select][+][-]
  1. <div style="position: fixed; right: 10px; top: 10px; background: white; color: red; padding: 10px;">popup</div>

majid.ebru

  • Hero Member
  • *****
  • Posts: 508
Re: How can i make this window ?
« Reply #3 on: April 16, 2024, 03:32:31 pm »
Not that I have experience with it but TPopupNotifier seems to be a candidate for that ?

ok

but i don't want to use TPopupNotifier ?
that is not good.

majid.ebru

  • Hero Member
  • *****
  • Posts: 508
Re: How can i make this window ?
« Reply #4 on: April 16, 2024, 03:33:35 pm »
This is HTML

Code: Text  [Select][+][-]
  1. <div style="position: fixed; right: 10px; top: 10px; background: white; color: red; padding: 10px;">popup</div>

how can i use your code  in lazarus ?

TRon

  • Hero Member
  • *****
  • Posts: 2663
Re: How can i make this window ?
« Reply #5 on: April 16, 2024, 03:37:10 pm »
but i don't want to use TPopupNotifier ?
And I do not want to use Lazarus et all. Yet, here I am  :D

So a question arises: why ?

Quote
that is not good.
What is bad about it ? Please elaborate.

majid.ebru

  • Hero Member
  • *****
  • Posts: 508
Re: How can i make this window ?
« Reply #6 on: April 16, 2024, 03:45:18 pm »
but i don't want to use TPopupNotifier ?
And I do not want to use Lazarus et all. Yet, here I am  :D

So a question arises: why ?

Quote
that is not good.
What is bad about it ? Please elaborate.

i can't use many popup at same time  !
i can't change position of that !
i can't change theme of that !

Fibonacci

  • Sr. Member
  • ****
  • Posts: 434
Re: How can i make this window ?
« Reply #7 on: April 16, 2024, 03:48:19 pm »
how can i use your code  in lazarus ?

In an embedded webview, but I dont think thats what you want, you would need to have your entire GUI in HTML. Instead, you could use TPanels if you want to have those popups on a form, or TForms if you want them on a destkop.

majid.ebru

  • Hero Member
  • *****
  • Posts: 508
Re: How can i make this window ?
« Reply #8 on: April 16, 2024, 03:58:18 pm »
how can i use your code  in lazarus ?

In an embedded webview, but I dont think thats what you want, you would need to have your entire GUI in HTML. Instead, you could use TPanels if you want to have those popups on a form, or TForms if you want them on a destkop.

i can't use form , because when the form closed , the main form repainted and some my data changed .

i can't use TPanel because i have many form.

TRon

  • Hero Member
  • *****
  • Posts: 2663
Re: How can i make this window ?
« Reply #9 on: April 16, 2024, 04:14:11 pm »
i can't use many popup at same time  !
i can't change position of that !
i can't change theme of that !
For the reader that actually do want to know...

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2224
  • Fifty shades of code.
    • Delphi & FreePascal
Re: How can i make this window ?
« Reply #10 on: April 16, 2024, 04:32:06 pm »
i can't use many popup at same time  !
i can't change position of that !
i can't change theme of that !
For the reader that actually do want to know...
On a windows machine IIRC the colors would be controlled by OS.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

cdbc

  • Hero Member
  • *****
  • Posts: 1158
    • http://www.cdbc.dk
Re: How can i make this window ?
« Reply #11 on: April 16, 2024, 04:36:10 pm »
Fresnel?!?
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

TRon

  • Hero Member
  • *****
  • Posts: 2663
Re: How can i make this window ?
« Reply #12 on: April 16, 2024, 05:06:35 pm »
On a windows machine IIRC the colors would be controlled by OS.
Oh, I hadn't thought of that one.

There seem to be system theme management going on inside a hintwindow (I do not know if it is active by default) so you might be right there.

In which case, 2 out of 3 is also not bad though I understand that is not what TS is looking for :-)

I rather wait with further suggestions until all specs are on the table... TS seem to have a habit of adding additional requirements as suggestions go along and I am not in the mood for these games with crystal balls right now.

AFAIK there is not a ready to go component/solution that does exactly as TS seem to want and I am currently trying to avoid suggesting to use a video playback component to literally provide what TS asks for  O:-)

Handoko

  • Hero Member
  • *****
  • Posts: 5201
  • My goal: build my own game engine using Lazarus
Re: How can i make this window ?
« Reply #13 on: April 16, 2024, 06:23:43 pm »
It is relatively easy to write a custom popup, for example this is my Frameless popup in the User Interface section in the link below:

https://wiki.freepascal.org/Portal:HowTo_Demos#User_Interface

 

TinyPortal © 2005-2018