Guest User

Untitled

a guest
Dec 6th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Include "wx-c 0.9.2/wx.bi"
  2.  
  3. Declare Function App_OnInit WXCALL ( ) As wxBool
  4. Declare Function App_OnExit WXCALL ( ) As wxInt
  5.  
  6.  
  7. Dim Shared As wxApp Ptr wx_app
  8. Dim Shared As wxFrame Ptr wx_frame
  9. Dim Shared As wxPanel Ptr wx_panel
  10.  
  11. Function App_OnInit WXCALL ( ) As wxBool
  12.    
  13.     wx_frame = wxFrame_ctor( )
  14.     wxFrame_Create( wx_frame, WX_NULL, -1, wxString_ctorUTF8("svTätigkeiten"), 246, 188, 733, 670, wxFRAME_DEFAULT_STYLE Or wxCLOSE_BOX Xor wxMAXIMIZE_BOX Xor wxRESIZE_BORDER, WX_NULL )
  15.     wx_panel = wxPanel_ctor2( wx_frame, -1, -1, -1, -1, -1, 0, WX_NULL )
  16.    
  17.     ''
  18.     '' create widget staticbox0
  19.     ''
  20.     Dim As wxStaticBox Ptr staticbox0
  21.     staticbox0 = wxStaticBox_ctor( )
  22.     wxStaticBox_Create( staticbox0, wx_panel, -1, wxString_ctorUTF8("Sucheingaben"), 10, 10, 650, 80, 0, 0 )
  23.    
  24.     ''
  25.     '' create widget stattext0
  26.     ''
  27.     Dim As wxStaticText Ptr stattext0
  28.     stattext0 = wxStaticText_ctor( )
  29.     wxStaticText_Create( stattext0, wx_panel, -1, wxString_ctorUTF8("3-stelliger Schlüssel"), 30, 40, 120, 20, 0, 0 )
  30.    
  31.    
  32.     ''
  33.     '' create widget stattext1
  34.     ''
  35.     Dim As wxStaticText Ptr stattext1
  36.     stattext1 = wxStaticText_ctor( )
  37.     wxStaticText_Create( stattext1, wx_panel, -1, wxString_ctorUTF8("5-stelliger Schlüssel"), 510, 40, 110, 20, 0, 0 )
  38.    
  39.    
  40.     ''
  41.     '' create widget stattext2
  42.     ''
  43.     Dim As wxStaticText Ptr stattext2
  44.     stattext2 = wxStaticText_ctor( )
  45.     wxStaticText_Create( stattext2, wx_panel, -1, wxString_ctorUTF8("Tätigkeitsbezeichnung"), 250, 40, 140, 20, 0, 0 )
  46.            
  47.     ''
  48.     '' create widget list0
  49.     ''
  50.     Dim As wxArrayString Ptr list0_str
  51.     list0_str = wxArrayString_ctor( )
  52.     wxArrayString_Add( list0_str, wxString_ctorUTF8( "list0" ) )
  53.     Dim As wxListBox Ptr list0
  54.     list0 = wxListBox_ctor( )
  55.     wxListBox_Create( list0, wx_panel, -1, wxPoint_ctor( 10, 340 ), wxSize_ctor( 310, 280 ), list0_str, 0, 0, 0 )
  56.    
  57.    
  58.     ''
  59.     '' create widget list1
  60.     ''
  61.     Dim As wxArrayString Ptr list1_str
  62.     list1_str = wxArrayString_ctor( )
  63.     wxArrayString_Add( list1_str, wxString_ctorUTF8( "list1" ) )
  64.     Dim As wxListBox Ptr list1
  65.     list1 = wxListBox_ctor( )
  66.     wxListBox_Create( list1, wx_panel, -1, wxPoint_ctor( 330, 340 ), wxSize_ctor( 380, 280 ), list1_str, 0, 0, 0 )
  67.    
  68.    
  69.     ''
  70.     '' create widget txtBez
  71.     ''
  72.     Dim As wxTextCtrl Ptr txtBez
  73.     txtBez = wxTextCtrl_ctor( )
  74.     wxTextCtrl_Create( txtBez, wx_panel, -1, wxString_ctorUTF8(""), 210, 70, 220, 30, 0, 0, 0 )
  75.    
  76.    
  77.     ''
  78.     '' create widget txt3T
  79.     ''
  80.     Dim As wxTextCtrl Ptr txt3T
  81.     txt3T = wxTextCtrl_ctor( )
  82.     wxTextCtrl_Create( txt3T, wx_panel, -1, wxString_ctorUTF8(""), 30, 70, 100, 30, 0, 0, 0 )
  83.    
  84.    
  85.     ''
  86.     '' create widget txt5T
  87.     ''
  88.     Dim As wxTextCtrl Ptr txt5T
  89.     txt5T = wxTextCtrl_ctor( )
  90.     wxTextCtrl_Create( txt5T, wx_panel, -1, wxString_ctorUTF8(""), 510, 70, 100, 30, 0, 0, 0 )
  91.    
  92.    
  93.     ''
  94.     '' create widget slider0
  95.     ''
  96.     Dim As wxSlider Ptr slider0
  97.     slider0 = wxSlider_ctor( )
  98.     wxSlider_Create( slider0, wx_panel, -1, 0, 0, 100, 670, 290, 20, 20, 0 Or wxSL_LABELS, 0, 0 )
  99.     wxSlider_SetValue( slider0, 0 )
  100.  
  101.  
  102.    
  103.     wxWindow_Show( wx_frame, 1 )
  104.     wxApp_OnInit( wx_app )
  105.     Return 1
  106.    
  107. End Function
  108.  
  109. Function App_OnExit WXCALL ( ) As wxInt
  110.    
  111.     Return wxApp_OnExit( wx_app )
  112.    
  113. End Function
  114.  
  115.  
  116. ''main
  117. wx_app = wxApp_ctor( )
  118. wxApp_RegisterVirtual ( wx_app, @App_OnInit, @App_OnExit )
  119. wxApp_Run(0, 0)
Add Comment
Please, Sign In to add comment