Created attachment 158460 [details]
Open the form and try to switch to "no border" by the button
Open the attached database.
Open the form.
There are thre buttons which should switch the kind of border of all controls.
oField1.border = 0
should set "no border" but it doesn't work.
Switching between (1) - 3D and (2) - flat will work.
It is possible to set controls without border through the GUI, but it is impossible to do this through macros.
Tested with LO 188.8.131.52 on OpenSUSE 15.1 64bit rpm Linux.
It's the same buggy behavior in LO 184.108.40.206, could also be in versions before this.
On pc Debian x86-64 with master sources updated today, I could reproduce this.
pb is I don't know how to find the code pointer.
"border" is present too many times in code.
Mike: any idea how to find a code pointer for this kind of pb or know who may help here?
I don't know what pattern to search in Opengrok or where to put some break on gdb.
(In reply to Julien Nabet from comment #2)
> Mike: any idea how to find a code pointer for this kind of pb
Might be VCLXWindow::setProperty - look for "case BASEPROPERTY_BORDER"
(In reply to Mike Kaganski from comment #3)
> (In reply to Julien Nabet from comment #2)
> > Mike: any idea how to find a code pointer for this kind of pb
> Might be VCLXWindow::setProperty - look for "case BASEPROPERTY_BORDER"
Indeed, I put some traces in https://opengrok.libreoffice.org/xref/core/toolkit/source/awt/vclxwindow.cxx?r=87030862#1681
and we enter in this part.
Just for curiosity, how did you find it?
Badfully I understand nothing here in toolkit part, peer etc.
VCLXWindow::setProperty is called once in design mode where it works
this same method is called three times when using macro and it doesn't work.
=> uncc myself
Hopefully some people are trying to rationalize/simplify LO code.
(In reply to Julien Nabet from comment #4)
> Just for curiosity, how did you find it?
Oh, sorry, I don't really know how I arrived to that conclusion. Something like a guess, because I seem to remember touching that function sometime ago.
If I set the border property to "NOBORDER (4096)" the border disappears. Maybe there is a misunderstanding between "NONE" and "NOBORDER"?