How to create a record button?
How to create a dontnet button to display one image when pressed once, and another - when pressed second time(for example red and grey)
--btn = dotnetobject "Button" dotnetcontrol btn "System.Windows.Forms.Button" pos:[667,101] width:15 height:15 border:false --btn.FlatStyle = btn.FlatStyle.Flat btn.flatstyle = dotnetobject "System.Windows.Forms.FlatStyle" Flat btn.Location = dotNetObject "System.Drawing.Point" 1 prevh i=1 if i==1 then ( btn.image = (StringToImage record_red) i=0 ) else btn.image = (StringToImage record_grey)
just to use that if, or there is a more correct way?
Comments
;)
Is this simple enought
bga
:)
And finaly I add example with ContextMenuStrip that you asked in previous post
Here we go. Just press RMB over button
bga
edit
If you need to change items count or font size in CMS you need also adjust height and width
bga