<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi everybody,<br><br>I've got two questions mainly about fotos in FX Ruby.<br><br>I read the FX Ruby book and I'm using the "scale to thumbnail" method in my project.<br><br>Extract from the main code:<br><br>@logo="logo_small.jpeg"<br>logo_load=ImageViewer.new(self,@logo)<br><br><br>1. How can I position the foto in the window? If I create a bottom, f. ex., I have<br> LAYOUT_EXPLICIT, :x => 50, :y => 200, :width => 200, :height => 200, but how can<br> I select the x- and y-value for the foto? Any idea?<br><br>2. I would like to put this logo also into the title bar... is that possible?<br><br>some code:<br>class Main_Window < FXMainWindow<br> def self.toggle(nr, *args) <br> @@switcher.setCurrent(nr) <br> @@window[nr].set_text(args[0].to_s)<br> end<br> <br> def initialize(app)<br> super(app, 'Title bar text', :width=>800, :height=>600) # can I add a foto (logo) to the text in the title bar?<br> init_frameset<br> end<br> <br>Thanks in advance for any response! Have a nice weekend<br> Benjamin                                            <br /><hr />Windows 7 - <a href='http://redirect.gimas.net/?n=M0911MSWin7' target='_new'>jetzt entdecken!</a></body>
</html>