Buttonbar help

Buttonbar help

Postby wartiaga » Tue Dec 10, 2019 5:29 pm

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
wartiaga
 
Posts: 185
Joined: Wed May 25, 2016 1:04 am

Re: Buttonbar help

Postby cnavarro » Tue Dec 10, 2019 5:55 pm

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
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Buttonbar help

Postby wartiaga » Tue Dec 10, 2019 6:22 pm

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.
wartiaga
 
Posts: 185
Joined: Wed May 25, 2016 1:04 am

Re: Buttonbar help

Postby cnavarro » Tue Dec 10, 2019 6:50 pm

Also, try with oBar10:Move( ..... ) METHOD ( on init clause )
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Buttonbar help

Postby wartiaga » Tue Dec 10, 2019 7:18 pm

cnavarro wrote:Also, try with oBar10:Move( ..... ) METHOD ( on init clause )


Move works but just move the bar not change the size.
wartiaga
 
Posts: 185
Joined: Wed May 25, 2016 1:04 am

Re: Buttonbar help

Postby cnavarro » Tue Dec 10, 2019 7:40 pm

I think method Move allow change size, not?

Move( nTop, nLeft, nWidth, nHeight, lRepaint )
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Buttonbar help

Postby wartiaga » Wed Dec 11, 2019 1:18 pm

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.
wartiaga
 
Posts: 185
Joined: Wed May 25, 2016 1:04 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 64 guests