FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Buttonbar help
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Buttonbar help
Posted: Tue Dec 10, 2019 05:29 PM
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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Buttonbar help
Posted: Tue Dec 10, 2019 05: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
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: Buttonbar help
Posted: Tue Dec 10, 2019 06: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.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Buttonbar help
Posted: Tue Dec 10, 2019 06: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
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: Buttonbar help
Posted: Tue Dec 10, 2019 07:18 PM
cnavarro wrote:Also, try with oBar10:Move( ..... ) METHOD ( on init clause )


Move works but just move the bar not change the size.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Buttonbar help
Posted: Tue Dec 10, 2019 07: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
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: Buttonbar help
Posted: Wed Dec 11, 2019 01: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.

Continue the discussion