Search the web
Sign In
New User? Sign Up
rxmui · Discussion about RxMUI, the MUI/Guis library for ARexx.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
EBackground problem   Message List  
Reply | Forward Message #1736 of 1832 |
In the attached example I set the first button red, but setting the second
one green changes the first one back to the background color.

256 colors, RxMUI 42.2, AmigaOS 3.9 + BBs 1 & 2, A4000/040

Kind regards,
--
Robert A. Sisk
sisk637@...


Sun Jul 1, 2007 10:06 pm

rsisk2003
Offline Offline
Send Email Send Email

/* $VER: DemoEBackground 1.0 (1.7.2007)
*/
App.Description='Demo'
App.Copyright ='© 2007 by Robert A. Sisk'

App.Title=word(SourceLine(1),3)
App.Base=App.Title

call AddLib 'rmh.library',0,-30
if RMH_AddLibrary('rxmui.library')>0 then do
call RMH_EasyRequest "Can't open" result,App.Title,'Exit'
signal Exit
end

App.Author=SubWord(App.Copyright,find(App.Copyright,'by')+1)
App.SingleTask=1
App.Version=SubWord(SourceLine(1),2)
App.SubWindow='MainWindow'
MainWindow.ID='Main'
MainWindow.Title=App.Title

MainWindow.Contents=MakeObj(,'VGroup',button('Button1','Button1'),button('Button\
2','Button2'))
call NewObj 'Application','App'

SigBreakB_Ctrl_C=12
BreakCSignal=2**SigBreakB_Ctrl_C

call notify 'MainWindow','CloseRequest',1,'App','ReturnID','Quit'

call set 'Button1','EBackground','2:FFFFFFFF,00000000,00000000'
call set 'Button2','EBackground','2:00000000,FFFFFFFF,00000000'

call set 'MainWindow','Open',1
if ~xGet('App','Iconified') then
if ~xGet('MainWindow','Open') then do
call MUIRequest 'App',,App.Title,'_Exit',"Can't open main window"
signal Exit
end

do forever
call NewHandle 'App','Event',BreakCSignal
if RMH_And(Event.Signals,BreakCSignal)>0 then
call Quit
interpret 'call' Event.Event
end

Quit:
Exit:
exit


Forward
Message #1736 of 1832 |
Expand Messages Author Sort by Date

In the attached example I set the first button red, but setting the second one green changes the first one back to the background color. 256 colors, RxMUI...
Robert A. Sisk
rsisk2003
Offline Send Email
Jul 1, 2007
9:08 pm

Hoi, ... In the description of the Areaclass the Attribute "EBackground" is defined as "only at creation time", maybe that's why it doesn't work correctly when...
Bernd Gollesch
bgollesch
Offline Send Email
Jul 2, 2007
8:21 am

... The RxMUIHelp Area command confirms that it's settable. A workaround is to set it after the window is open. Kind regards, -- Robert A. Sisk ...
Robert A. Sisk
rsisk2003
Offline Send Email
Jul 2, 2007
8:40 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help