Page 1 of 1
Buttonbar help
Posted: Tue Dec 10, 2019 5:29 pm
by wartiaga
Hi,
I have a buttonbar in resource but the size after compile dont respect the resource size, see the image below:
In my code I use this:
REDEFINE BUTTONBAR oBar10 ID 100 OF oDlg20
How I can adjust?
Thanks in advance
Re: Buttonbar help
Posted: Tue Dec 10, 2019 5:55 pm
by cnavarro
wartiaga wrote:Hi,
I have a buttonbar in resource but the size after compile dont respect the resource size, see the image below:
In my code I use this:
REDEFINE BUTTONBAR oBar10 ID 100 OF oDlg20
How I can adjust?
Thanks in advance
Try with oBar10:nRight := 300 ( or any value ), after the REDEFINE
If it does not work, try putting this instruction in the ON INIT clause of the dialog or container window
Re: Buttonbar help
Posted: Tue Dec 10, 2019 6:22 pm
by wartiaga
cnavarro wrote:wartiaga wrote:Hi,
I have a buttonbar in resource but the size after compile dont respect the resource size, see the image below:
In my code I use this:
REDEFINE BUTTONBAR oBar10 ID 100 OF oDlg20
How I can adjust?
Thanks in advance
Try with oBar10:nRight := 300 ( or any value ), after the REDEFINE
If it does not work, try putting this instruction in the ON INIT clause of the dialog or container window
Thanks but no success in both options.
Re: Buttonbar help
Posted: Tue Dec 10, 2019 6:50 pm
by cnavarro
Also, try with oBar10:Move( ..... ) METHOD ( on init clause )
Re: Buttonbar help
Posted: Tue Dec 10, 2019 7:18 pm
by wartiaga
cnavarro wrote:Also, try with oBar10:Move( ..... ) METHOD ( on init clause )
Move works but just move the bar not change the size.
Re: Buttonbar help
Posted: Tue Dec 10, 2019 7:40 pm
by cnavarro
I think method Move allow change size, not?
Move( nTop, nLeft, nWidth, nHeight, lRepaint )
Re: Buttonbar help
Posted: Wed Dec 11, 2019 1:18 pm
by wartiaga
cnavarro wrote:I think method Move allow change size, not?
Move( nTop, nLeft, nWidth, nHeight, lRepaint )
Thank you! It's work! Do you know how i display the buttonbar with border? oBar10:nStyle := WS_BORDER not work.