Can a toolbar button be of different size?

Can a toolbar button be of different size?

Postby hua » Tue May 31, 2022 6:03 am

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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Can a toolbar button be of different size?

Postby nageswaragunupudi » Tue May 31, 2022 7:30 pm

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 view

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10619
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Can a toolbar button be of different size?

Postby hua » Wed Jun 01, 2022 2:21 am

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: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Can a toolbar button be of different size?

Postby hua » Wed Jun 01, 2022 3:27 am

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: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Can a toolbar button be of different size?

Postby hua » Wed Jun 01, 2022 8:36 am

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: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Can a toolbar button be of different size?

Postby hua » Wed Jun 01, 2022 8:36 am

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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 78 guests