|
Post by Stefan on Jan 23, 2022 8:06:08 GMT -5
Robert, That's odd. I'm on v22014 and observe the following: - CTRL-A in the box does not work, but... - I can select all existing entries with the mouse (click drag) or the keyboard (click and SHIFT-cursor right) and hit CTRL-C to copy, or CTRL-X to copy and erase - I can copy stuff from elsewhere (Notepad) and add to, or replace the existing text in the box with CTRL-V. No manual typing required.
BTW George, the non-TEXT box's help text when you hover the mouse over it is missing an 's' in front of '... earched ...'
I agree, in each of such boxes on the OPTONS panel, duplicated entries are possible and probably shouldn't be.
On OPTIONS STATUS such duplication raises an Error pop-up, but anything goes on OPTIONS FM.
|
|
|
Post by George on Jan 23, 2022 10:29:22 GMT -5
Robert: As you know, dialog boxes are totally controlled by Windows. All those things you tried worked just fine, same as Stefan's tests. So -- no ideas here.
Stefan: Good eyes! I've corrected it.
George
|
|
|
Post by George on Jan 23, 2022 14:22:46 GMT -5
Robert: Kinda hard to pop open a SETEDIT type window while the main SPFLite window is locked due to the Options Dialog being open. I'd have to open another real child dialog box to do the edit. But Edit how? - create a file and open NotePad and then read in the edited file when NotePad closes? No way it's worth doing all that.
It may not be nice, but textboxes are it. You had something weird happening, normally it's just another text box that we all know how to handle.
George
|
|
|
Post by mueh on Jan 24, 2022 4:16:07 GMT -5
Hi George ! There are %ES_AUTOVSCROLL and %ES_AUTOHSCROLL style& parameters available maybe you should add it to CONTROL ADD TEXTBOX, ghFManager, %FMANAGER_INIFMFFList, ENV.FMFFList, 4, 40, 337, 22, %ES_MULTILINE opt GEN "File Types to use the DEFAULT Profile" works with cut and paste . Thanks
|
|
|
Post by George on Jan 24, 2022 9:42:35 GMT -5
MUEH: Sure, adding those might help. If HScroll is added, only 1 line will appear, so you can only see 1 window width at a time (scrollable), but the window height could be reduced. VScroll buys nothing. I'm not sure which is better.
Robert: I looked at the list in one of your CFG files you sent me. This is what I see:
chm(w),doc(w),docx(w),lnk(w),mp3(w),mp4(w),pdf(w),
bkp,chw,ci,dll,dlx,do,docx,exe,ex_,hnd,ico,ilk,inl,
,xls(w),chm(W),pdf(W),chm(W),pdf(W),chm(W),chm(W),rc,RES,X_txt,MACRO-2019-0425,MACLIB,macro_bad,chm(W),chm(W),chm(W),chm(W),pdf(W),pdf(W),MACRO-2019-0425
Multiple lines and duplicates galore. Not sure how you've managed to do that. I'd blow it away and re-establish it. Just put cursor in position 1 and hold delete till it all scrolls into view and disappears, then paste in what you want.
And once more, I CAN'T open a SETEDIT style edit window - the main screen is locked until the Options Dialog is closed.
How would an EDIT even work? If user clicks the EDIT button, what happens to any other changes already made elsewhere in OPT, discard them as if CANCEL was pressed? Process them as if DONE was pressed? Then exit the OPT dialog and fire up a SETEDIT type window, and allow THAT edit to manipulate CFG variables? NO I don't think so.
George
|
|
|
Post by George on Jan 24, 2022 11:37:57 GMT -5
Robert: Using your CFG file here:
OPT FM Shift-Right-Arro and select the whole multi-line data Ctrl-C to place it in the clipboard Cancel the OPT dislog Enter CLIP - the data appears there (3 lines) Edit the data, reduce to one line. End the clip OPT FM again Delete the current text Ctrl-V to add the edited data DONE
It all worked as normal.
|
|
|
Post by George on Jan 24, 2022 11:58:59 GMT -5
Robert: I don't understand how it can not work. I'm using your CFG file, the production SPFLite version, and it all works just fine.
George
[UPDATE]
Can we hear from other users please? Is the use of a simple text box for these entries not sufficient? Is properly entering this data really that difficult?
Yes, I can go make revisions to the OPTIONS dialog to hopefully make things better, but it's a messy, fiddly piece of work I'd rather avoid unless truly justified.
[/UPDATE]
|
|
|
Post by mueh on Jan 24, 2022 13:04:26 GMT -5
George: Did some testing . It appears if the length of the pasted text is longer than box line Ctrl+V beeps and no txt is inserted . ( use more than 100 bytes ) . Hope this helps
|
|
|
Post by George on Jan 24, 2022 13:41:58 GMT -5
MUEH: Interesting. If I take off the %ES_MULTILINE attribute, it all works like it should. It keeps it as 1 line and stuff like pasting super long strings works fine. Not sure why MULTILINE was there really, probably the code originated as a copy/paste from some other mode code. I'll remove it (and from some other TextBoxes and push out a Beta.
George
|
|
|
Post by George on Jan 24, 2022 16:04:44 GMT -5
Robert: Yes, some of those attributes (like MultiLine) have a dramatic effect on handling the text. Not sure who designed the 'wrapping' support, but it is really weird. Even re-reading the Doc. it doesn't get a lot clearer. Done by some MS wizard years ago.
G.
|
|
|
Post by Stefan on Jan 31, 2022 16:35:09 GMT -5
Robert,
The string in those boxes should be in the CFG file. To avoid cut/paste of the shambles in the Options box, how about you...
(1) Run CFGMAINT -export the SPFLITECFG file, (actually you probably only need the ODEFAULT table) (2) read the exported file into SPFLite EDIT (3) modify the relevant line to what you want (4) save the changes (5) Run CFGMAINT -import the modified file to replace your SPFLITE.CFG file.
|
|
|
Post by George on Feb 1, 2022 10:31:15 GMT -5
Robert: Stefan:
OK, the list will now be normalized, sorted and have duplicates removed, like the list for Default Profile on the General tab.
I'll put out a Beta.
George
|
|
|
Post by George on Feb 2, 2022 9:21:38 GMT -5
Robert: I'd already checked, all the other OPTION text boxes can't be done, they are order dependent and can't be sorted.
PDF and PDF(W) would not be 'corrected' right now, the Dup. removal is just a simple compare. I think adding (W) suport and giving (W) precedence will really clutter things up, I'll have a look.
George
|
|
|
Post by George on Feb 2, 2022 13:42:18 GMT -5
Robert: It turned out to be fairly simple. So then I converted it from a simple GOSUB routine in OPTIONS into a proper FUNCTION so it could be called from the Profile Pop-Up Dialog which shows up on an unknown type.
Looks good, I'll update the Beta.
George
|
|