Page 1 of 1
ExplorerListGadget
Posted: Wed Mar 12, 2025 7:05 pm
by RSrole
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
Posted: Wed Mar 12, 2025 9:57 pm
by Marc56us
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
Posted: Sat Mar 15, 2025 9:49 pm
by RSrole
fyi, for a short or longer term solution,
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))
or whatever values work for you. This way if the designer messes me up, I'm still good
Re: ExplorerListGadget
Posted: Sun Mar 16, 2025 9:45 pm
by Marc56us
RSrole wrote: Sat Mar 15, 2025 9:49 pm
fyi, for a short or longer term solution,
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))
or whatever values work for you. This way if the designer messes me up, I'm still good
Thanks for the suggestion.
(however, we must remember to modify this line if we change the position or size in the form)
Re: ExplorerListGadget
Posted: Wed Mar 19, 2025 11:06 pm
by RSrole
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
Posted: Wed Jul 30, 2025 7:10 pm
by spikey
With any luck this is fixed by PR #322, too.