I''m sure this will be user error on my part, but I can''t seem
to get the
following to layout properly.
Basically, I want the p1 to fill the available space and p2 to be as small
as possible (with the root panel filling all the available space). With
the following code, the buttons in the p2 end up being truncated, (i.e.
the bottom line is missing).
Where am I going wrong?
add(Panel, :proportion => 1) {|p| p.arrange_vertically(:padding => 5)
p.add(Panel, :proportion => 1) {|p1| p1.arrange_vertically(:padding
=> 5)
@history = p1.add(Choice, :minsize => true)
@input = p1.add(TextCtrl[:style => TE_MULTILINE], :proportion =>
1)
}
p.add(Panel, :proportion => 0) {|p2|
p2.arrange_horizontally(:padding => 5)
@eval = p2.add(Button[:label => ''eval''])
@clear_context = p2.add(Button[:label => ''clear
context''])
}
}
Incidently, it would be cool if sugar allowed applications to register
default styles (:padding etc) for component types
p.
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users