-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find window is opened as a "top level" window #5496
Comments
Do you suggest to ignore the typed text when len<=2? bad! identifiers of len=1 also exist. so I cannot change it. |
Form style should be "stay on top of ALL windows" if Cud's main window has 'View / Toggle always on top" checked. do you have it checked? |
Yes, exactly, I do not want to search for a single letter, ever, ( and if I should want to I can press Enter :)
Not necessary in linux, I can simply toggle "Always on top". Don't know about windows. |
Ok example is SublimeText, it searches for single char. VSCode too. they do not have an option for this, I guess. |
I guess it is the Lazarus Qt5-version bug, that on-top works like system-on-top. I will study it. |
May be, I don't use either. There are plenty of examples where find works after the third character is entered. :)
Yes, I see that the find window is set as "Always on Top" in the window manager, and I can reset it to "Normal". But that will put the window below Cuda, which is no use at all. Don't know about Lazarus :( |
From what I can remember, every app with find-as-you-type I know process from the first char and I think that's right. Including web browsers, the most universally popular software class with find-as-you-type. I'm not against providing an option for those who don't like it, the more customizing options the better, but surely current behavior should remain as default. |
2 issues were reported:
|
OK, thank you |
@AndyM48 - please try to use on this cases cmd Find in Lines (part of CudaExt), here I have minimum 3 characters… works fine for me the years… some options available… |
Cannot find 'Find in Lines'? I prefer floating find dialogue to docked, hence my issue. |
Sounds promising, I will take a look Thank you |
I don't know pascal I'm afarid, but is this not an issue with FindWindow.Parent:= Self or similar, instead of FindWindow.Parent:= MainWindow or similar? I see that this occurs with all the sibling windows opened by CudaText. |
No, it is not the problem with FindWindow.Parent. It is problem of the 'top most' window style, how it works. |
Is there any progress from the Lazarus team on this issue? If it is not possible to make the 'find' window a sibling of the main Cuda window then I might suggest an alternative approach. |
not yet. I just posted additional demo to the same Lazarus bugreport: |
The Pascal/Lazarus report does not seem to have offered any solutions to this problem: Would you consider this solution? |
on opening the Find dlg, rules for "find_suggest_" options apply / options are changed too for current document (it can be picture or binary viewer or too big text file). so sometimes it's not easy to reopen Find dlg with the same text and options (options change too). |
But that is an option, which can be selected/changed. |
If you test it on Windows you Will see the topmode works ok? So its much better to fix it in the gtk2 and-or qt5 widgetset. |
Honestly, I doubt that it is a problem with gtk or qt, since, apparently/as far as I know, it does not affect any other programmes. I would imagine it is a problem with how Pascal/Lazarus interacts with gtk/qt. Either way, since I will not be going back to windows, and there is a possible fix for the problem, I would prefer that Cudatext worked on Linux. Please read this knowing that I really like Cudatext and appreciate all your hard work. May be add what I suggested as an option?? |
You misread this. I mean "problem in gtk-qt widgetset (ie wrapper) in lazarus". Lazarus issue. |
OK, so back to my comment would you consider implementing this work-around? |
No The problem seems to be that when the main window receives the focus again, then the Find window is shown again without any user intervention. Presumably some side effect of May be this should be |
i guess |
Well it should not restore after a close |
Can you compile the app? Please try it then. |
Sorry, I don't have the time to work out how to compile it at the moment.
and changing
|
made it. beta qt5: |
fmFind.Close seems to work fine now. Find windw closes when parent loses focus and reappears when Ctrl-F or button pressed.
I don't know why this would cause the problem, but since it is the only other change that you made in this fix I suppose it may be the cause. |
i commented it out! with pascal comment chars |
Sorry, I did not know that. So the problem must be with the code
If this might, in any way, be an approximation of the sense of the code, then DND will close the Find window since the window will not exist as it is being dragged. |
yes
has been created in memory
find-dlg is not docked to main dlg
find-dlg is shown |
So if fmFind is not docked and is shown, close it. In essence this will close the fmFind window whenever it is called. It is called by the procedure TfmMain.AppPropsDeactivate which in turn, I am assuming, is called when the programme is deactivated. So why is the fmFind window closed by DND? If DND is an external application, then may be Cudatext is deactivated when DND is called? |
Yes, its possible. |
Can you establish when DND is called, and the omit it from the deactivate procedure. How is DND called? |
what DND? what do you drag, file from OS file manager? text inside editor? |
DND = Drag aNd Drop the fmFind window in the main window. |
DND of the find dlg is not supported. What are trying to do? Add it? I dont like the idea. |
Fair enough. So where is the fmFind widow opened? |
Wait, i mean that dropping of find dlg to dock it into main dlg, is not supported. Usual mouse dragging of the find dlg must work. You have problems with the mouse dragging of the find dlg? Does it work on Windows? |
At present DND of the find window, within the main window, does not work for me. I don't use windows. I think I may need to wipe out my all the Cudatext from my system and restart from clean. Or do you have a debgug method? |
So its DND into main Window. Its not supported. No, you dont need to wipe the app. |
No, it is DND within the main window which is not working for me. I do not need or want DND into the main window |
Its not supported too. |
I have no idea where you are going?
Now you say it is not supported. Never mind. I don't think that anyone else is interested so I will move on. |
DND of dlg is not supported (within main window). the quote is about usual dragging of UNDOCKED find-dlg by mouse - ie reposition of dlg. so we used different terms - usual dragging is not DND. |
OK, same difference, usual mouse dragging of the find dlg does not work for me. |
Reported the Lazarus bug: |
i disabled new workaroud which hides find-dlg on deactivate. because of lazarus qt5 bug this workaround makes things worse. i will update 1.216.0 linux-qt5 release files today. |
I have two issues with the Find dialogue:
If I have immediate search (Im) selected then the search starts immediately when I start typing. While this is strictly in accordance with the requested action it s somewhat distracting. For example if I enter "Search" then firstly the next "S" is found, then the next "Se" and so on. I would suggest starting "immediate" after a minimum of three characters is entered to avoid this. This may also be a partial fix for #5473 :)
The find widow is opened as a "top level" window, by which I mean that the window will appear over other unconnected windows.
Can it be opened as a 'sibling' of the Cudatext 'parent' window?
The text was updated successfully, but these errors were encountered: