Forum: wxRuby question about wxbutton?

Posted by Pat Kiatchaipipat (blitzer)
on 2010-02-05 05:56
Attachment: fff.jpg (16,4 KB)
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:)
Posted by hendra kusuma (Guest)
on 2010-02-05 06:58
(Received via mailing list)
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
Posted by Pat Kiatchaipipat (blitzer)
on 2010-02-05 07:05
thank for the answer to remove cmd box it's work!

but I try to searching the way to change button style someone know? :'(
Posted by Alex Fenton (Guest)
on 2010-02-05 23:38
(Received via mailing list)
On 05/02/2010 04:56, Pat Kiatchaipipat 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
Posted by Marvin Gülker (quintus)
on 2010-02-12 14:03
Alex Fenton wrote:
> On 05/02/2010 04:56, Pat Kiatchaipipat 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.