|
Post by dragonjim on May 14, 2013 12:40:21 GMT 1
Some time back, I seem to remember seeing a reference to creating multline command buttons; sadly, I can't track down where I found it (it may have been on the old mailing list).
I have tried the following:
OpenW 1 Ocx Command cmd1 = "This button contains lots of text", , 10, 10, 100, 40, WS_TABSTOP | BS_MULTILINE Ocx Command cmd2 = "This button contains|lots of text", , 10, 60, 100, 40, WS_TABSTOP | BS_MULTILINE Ocx Command cmd3 = "This button contains" & #13#10 & "lots of text", , 10, 110, 100, 40, WS_TABSTOP | BS_MULTILINE Do : Sleep : Until Win_1 Is Nothing
None of the above seem to work...any ideas would be appreciated.
For information, I am using WinXP SP3 with Visual Styles (manifest) enabled
|
|
|
Post by dragonjim on May 18, 2013 12:05:40 GMT 1
Thanks to Peter Heinzig and others on the mailing list, the answer is:
OpenW 1 : Win_1.AutoRedraw = 1 Ocx Command Cmd1 = "This button contains" & #10 & "lots of text", 10, 10, 130, 36 Cmd1.WinStyle = Cmd1.WinStyle | BS_MULTILINE Do : Sleep : Until Win_1 Is Nothing
For some reason, adding the BS_MULTILINE to the original OCX statement doesn't seem to work.
|
|