Re: Ugh! I am having trouble visualizing sizers.

new topic     » goto parent     » topic index » view thread      » older message » newer message

What you're describing is dot notation, an inherent feature of object-oriented programming. Euphoria is not object-oriented, and does not have that form of syntax. Similar features can be had with Euphoria's namespace feature, which I believe Matt is planning to add into wxEuphoria for the next major release. (Though I could be wrong on that.)

Here's an example of how I understand it would work...

// wxWidgets C++ code 
#include <wx/frame.h> 
 
wxFrame * frame = new wxFrame( parent, id, title, pos, size, style ); 
wxToolBar * toolbar = frame->CreateToolBar( style ); 


-- wxEuphoria code
include wxFrame.e as wxFrame 
 
atom frame = wxFrame:Create( parent, id, title, pos, size, style ) 
atom toolbar = wxFrame:CreateToolBar( frame, style ); 


As you can see, such methods would make for almost line-to-line conversion of C wxWidgets programs.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu