DropDown Panel?? Custom Control lazarus / 31-LCL ---------------------------------------------------------------------- Never · 2015-05-02 20:53 hi is there any custom control wich is able to act as a drop down control/s container  while keepping the current form active (ex: do not gray the caption and let the programmer to handle key strokes etc) Started implementing my version of such a control container but before i move forward i would like to ask if there is already an implementation like this and i'm not aware of it in order to not reenvent the wheel thank you very much ---------------------------------------------------------------------- taazz · 2015-05-02 20:59 No there is nothing out there and I'm also interested in one if you are willing to share. ---------------------------------------------------------------------- Josh · 2015-05-02 21:04 Hi There was an expandpanel component, not sure how current or X platform it is, or if it will do what you require. http://wiki.lazarus.freepascal.org/TMyRollOut_and_ExpandPanel ---------------------------------------------------------------------- Never · 2015-05-02 21:10 Thank you taazz for your answer i will share if you don't mind i would like to wait for other people to confirm your answer as well before i proceed ---------------------------------------------------------------------- Never · 2015-05-02 21:20 thank @josh unless i'm missing something AFAIK these panels are tight to the owner form and can not be expanted/resized out of the form if required ---------------------------------------------------------------------- taazz · 2015-05-02 21:44 Quote from: Never on May 02, 2015, 11:20:39 pmthank @josh unless i'm missing something AFAIK these panels are tight to the owner form and can not be expanted/resized out of the form if required There is a simple solution that can be implemented today even cross platform but it requires the Tform class be changed to auto forward any key and mouse events to the active pop up form and of course care must be taken to allow for pop up from inside a pop up window as well. So overall it has a difficulty level of 6~7 (with a max of 10), If you search this forums I have posted a windows only solution from mustang peak that if I remember correctly was working as is in lazarus as well. ---------------------------------------------------------------------- Never · 2015-05-02 22:05 @taazz Quote but it requires the Tform class be changed to auto forward any key and mouse events to the active pop up formsince the container could contain many other controls/frames or even forms i think this it should be left to the programmer Quotecare must be taken to allow for pop up from inside a pop up window as wellagreed it should be acting as normal as possible Quote If you search this forums I have posted a windows only solution from mustang peak that if I remember correctly was working as is in lazarus as well. searched the forums but i was n't able to find a solution to be able to - holding the caption active - add as many controls as i want - add any type of control or frame or even forms if possible - resize up down left right with code or let the end user do it - have a pivot point around another control ex: Tbutton,TEdit ech or a point on the screen so can show as a result of a menu item action - open / drop up or down acording to the possition on the screen - do not use timers - do not use and mess around with setfocus and some other requirements as well there is no point to mention all of them  the way i will go is THintwindow i had the best results so far with my tests  do you had any experience with it for this subject? ---------------------------------------------------------------------- taazz · 2015-05-02 22:20 Quote from: Never on May 03, 2015, 12:05:31 am@taazz Quote but it requires the Tform class be changed to auto forward any key and mouse events to the active pop up formsince the container could contain many other controls/frames or even forms i think this it should be left to the programmer Can't be done no. The problem arises form the fact that a control can not receive focus or keyboard events or mouse events. If you leave that to the programmer then you leave everything to him. Quote from: Never on May 03, 2015, 12:05:31 amQuotecare must be taken to allow for pop up from inside a pop up window as wellagreed it should be acting as normal as possible Quote If you search this forums I have posted a windows only solution from mustang peak that if I remember correctly was working as is in lazarus as well. searched the forums but i was n't able to find a solution to be able to - holding the caption active - add as many controls as i want - add any type of control or frame or even forms if possible - resize up down left right with code or let the end user do it - have a pivot point around another control ex: Tbutton,TEdit ech or a point on the screen so can show as a result of a menu item action - open / drop up or down acording to the possition on the screen - do not use timers - do not use and mess around with setfocus and some other requirements as well there is no point to mention all of them  the way i will go is THintwindow i had the best results so far with my tests  do you had any experience with it for this subject? there is some effort on the forums based on hint window as well. But hitn windows can not receive keyboard messages as far as I know and they can not handle combo boxes at all if I remember correctly. I'm not ignoring the feature list you posted but I'm not going to comment on it either for now. ---------------------------------------------------------------------- Never · 2015-05-02 23:06 Thank you very much @taazz so lets wait for a while to ensure there is not already a solution for this problem if not i will proceed with my tests and i'll put together what excactly i have in mind i'll share it and then we can talk with something in our hands ---------------------------------------------------------------------- LuizAmérico · 2015-05-03 00:16 See dropdownmanager in LuiControls: https://code.google.com/p/luipack/source/browse/trunk/luicontrols/ Warning: interface may change in future ---------------------------------------------------------------------- Never · 2015-05-03 09:04 @LuizAmérico already test LuiControls inside CT when ddousepopupform is false everything is inside the form and all is working as excpected when ddousepopupform is true a sigsev error occurs at dropdown manager a line 169 added a line to create the popup form and worked but the caption of the main form is disabled when the new popup form open ---------------------------------------------------------------------- LuizAmérico · 2015-05-03 10:35 CodeTyphon is not supported by me, use it at your own risk. ---------------------------------------------------------------------- Never · 2015-05-03 10:50 @LuizAmérico also test it with new lazarus 1.4 had the same results Edit **: the issue with the sig sev is not there i'm refering to the caption of the main form Edit2 ***: just to inform i'm not able to checkout from the above link [ http://luipack.googlecode.com/svn/trunk/ luipack-read-only ] using tortoise svn ---------------------------------------------------------------------- taazz · 2015-05-03 11:37 Quote from: Never on May 03, 2015, 12:50:27 pmEdit2 ***: just to inform i'm not able to checkout from the above link [ http://luipack.googlecode.com/svn/trunk/ luipack-read-only ] using tortoise svn It works if you use http://luipack.googlecode.com/svn/trunk/ at least it works for me that is. ---------------------------------------------------------------------- Never · 2015-05-03 11:52 @taazz QuoteIt works if you use http://luipack.googlecode.com/svn/trunk/ at least it works for me that is.thank you worked re tested the trunk also with the provided demo the results are the same when ddousepopupform is true a form with out borders is openning the caption of the main form looks inactive also other issues not to mention so the survey is active ---------------------------------------------------------------------- LuizAmérico · 2015-05-03 20:56 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 · 2015-05-03 21:03 QuoteI'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 · 2015-05-04 00:10 Quotedo 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 · 2015-05-04 13:38 QuoteI 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 · 2015-05-10 16:12 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 · 2015-05-10 16:53 Quote from: Never on May 10, 2015, 06:12:25 pmhello 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. ---------------------------------------------------------------------- Never · 2015-05-10 17:29 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? ---------------------------------------------------------------------- taazz · 2015-05-10 18:52 Quote from: Never on May 10, 2015, 07:29:01 pmwell 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). ---------------------------------------------------------------------- Never · 2015-05-10 19:01 so the conclusion is that you prefer to add the forms without captions and menus correct? ---------------------------------------------------------------------- taazz · 2015-05-10 19:52 Quote from: Never on May 10, 2015, 09:01:05 pmso 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. ---------------------------------------------------------------------- Never · 2015-05-10 21:16 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 · 2015-05-12 01:09 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 ---------------------------------------------------------------------- dietmar · 2015-05-30 23:35 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 ---------------------------------------------------------------------- typo · 2015-05-31 00:04 Nice. ---------------------------------------------------------------------- sin_dragan · 2015-05-31 02:50 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? ---------------------------------------------------------------------- Never · 2015-06-01 22:58 Thanks a lot @dietmar  but this is not was i had in mind here 2 vids from what i have done until now to get the idea the first one demo res 1 is a kind of a dirty demo the second one demo res 2  is a test inside an app i have lots to do to finish what i have in mind by the way is anybody aware of a commercial component like this? ---------------------------------------------------------------------- dietmar · 2015-06-04 02:50 Quote from: sin_dragan on May 31, 2015, 04:50:04 amHi, 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? Hm, I don't know exactly what you mean... I cannot find any 1, 2, 3 buttons in my developement demo project... Nevertheless, I sent the link of your question to the developer, perhaps he will answer. Dietmar ---------------------------------------------------------------------- sin_dragan · 2015-06-04 04:31 @Dietmar Hi, in development demo, program creates tri panels, try to click all of them (works fine) and then select the HotMouse radiobutton, when you go over buttons (1 2 3) the first time it works okay, but the next time only first buttons collapses panel. Even if I set multipanel radiobutton it still acts the same. EDIT: It works the same if you try what I wrote in the previous post: ...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? Sorry, I meant first, second, third button, from the left to right  Code: [Select]ex1 := TExpandPanels.Create(self);   p1 := TMyRollOut.Create(self);   p2 := TMyRollOut.Create(self);   p3 := TMyRollOut.Create(self);   p1.Parent      := self;   Calendar1.Parent := p1;   Calendar1.Align := alClient;   p2.Parent      := self;   ListBox1.Parent := p2;   ListBox1.Align := alClient;   p3.Parent      := self;   Button1.Parent := p3;   ex1.AddPanel(p1);   ex1.AddPanel(p2);   ex1.AddPanel(p3);   ex1.ButtonPosition := TAnchorKind(RButt.ItemIndex);   ex1.CollapseKind   := TAnchorKind(RColl.ItemIndex);   ex1.Behaviour      := TExpandPanelsBehaviour(RBehaviour.ItemIndex);