Page 1 of 1

BTNBMP - oBtn:l2007=.t.

Posted: Sun Oct 14, 2007 6:08 pm
by Otto
Hello Antonio,
is there oBtn:l2007=.t.
available for BtnBmp?

@ x,y BTNBMP oBtn FILENAME ".\bitmaps2\test.bmp" SIZE 60, 60 PROMPT "TimeLox" ACTION msginfo("test") OF oDlg
oBtn:l2007 = .T.

Regards,
Otto

Posted: Sun Oct 14, 2007 6:16 pm
by Antonio Linares
Otto,

No, Class TBtnBmp does not provide a DATA l2007. A TBtnBmp object checks if its container is a buttonbar and if it has its l2007 as .T.

You could easily modify class TBtnBmp and add that DATA and change its painting behavior if you need it

Posted: Sun Oct 14, 2007 6:24 pm
by Otto
Hello Antonio,

To get the painting I placed 2 buttonBars (TOP and BOTTOM) on 1 Dialog.
It seems that these to BtnBars are working correctly.

Is it save to use 2 or more BtnBars on one Dialog?

Regards,
Otto


Image

Posted: Sun Oct 14, 2007 6:32 pm
by Antonio Linares
Otto,

> Is it save to use 2 or more BtnBars on one Dialog?

Yes, it should be ok :-)