Buttonbar help

Post Reply
wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Buttonbar help

Post by wartiaga »

Hi,

I have a buttonbar in resource but the size after compile dont respect the resource size, see the image below:

Image

In my code I use this:

REDEFINE BUTTONBAR oBar10 ID 100 OF oDlg20

How I can adjust?

Thanks in advance
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Buttonbar help

Post 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
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Re: Buttonbar help

Post 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.
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Buttonbar help

Post by cnavarro »

Also, try with oBar10:Move( ..... ) METHOD ( on init clause )
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Re: Buttonbar help

Post by wartiaga »

cnavarro wrote:Also, try with oBar10:Move( ..... ) METHOD ( on init clause )
Move works but just move the bar not change the size.
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Buttonbar help

Post by cnavarro »

I think method Move allow change size, not?
Move( nTop, nLeft, nWidth, nHeight, lRepaint )
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Re: Buttonbar help

Post 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.
Post Reply