Can a toolbar button be of different size?

Post Reply
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Can a toolbar button be of different size?

Post by hua »

I normally create a toolbar using the command DEFINE BUTTONBAR oBar OF oWnd SIZE 30,33
Is it possible to have one button that is actually longer than that?
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Can a toolbar button be of different size?

Post by nageswaragunupudi »

Any button created by "DEFINE BUTTON OF oBar" will be of the same size only.
But after defining all buttons, we can create any control on the bar in the space not occupied by the buttons. Same way we can create a button of different width by

Code: Select all | Expand


@ r, c BTNBMP oBtn PROMPT "prompt" OF oBar SIZE w,h PIXEL
 
Regards

G. N. Rao.
Hyderabad, India
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: Can a toolbar button be of different size?

Post by hua »

Thank you for the reply Rao.
I'll experiment with it a bit
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: Can a toolbar button be of different size?

Post by hua »

For some reason, I nothing happens when I click on the button.
But was able triggering it programmatically using oBtn:click(). Strange
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: Can a toolbar button be of different size?

Post by hua »

hua wrote:For some reason, I nothing happens when I click on the button.
But was able triggering it programmatically using oBtn:click(). Strange


Discoevered the reason. I can't place @ r, c BTNBMP oBtn PROMPT "prompt" OF oBar SIZE w,h PIXEL at oDlg:bInit
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: Can a toolbar button be of different size?

Post by hua »

hua wrote:For some reason, I nothing happens when I click on the button.
But was able triggering it programmatically using oBtn:click(). Strange


Discovered the reason. I can't place @ r, c BTNBMP oBtn PROMPT "prompt" OF oBar SIZE w,h PIXEL at oDlg:bInit
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
Post Reply