Recent

Author Topic: DropDown Panel?? Custom Control  (Read 14606 times)

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: DropDown Panel?? Custom Control
« Reply #15 on: May 03, 2015, 10:56:48 pm »
The form activate is really a issue.

It's difficult however to fix.

I've already done something similar in another component but lost in a hd crash

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: DropDown Panel?? Custom Control
« Reply #16 on: May 03, 2015, 11:03:37 pm »
Quote
I've already done something similar in another component but lost in a hd crash
@LuizAmérico
do you have a clue on how you had fix the caption problem
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: DropDown Panel?? Custom Control
« Reply #17 on: May 04, 2015, 02:10:15 am »
Quote
do you have a clue on how you had fix the caption problem

This is due to the Form being activate.

I have clues but none of them worked.

Need to do some in depth research in widgetset.


Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: DropDown Panel?? Custom Control
« Reply #18 on: May 04, 2015, 03:38:59 pm »
Quote
I have clues but none of them worked.
ok thought you had solved this

day after  tomorrow is my dead line so one more day to wait until accept @taazz's answer
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: DropDown Panel?? Custom Control
« Reply #19 on: May 10, 2015, 06:12:25 pm »
hello
started working on this
 if you don't mind i would like to have opinions about forms
do you see a need to include support for forms as well?(having a form inside the dropdown panel)
gave it a lot of thought and from my point of view there is not a need for it but i might missing something

thank you
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: DropDown Panel?? Custom Control
« Reply #20 on: May 10, 2015, 06:53:15 pm »
hello
started working on this
 if you don't mind i would like to have opinions about forms
do you see a need to include support for forms as well?(having a form inside the dropdown panel)
gave it a lot of thought and from my point of view there is not a need for it but i might missing something

thank you
Why? what is the difference if there is a form embedded in the panel or not? To answer your question I do use it as a container my self this way I can have the same form in my dropdown, popup or dialog to edit or view the data so yes I would expect it to be able to host forms or frames or both.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: DropDown Panel?? Custom Control
« Reply #21 on: May 10, 2015, 07:29:01 pm »
well in general there is no deference (except  the main menus , the caption and the resize capabilities of the inserted form)
 i had to ask because we do not code all the same way in my case i use to create frames (and or ) panels for dublicate gui's - if i need the form as is then i just open the form if i need a reuseable part of the form is in a frame or a panel

Quote
I do use it as a container my self this way I can have the same form in my dropdown, popup or dialog to edit or view the data

you mean ? forms without captions and main menus correct?
« Last Edit: May 10, 2015, 07:52:51 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: DropDown Panel?? Custom Control
« Reply #22 on: May 10, 2015, 08:52:50 pm »
well in general there is no deference (except  the main menus , the caption and the resize capabilities of the inserted form)
 i had to ask because we do not code all the same way in my case i use to create frames (and or ) panels for dublicate gui's - if i need the form as is then i just open the form if i need a reuseable part of the form is in a frame or a panel

Quote
I do use it as a container my self this way I can have the same form in my dropdown, popup or dialog to edit or view the data

you mean ? forms without captions and main menus correct?
I have two different designs on this. The "older" one which is forms that have no caption or main menu when embedded and a newer one that everything is frames with a couple of basic forms that used for different reasons as hosts for the frames. Now let me add that I prefer to show a popup form that takes the activation from the working form instead of a floating panel (or any panel for that matter).
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: DropDown Panel?? Custom Control
« Reply #23 on: May 10, 2015, 09:01:05 pm »
so the conclusion is that you prefer to add the forms without captions and menus correct?
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: DropDown Panel?? Custom Control
« Reply #24 on: May 10, 2015, 09:52:43 pm »
so the conclusion is that you prefer to add the forms without captions and menus correct?
"With out captions" is mandatory embedded forms with captions are not supported in windows at least, and on top of that I see no reason to use them. Never used a main menu on embedded forms never needed one yet.
« Last Edit: May 10, 2015, 09:54:14 pm by taazz »
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: DropDown Panel?? Custom Control
« Reply #25 on: May 10, 2015, 11:16:56 pm »
so the idea is to use an embeded form as a panel or a frame loosing the functionality of the form
Quote
"With out captions" is mandatory embedded forms with captions are not supported in windows at least
i can overcome this if there is a proof of a  need
 it might be difficult to solve it for 2 or more forms inside the dropdown container ( i'm glad i will not have to mess with it)
i do not belive the same for the mainmenus.... at least i do not have any ideas how to cheat the OS

anyway got your point

.....only the 2 of us are interested in such a control ! amazing.....

i'll wait a couple of days for other people and opinions till moving on

thank you @taazz for your cooperation
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

dietmar

  • Full Member
  • ***
  • Posts: 170
Re: DropDown Panel?? Custom Control
« Reply #26 on: May 12, 2015, 03:09:51 am »
I wanted to test the expandpanel component, as it sounds interesting.

It installs without errors, but compiling the test project fails: Package "ColoredBox" missing.
Since I could not find this package anywhere: Does anybody have an idea where to get it?

Greetings,
dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

dietmar

  • Full Member
  • ***
  • Posts: 170
Re: DropDown Panel?? Custom Control
« Reply #27 on: May 31, 2015, 01:35:21 am »
Ok, after digging, I debugged the whole thing.

Then I contacted the author and he updated the nice component today...
He even created a wiki page ;)

So if you want to have a look at it, here it is:
http://wiki.lazarus.freepascal.org/TMyRollOut_and_ExpandPanel

Dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: DropDown Panel?? Custom Control
« Reply #28 on: May 31, 2015, 02:04:20 am »
Nice.

sin_dragan

  • Full Member
  • ***
  • Posts: 127
Re: DropDown Panel?? Custom Control
« Reply #29 on: May 31, 2015, 04:50:04 am »
Hi, thx for the info, nice components.
I tried them and in development demo, when I press Horizontal and single panel behaviour after one circle of clicks (1, 2 , 3 button) then just panel 1 works, can anybody confirm this?
Windows 7 64 bit
Lazarus 1.4.1 (w/fixes) FPC 2.6.4 win32

 

TinyPortal © 2005-2018