1. trouble with wxWindow
- Posted by Greg Haberek <ghaberek at gmail.com> Nov 14, 2005
- 427 views
I just starting using wxEuphoria, and I'm trying to create a wxWindow, but I keep getting an error. The parameters for creating a wxWindow are: - atom parent - atom id - sequence title - integer x [ = -1] - integer y [ = -1] - integer cx [ = -1] - integer cy [ = -1] - atom style [ = 0] Here's some test code:
include wxEuphoria.e without warning constant MainWin = create(wxFrame, {0,-1,"wxWindow Error Demo",-1,-1,640,480} ) constant Panel = create(wxPanel, {MainWin}) -- uncomment the following line to cause a crash: --constant Win01 = create(wxWindow, {Panel,-1,""}) wxMain( MainWin )
Here's the crash: C:\EUPHORIA\wxEuphoria\wxEuphoria.e:7009 in function new_wxWindow() slice ends past end of sequence (4 > 3) params = {9072648,-1,{}} window = {9072648,-1,18749451,18749443,0,18348988} len = 3 ... called from C:\EUPHORIA\wxEuphoria\wxEuphoria.e:6165 in function create() class_ = 30 params = {9072648,-1,{}} rid = 5 ... called from C:\EUPHORIA\PROJECTS\DateManager\window_error.exw:8
2. Re: trouble with wxWindow
- Posted by ZNorQ <znorq at holhaug.com> Nov 14, 2005
- 455 views
Greg Haberek wrote: > > > I just starting using wxEuphoria, and I'm trying to create a wxWindow, but I > keep getting an error. > > The parameters for creating a wxWindow are: > - atom parent > - atom id > - sequence title > - integer x [ = -1] > - integer y [ = -1] > - integer cx [ = -1] > - integer cy [ = -1] > - atom style [ = 0] > > Here's some test code: > }}} <eucode> > include wxEuphoria.e > without warning > > constant MainWin = create(wxFrame, {0,-1,"wxWindow Error > Demo",-1,-1,640,480} ) > constant Panel = create(wxPanel, {MainWin}) > > -- uncomment the following line to cause a crash: > --constant Win01 = create(wxWindow, {Panel,-1,""}) > > wxMain( MainWin ) > </eucode> {{{ > > Here's the crash: > > C:\EUPHORIA\wxEuphoria\wxEuphoria.e:7009 in function new_wxWindow() > slice ends past end of sequence (4 > 3) > params = {9072648,-1,{}} > window = {9072648,-1,18749451,18749443,0,18348988} > len = 3 > > ... called from C:\EUPHORIA\wxEuphoria\wxEuphoria.e:6165 in function create() > > class_ = 30 > params = {9072648,-1,{}} > rid = 5 > > ... called from C:\EUPHORIA\PROJECTS\DateManager\window_error.exw:8 Greg, I just started to explore the possibilities in wxWindows too, so I'm by far an expert! I don't think you can use both panel- and window control on the same frame - you have to choose.. I believe that if you use panel, you'll get an ordinary window, while using wxWindow (something I've never managed to create.. ) you can have multible windows in the same frame - like word, xls, etc. Someone correct me if I'm wrong.. :) Kenneth aka. ZNorQ
3. Re: trouble with wxWindow
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Nov 14, 2005
- 434 views
Greg Haberek wrote: > > > I just starting using wxEuphoria, and I'm trying to create a wxWindow, but I > keep getting an error. > > The parameters for creating a wxWindow are: > - atom parent > - atom id > - sequence title > - integer x [ = -1] > - integer y [ = -1] > - integer cx [ = -1] > - integer cy [ = -1] > - atom style [ = 0] Sorry, bad docs. There isn't a title for a wxWindow. I'll fix that for the next release. Matt Lewis