[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6194] addons/1.3/wxPOS/scripts/IC.pm



Revision: 6194
          http://sourceforge.net/p/ledger-smb/code/6194
Author:   einhverfr
Date:     2013-10-28 10:43:40 +0000 (Mon, 28 Oct 2013)
Log Message:
-----------
All screens now have proper x buttons in the upper left.

Modified Paths:
--------------
    addons/1.3/wxPOS/scripts/IC.pm

Modified: addons/1.3/wxPOS/scripts/IC.pm
===================================================================
--- addons/1.3/wxPOS/scripts/IC.pm	2013-10-28 10:25:52 UTC (rev 6193)
+++ addons/1.3/wxPOS/scripts/IC.pm	2013-10-28 10:43:40 UTC (rev 6194)
@@ -50,6 +50,13 @@
  return $self->$action();
 }
 
+sub _close_pane {
+ my ($self) = $_;
+ my $selection = $WXPOS::State::Notebook->GetSelection;
+ $WXPOS::State::Notebook->DeletePage($selection);
+ return 1;
+}
+
 sub _getWarehouses {
  my ($self) = @_;
  $self->{wh_des}->{''} = '';
@@ -64,7 +71,10 @@
 
 sub Parts {
  my ($self) = @_;
+### Close Window
  $self->{WxPanel} = Wx::Panel->new($self->{sesion}->{nb}, -1, wxDefaultPosition, wxDefaultSize, wxMAXIMIZE);
+ my $close_btn = Wx::Button->new($self->{WxPanel}, -1, '[X]', [750, 3], [30, 24]);
+ EVT_BUTTON($self->{WxPanel}, $close_btn, sub{$self->_close_pane});
  Wx::StaticText->new($self->{WxPanel}, -1, 'Number', [10, 20], [90, 24]);
  $self->{numb} = Wx::TextCtrl->new($self->{WxPanel}, -1, '', [110, 20], [90, 24]);
  Wx::StaticText->new($self->{WxPanel}, -1, 'Description', [10, 60], [90, 24]);

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits