Re: euviewer3

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

don cole wrote:
> 
> Al Getz wrote:
> > 
> > don cole wrote:
> > > 
> > > 
> > > Al how can I change
> > > --Win =  
> > >   --  acreate( aWindow, "", 0, 0, 0, WinWidth, WinHeight,  WS_POPUP)
> > > --Use EzWindow to create the main window:
> > > MainAppWindow=EzWindow:Create(WS_EX_CONTROLPARENT,     --style Ex
> > >  0,-- OR({WS_VISIBLE,WS_OVERLAPPEDWINDOW}),--WS_VSCROLL,WS_HSCROLL,}),  
> > >  --style,
> > > scrollbars distract from pic!
> > >   MainWinBkColor,      --background color
> > >  " EuViewer",  --caption
> > >   0, 0,              --xpos, ypos
> > >   800, 500,            --width, height
> > >   0,                   --parent ID
> > >   0)                   --events (none yet)
> > > 
> > >     to
> > > 
> > > --winClasss
> > > Win =  
> > >     acreate( Window, "", 0, 0, 0, WinWidth, WinHeight,  WS_POPUP)
> > > 
> > >         or
> > > 
> > > --win32
> > > constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400,
> > > 280,
> > > {WS_POPUP, WS_THICKFRAME}, 0 )
> > > 
> > > 
> > > Don Cole
> > > A Bug is an un-documented feature.
> > > A Feature is a documented Bug.
> > 
> > Hi Don,
> > 
> > Are you saying you want to create the main window using WinLib or something
> > like that?  If you're using EuViewer3 you dont need WinLib to create
> > a window.  The returned ID is somewhat the same as that returned in
> > WinLib, but if you need to create a special window that EzWindow wont
> > allow you to create, use Window instead of EzWindow, but i think you
> > should be able to use EzWindow just by changing the parameters.
> > 
> > Im not exactly sure what you want to do there though, perhaps you can
> > clarify the question a little bit?  
> > 
> > 
> > Take care,
> > Al
> > 
> > And, good luck with your Euphoria programming!
> > 
> > My bumper sticker: "I brake for LED's"
> 
> Hello Al ,
> 
> To Clarify I would to create a plain window, no boarders ,no captions,
> no titles,no scroll bars.  I don't care what .ew file is used to create it.
> EzWindow would be fine. What parameters should I use?
> 
> Don Cole
> A Bug is an un-documented feature.
> A Feature is a documented Bug.

Hi there Don,

Here's a quick example:

constant W2=EzWindow:Create(
  0,                     --style Ex
  WS_VISIBLE+WS_POPUP,   --style
  #FF00FF,               --background color (violet)
  "Window 2",            --caption (can be " " for no caption)
  20, 20,                --xpos, ypos
  300, 200,              --width, height
  0,                     --parent ID (none, or 'Desktop')
  0)                     --events (none yet)

The above creates a small violet window with no border,caption, or
system menu.

If you dont like making colors in hex yourself, you can use
WindowsColors.ew which defines lots of colors by name.  For example...


include WindowsColors.ew
constant W2=EzWindow:Create(
  0,                     --style Ex
  WS_VISIBLE+WS_POPUP,   --style
  DarkGoldenrod,         --background color (from WindowsColors.ew)
  "Window 2",            --caption (can be " " for no caption)
  20, 20,                --xpos, ypos
  300, 200,              --width, height
  0,                     --parent ID (none, or 'Desktop')
  0)                     --events (none yet)




I guess you're going 'full screen' with this window?  Is that it?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu