Question about wxbutton?

hello, I have some question.

when I use wxbutton. the button is a simple window system theme how can
I change this button to window vista button style?

and how can I remove cmd box in background?

see picture for more details.

thank you:)

I’m not sure about vista style button
since I don’t use vista
but in xp there is a way to make the button using xp style,
by adding some xml file into ruby/bin directory.
Perhaps another who use vista can help?

about remove cmd box in background, try changing your file extension
from
.rb to .rbw

thank for the answer to remove cmd box it’s work!

but I try to searching the way to change button style someone know? :’(

On 05/02/2010 04:56, Pat K. wrote:

when I use wxbutton. the button is a simple window system theme how can
I change this button to window vista button style?

Try these steps here:

http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html

This blog suggests that wxWidgets by and large supports Vista-style
widgets out the box:

http://wxwidgets.blogspot.com/2007/02/wxwidgets-under-vista.html

cheers
alex

Alex F. wrote:

On 05/02/2010 04:56, Pat K. wrote:

when I use wxbutton. the button is a simple window system theme how can
I change this button to window vista button style?

Try these steps here:

http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html

This blog suggests that wxWidgets by and large supports Vista-style
widgets out the box:

http://wxwidgets.blogspot.com/2007/02/wxwidgets-under-vista.html

cheers
alex

Some time ago I encountered the same problem and was given a solution:
http://www.ruby-forum.com/topic/190390#new
Additionally, I checked what happens if the script is compiled with OCRA
and found that, if you include the manifest via the -dll option, the
correct styles were used automatically.

and how can I remove cmd box in background
Run the script with rubyw.exe, but beware that every attempt to write to
$stdout (unless you redirected it) will now result in an error. The old
OCI used to run scipts with the .rbw extension with rubyw.exe, but for
the new RubyInstaller I don’t know. What’s your Ruby version?

Marvin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs