1. Non-resizable windows and the ever present comma in Win32LIB
- Posted by David Alan Gay <moggie at INTERLOG.COM> Aug 05, 2000
- 453 views
- Last edited Aug 06, 2000
Greetings I have two questions. Can a created window's attribute be set so it cannot be resized at all? I've noticed some applications that do this. Also, I've noticed the generous use of the comma in many of David Cuny's WIN32LIB example programs. When I was creating a very, very, VERY simple text editor for experimentation with WIN32LIB, I accidentally forgot to include the ,'s in the menu and menu list definitions, but I appear to have suffered no consequences during the compilation and execution of the program. Is the comma really required as part of the WIN32LIB syntax? Thanks David Gay
2. Re: Non-resizable windows and the ever present comma in Win32LIB
- Posted by Matt Lewis <matthewwalkerlewis at YAHOO.COM> Aug 06, 2000
- 416 views
--- David Alan Gay <moggie at INTERLOG.COM> wrote: > Can a created window's attribute be set so it cannot be resized at all? I've > noticed some applications that do this. Try: WS_THICKFRAME > Also, I've noticed the generous use of the comma in many of David Cuny's > WIN32LIB example programs. When I was creating a very, very, VERY simple > text editor for experimentation with WIN32LIB, I accidentally forgot to > include the ,'s in the menu and menu list definitions, but I appear to have > suffered no consequences during the compilation and execution of the > program. > Is the comma really required as part of the WIN32LIB syntax? I'm not really sure what you mean here. The commas are generally just standard Eu syntax. I suspect you're referring to the commas between all the create() statements. Dave usually creates a control, and uses a constant to track it, and so he puts commas between them to avoid typing "constant" repeatedly. Did you perhaps use atoms or integers for your controls? Matt __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/
3. Re: Non-resizable windows and the ever present comma in Win32LIB
- Posted by David Alan Gay <moggie at INTERLOG.COM> Aug 06, 2000
- 439 views
Greetings! > Try: WS_THICKFRAME > Let me rephrase my question...I meant using WIN32LIB :) > I'm not really sure what you mean here. The commas are generally just standard > Eu syntax. I suspect you're referring to the commas between all the create() > statements. Dave usually creates a control, and uses a constant to track it, > and so he puts commas between them to avoid typing "constant" repeatedly. Did > you perhaps use atoms or integers for your controls? > > Matt That's precisely what I did. Thank you :)
4. Re: Non-resizable windows and the ever present comma in Win32LIB
- Posted by Brian Broker <bkb at CNW.COM> Aug 07, 2000
- 416 views
On Sat, 5 Aug 2000 20:50:50 -0400, David Alan Gay wrote: >Greetings > >I have two questions. > >Can a created window's attribute be set so it cannot be resized at all? >I've noticed some applications that do this. include win32lib.ew constant NoSizeWin = or_all( {WS_DLGFRAME, WS_SYSMENU, WS_MINIMIZEBOX} ), MyWin = create( Window, "my non-sizeable window", 0, 0, 0, 300, 200, NoSizeWin ) -- hope this helps, -- Brian
5. Re: Non-resizable windows and the ever present comma in Win32LIB
- Posted by David Alan Gay <moggie at INTERLOG.COM> Aug 07, 2000
- 433 views
- Last edited Aug 08, 2000
It does help. It appears the attribute to change (or not to change) the size of the window is the result of multiple flags being OR'd to produce the desired effect. And as I mentioned to Wolfgang, it explains what that last parameter in the create() function is for. Thanks to you (and also to everyone) for the help offered. > include win32lib.ew > > constant > NoSizeWin = or_all( {WS_DLGFRAME, WS_SYSMENU, WS_MINIMIZEBOX} ), > > MyWin = create( Window, "my non-sizeable window", > 0, 0, 0, 300, 200, NoSizeWin ) > > -- hope this helps, > -- Brian >