ExplorerListGadget
ExplorerListGadget
Every once in awhile the ExplorerListGadget will change it's flags so the borderless and nofiles are set, even though I never click on those checkboxes in the ide. I haven't found a pattern or some order of operations that causes this, but if I do, I'll post it here.
Re: ExplorerListGadget
Yes, I've noticed this in FormDesigner with this gadget: when you switch several times from Code mode to Design mode, some constants check or uncheck for no reason (i.e. #PB_Explorer_BorderLess).
Re: ExplorerListGadget
fyi, for a short or longer term solution,
or whatever values work for you. This way if the designer messes me up, I'm still good
Code: Select all
FreeGadget(SourceList)
SourceList = ExplorerListGadget(#PB_Any, 10, 30, 220, 220, "", #PB_Explorer_AlwaysShowSelection | #PB_Explorer_MultiSelect | #PB_Explorer_GridLines | #PB_Explorer_FullRowSelect | #PB_Explorer_AutoSort)
SetGadgetFont(SourceList, FontID(#Font_Window_0_2))
Re: ExplorerListGadget
Thanks for the suggestion.RSrole wrote: Sat Mar 15, 2025 9:49 pm fyi, for a short or longer term solution,
or whatever values work for you. This way if the designer messes me up, I'm still goodCode: Select all
FreeGadget(SourceList) SourceList = ExplorerListGadget(#PB_Any, 10, 30, 220, 220, "", #PB_Explorer_AlwaysShowSelection | #PB_Explorer_MultiSelect | #PB_Explorer_GridLines | #PB_Explorer_FullRowSelect | #PB_Explorer_AutoSort) SetGadgetFont(SourceList, FontID(#Font_Window_0_2))
(however, we must remember to modify this line if we change the position or size in the form)
Re: ExplorerListGadget
If you want to be more generic, you should get and save the gadgetx, gadgety,gadgetWidth and gadgetHeight before freeing it, then use those values. That way you can move things around in the designer and don't have to worry about changing the example code. My guess is that Fred will find the bug and fix it before too long.
Re: ExplorerListGadget
With any luck this is fixed by PR #322, too.