Multiline button on a window

Multiline button on a window

Postby Franklin Demont » Mon Aug 05, 2013 9:06 am

Next code seems not to work on a window. In dialog's it works.

Code: Select all  Expand view

#include 'FIVEWIN.CH'
static oWinMain := nil

PROCEDURE Main()
   local oFont, oDlg , oBut
   define font oFont name 'MS Sans Serif' size 6,15

   define window oWinMain from 5,5 to 30,85 title "TestBtns"// menu BuildMenu()

   @ 3,10 BUTTON oBut PROMPT "Button 01" + CRLF +  "Test" size 60,50 font oFont OF oWinMain ACTION MsgInfo("Button 01 Test on oWinMain")
  oBut:nStyle := NOR( oBut:nStyle, 8192 )
   @ 3,40 BUTTON "Button 02 Test" size 100,50 font oFont OF oWinMain ACTION MsgInfo("Button 02 Test on oWinMain")


   set message of oWinMain to "TestBtns" date time noinset
   activate window oWinMain maximized
return
 
test
Franklin Demont
 
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am

Re: Multiline button on a window SOLVED

Postby Franklin Demont » Mon Aug 05, 2013 10:10 am

Sorry , TBTBMP solves the problem
test
Franklin Demont
 
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am

Re: Multiline button on a window

Postby nageswaragunupudi » Mon Aug 05, 2013 2:11 pm

Please add MULTILINE clause to BUTTON command like this.

Code: Select all  Expand view
  @ 3,10 BUTTON oBut PROMPT "Button 01" + CRLF +  "Test" size 60,50 font oFont OF oWinMain MULTILINE ACTION MsgInfo("Button 01 Test on oWinMain")
 

Please do not do anything else with the Style
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests