1. Help for a beginner please!
- Posted by Mike Dawes <mike at dawes.com> Feb 24, 2006
- 474 views
I have used Euphoria in the DOS environment, and LOVE it!! Trying to graduate to Windows and am stuck at starting gate with 2 documentation issues. 1. I cannot find any helpful documentation on the Enhanced IDE itself other than what is in the Help file. My immediate issue is how can I see the code that is generated? I can run it OK from "Generate program", but I cannot seem to be able to see the whole file that has been created. Also I cannot find explanations for the the Controls that are available at the bottom of the IDE Window. 2. For the Win32 Library, I seem to need another level (more basic or complete) of documentation than that accessed through the IDE Help. As an example MlE Text maybe something I want, but I cannot find decent explanation of the Control and its parameters. It always seems as if there is one other magic document out there which will unlock all this for me!
2. Re: Help for a beginner please!
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2006
- 455 views
Mike Dawes wrote: > 2. For the Win32 Library, I seem to need another level (more basic or > complete) > of documentation than that accessed through the IDE Help. As an example > MlE Text maybe something I want, but I cannot find decent explanation of the > Control and its parameters. > > It always seems as if there is one other magic document out there which will > unlock all this for me! I agree that the existing documention is never enough for people starting out. I'm responsible for most of the documentation for the win32lib and it is huge, but it doesn't really help people learn how to do GUI. Anyhow, I have two suggestions for now. Explore the sample/demo programs that come with the library (there are about 250 of those) and see how its done. The best start for doing that is to run the 'RunDemos' program. The second suggestion is to call upon the helpful people here to give you are few clues every now and then. For example, you mention the MleText control...that control is useful for unformatted, multi-line text. It doesn't do multiple-colored text, and the other things you see in a typical word processor. Here is a drop-dead simple program to show this. -------- include win32lib.ew without warning integer win integer textviewer win = create(Window, "MultiLine Box", 0, 0, 0, 400, 400, 0) textviewer = create(MleText, "", win, 10, 10, 350, 350, 0) WinMain(win, Normal) ------ -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell
3. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 24, 2006
- 470 views
If you downloaded win32lib look under DOCS/Index. Don Cole
4. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 24, 2006
- 453 views
As far as seeing the whole file that has been created, I've never been able to figure that out myself. I guess in IDE you go to Launch/Run and save the file. Then look it up and open it and read it (it will be a .exw file). I agree I think there should be away to look at it from within IDE. Don Cole
5. Re: Help for a beginner please!
- Posted by amux <jjsg at abc.se> Feb 24, 2006
- 448 views
Mike Dawes wrote: > 1. I cannot find any helpful documentation on the Enhanced IDE itself > other than what is in the Help file. My immediate issue is how can I see the > code that is generated? > I can run it OK from "Generate program", but I cannot seem to be able to see > the whole file that has been created look here: menu editors/code editor/view codebase/view /amux
6. Re: Help for a beginner please!
- Posted by Mike Dawes <mike at dawes.com> Feb 24, 2006
- 453 views
Derek Parnell wrote: > > Mike Dawes wrote: > > > 2. For the Win32 Library, I seem to need another level (more basic or > > complete) > > of documentation than that accessed through the IDE Help. As an example > > MlE Text maybe something I want, but I cannot find decent explanation of the > > Control and its parameters. > > > > It always seems as if there is one other magic document out there which will > > unlock all this for me! > > I agree that the existing documention is never enough for people starting out. > I'm responsible for most of the documentation for the win32lib and it is huge, > but it doesn't really help people learn how to do GUI. > > Anyhow, I have two suggestions for now. Explore the sample/demo programs that > come with the library (there are about 250 of those) and see how its done. The > best start for doing that is to run the 'RunDemos' program. > > The second suggestion is to call upon the helpful people here to give you are > few clues every now and then. For example, you mention the MleText > control...that > control is useful for unformatted, multi-line text. It doesn't do > multiple-colored > text, and the other things you see in a typical word processor. Here is a > drop-dead > simple program to show this. > > -------- > include win32lib.ew > without warning > integer win > integer textviewer > > win = create(Window, "MultiLine Box", 0, 0, 0, 400, 400, 0) > textviewer = create(MleText, "", win, 10, 10, 350, 350, 0) > WinMain(win, Normal) > ------ > > > -- > Derek Parnell > Melbourne, Australia > Skype name: derek.j.parnell Thank you Derek! Another post helped me a little with my question 1. I was hoping MleText would be an editable matrix. I am trying to convert my DOS Sudoku program to Windows as a learning tool. For that I want to display a 9 x 9 matrix of numbers so the user can edit blank squares. His entry would then be an event to initiate a logic. Isn't this editting window for the forum annoying with no word wrap! Mike
7. Re: Help for a beginner please!
- Posted by Jason Gade <jaygade at yahoo.com> Feb 24, 2006
- 436 views
Mike Dawes wrote: > Isn't this editting window for the forum annoying with no word wrap! > Mike I've got wordwrap under Firefox... what are you using? I just wish that it had a preview function. -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.
8. Re: Help for a beginner please!
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2006
- 460 views
Mike Dawes wrote: > I was hoping MleText would be an editable matrix. I am trying to convert my > DOS Sudoku program to Windows as a learning tool. > For that I want to display a 9 x 9 matrix of numbers so the user can edit > blank > squares. His entry would then be an event to initiate a logic. I believe somebody has created a grid control for win32lib. Try using the RDS User Contribution search facility to find it. If that fails, I can knock up a simple grid control for you. I wanted to do something like that anyway for the next release so this might be just the excuse to do it. > Isn't this editting window for the forum annoying with no word wrap! BTW, I'm getting word wrapping on this form while using Opera. Are you going through Topica or RDS's interface to the forum? -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell
9. Re: Help for a beginner please!
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Feb 24, 2006
- 450 views
> > Mike Dawes wrote: > > > > Isn't this editting window for the forum annoying with no word wrap! > Word Wrap is set from this page: http://www.rapideuphoria.com/cgi-bin/usercont.exu?actionType=settings Ken Rhodes 100% MicroSoft Free SuSE Linux 10.0 No AddWare, SpyWare, or Viruses! Life is Good
10. Re: Help for a beginner please!
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Feb 24, 2006
- 460 views
Kenneth Rhodes wrote: > > > > Mike Dawes wrote: > > > > > > > Isn't this editting window for the forum annoying with no word wrap! > > > > Word Wrap is set from this page: > <a > href="http://www.rapideuphoria.com/cgi-bin/usercont.exu?actionType=settings">http://www.rapideuphoria.com/cgi-bin/usercont.exu?actionType=settings</a> > Well, after you log in :) - if the link above doesn't work, go to the account settings menu in the upper right of the EuForum web page. > > Ken Rhodes > 100% MicroSoft Free > SuSE Linux 10.0 > No AddWare, SpyWare, or Viruses! > Life is Good Ken Rhodes 100% MicroSoft Free SuSE Linux 10.0 No AddWare, SpyWare, or Viruses! Life is Good
11. Re: Help for a beginner please!
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 24, 2006
- 461 views
Derek Parnell wrote: > > I'm responsible for most of the documentation for the win32lib and it is huge, > but it doesn't really help people learn how to do GUI. > Since you brought it up ...What's the status of getting the current code base released? Even if we just put up a CVS-like snapshot or something on sourceforge? Matt Lewis
12. Re: Help for a beginner please!
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2006
- 462 views
Matt Lewis wrote: > Since you brought it up ...What's the status of getting the current > code base released? Even if we just put up a CVS-like snapshot or something > on sourceforge? I'm putting the last of the patches into it this weekend and doing testing next week. Hopefully, if everything is lookinh clean, a release the weekend after that. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell
13. Re: Help for a beginner please!
- Posted by amux <jjsg at abc.se> Feb 24, 2006
- 469 views
Does anyone want to comment this part of a program?
for i = startx to endx do -- ERASE PIXMAP1 (OVERWRITE PIXMAP1 BY PIXMAP2 IN MEMORY) copyBlt(pixmap1,0,0,pixmap2) -- DRAW GRAPHICS ON PIXMAP1 drawEllipse(pixmap1,0,i,23,i+rad,(23+rad)) -- COPY PIXMAP1 TO CONTROL WIN1 copyBlt(win1,x,y,pixmap1) end for
/amux
14. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 24, 2006
- 455 views
amux wrote: > > Does anyone want to comment > this part of a program? > > }}} <eucode> > for i = startx to endx do > -- ERASE PIXMAP1 (OVERWRITE PIXMAP1 BY PIXMAP2 IN MEMORY) > copyBlt(pixmap1,0,0,pixmap2) > -- DRAW GRAPHICS ON PIXMAP1 > drawEllipse(pixmap1,0,i,23,i+rad,(23+rad)) > -- COPY PIXMAP1 TO CONTROL WIN1 > copyBlt(win1,x,y,pixmap1) > end for > </eucode> {{{ > > /amux startx and endx have not been assigned a value and are not used in the loop You need something like
for x=1 to 10 do for y=1 to 10 do --I don't know what your trying to do here end for end for Don Cole }}}
15. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 24, 2006
- 463 views
Disregard that last post I'm probably just confusing you. All I know is x and y and startx and endx have not been defined. Don Cole
16. Re: Help for a beginner please!
- Posted by amux <jjsg at abc.se> Feb 24, 2006
- 465 views
- Last edited Feb 25, 2006
don cole wrote: > > amux wrote: > > > > Does anyone want to comment > > this part of a program? > > > > }}} <eucode> > > for i = startx to endx do > > -- ERASE PIXMAP1 (OVERWRITE PIXMAP1 BY PIXMAP2 IN MEMORY) > > copyBlt(pixmap1,0,0,pixmap2) > > -- DRAW GRAPHICS ON PIXMAP1 > > drawEllipse(pixmap1,0,i,23,i+rad,(23+rad)) > > -- COPY PIXMAP1 TO CONTROL WIN1 > > copyBlt(win1,x,y,pixmap1) > > end for > > </eucode> {{{ > > > > /amux > I try to use graphics in win32lib. Fast and smooth movement, someone wrote about using two pixmaps ,draw lines on one and then copy to window This code works , but not smooth so maybe i have missed something. /amux
17. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 24, 2006
- 476 views
- Last edited Feb 25, 2006
Draw your elipse while pixmap1 is hidden (behind the scene so to speak) And then copy it to the window. It looks like your doing that so it should be smooth. Don Cole
18. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 24, 2006
- 466 views
- Last edited Feb 25, 2006
Sent too soon . I still don't get the point of the x,y why not just use zeros in the last statement? Don Cole
19. Re: Help for a beginner please!
- Posted by amux <jjsg at abc.se> Feb 25, 2006
- 461 views
don cole wrote: > > Sent too soon . I still don't get the point of the x,y why not just use zeros > in the last statement? > > Don Cole It is user input , positon on win1 may be changed. the same x,y should be on the first row next try will be to use bitBlt (only copy partial) Do you have a suggestion on an intelligent editor (code-genie is smart but old and not supported) /amux
20. Re: Help for a beginner please!
- Posted by don cole <doncole at pacbell.net> Feb 25, 2006
- 475 views
amux wrote: > > don cole wrote: > > > > Sent too soon . I still don't get the point of the x,y why not just use > > zeros > > in the last statement? > > > > Don Cole > > It is user input , positon on win1 may be changed. > the same x,y should be on the first row > > next try will be to use bitBlt (only copy partial) > > Do you have a suggestion on an intelligent editor (code-genie is smart but old > and not supported) > > > /amux If you are chaging x and y the way you want them your cide seems to be all right. http://palacebuilders.pwp.blueyonder.co.uk/edita.htm#download Don Cole