Re: [Lazarus] (no subject)

2010-09-21 Thread Vannus
nice! sometimes the solution is simpler than you think :) patient - if i do this it hurts, doctor - don't do it then you could consider - check for locked resources after suspending the thread, resuming locking thread of necessary - a 'server' thread that other threads send messages to, a bit lik

[Lazarus] fpGUI

2010-09-01 Thread Vannus
I see fpGUI is 'pre-alpha', but i'm still a little surprised that when i try to compiile a 'blank' app I get an error... "Fatal: Can't find unit Interfaces used by project1" uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, Uni

Re: [Lazarus] TCustomForm.ShowModal impossible

2010-08-11 Thread Vannus
Just a thought, aren't you meant to derive from TCustomForm rather than use direct? TForm = class(TCustomForm) TMyForm = class(TCustomForm) So that you always use myTForm.ShowModal or myTMyForm.ShowModal ? Unless you're doping anything particularly unusual I wouldv'e thought TForm would've done t

Re: [Lazarus] Introduce programming competitions

2010-06-02 Thread Vannus
On 2 June 2010 16:18, Adem wrote: > On 2010-06-02 16:50, Graeme Geldenhuys wrote: > >> On 2 June 2010 15:37, Adem wrote: >> >> >>> -- Will there be some sort of selection commitee? >>> >>> >> I guess the community could do the voting themselves. Anybody willing >> to quickly put together a Free P

Re: [Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

2010-06-02 Thread Vannus
sorry for not replying sooner, i wanted to take the time to have a proper look at that code browser. On 27 May 2010 22:48, Peter E Williams < foss.game.pascal.develo...@iinet.net.au> wrote: > Hi Vannus & Waldo, > > I am wondering what are your views on programs such as Code

Re: [Lazarus] Introduce programming competitions

2010-06-02 Thread Vannus
On 2 June 2010 10:24, Graeme Geldenhuys wrote: > Hi, > > Back in the day, Borland used to host many programming competitions. (eg: > Multi-threaded, graphics, algorithms etc). They were pretty cool. > > Maybe we could start some Free Pascal competitions? Possibly get some > sponsors for prices, o

Re: [Lazarus] How do I switch from viewing a form in the source editor to viewing in the design GUI interface?

2010-06-01 Thread Vannus
just a thought, some of the early objects seems to be missing end;s... also, ModalResFile? that xml file can probably be deleted (Trash/Bin it so you can bring it back if I'm wrong) start a new blank project, add a button, label & edit and compile it. then compare what the .lfm .lpr .lpi files ar

Re: [Lazarus] How do I switch from viewing a form in the source editor to viewing in the design GUI interface?

2010-06-01 Thread Vannus
if you are viewing the .lfm code, usually right-click the tab and click view form iirc. - V 2010/6/1 Mattias Gärtner > Zitat von Peter E Williams : > > > Hi All, >> >> How do I switch from viewing a form in the source editor to viewing in >> the design GUI interface? >> > > Short cut F12 or th

Re: [Lazarus] Indy WebDAV

2010-05-30 Thread Vannus
I think my problems are related to lack of HTTP 1.1 support in Indy... anyone got any suggestions? - V On 30 May 2010 22:06, Vannus wrote: > anybody got this working at all? > > any other WebDAV clients out there that might work

[Lazarus] Indy WebDAV

2010-05-30 Thread Vannus
anybody got this working at all? any other WebDAV clients out there that might work? - V -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

2010-05-27 Thread Vannus
On 27 May 2010 20:25, waldo kitty wrote: > On 5/26/2010 14:26, Vannus wrote: > >> IMO thats redundant lines + more scrolling to read the code. whereas:- >> >> if x then begin >> code >> end else begin >> if y then begin >> code

Re: [Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

2010-05-26 Thread Vannus
> > if x then begin > code > end else begin > new-command; > if y then begin > code > end else begin > code > end; > end; > dammit, missed new-command when reading your code :S also kinda missed your point tbh... if x then begin code end else if y then begin code e

Re: [Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

2010-05-26 Thread Vannus
> > Ooops. Something went wrong with the formatting here. What I meant was: > > > But when having it formatted like this > > if x then > begin > code > end > else > if y then > begin > code > end > else > begin > code > end; > > you can immediately

Re: [Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

2010-05-26 Thread Vannus
> On the other some of the case statements I had to look at (and no, I did > not write them myself) are less easy to detect, even though they use proper > indent. > But if: > - a single block in the case, spans over 50 or more lines (multiply screen > pages) > - is already indented 4 or 5 levels at

Re: [Lazarus] Write to root window?

2010-05-25 Thread Vannus
On 25 May 2010 15:09, Jon Foster wrote: > I imagine its possible but I haven't a clue to know even where to beg in > looking. Is it possible to write to the root window in X (i386 Linux)? > I'd like to manipulate some images and write them there. > > THX - Jon > i think i came across something i

Re: [Lazarus] libmysql.dll

2010-05-24 Thread Vannus
2010/5/24 Leonardo Rame > Hi, I'm using Lazarus 0.9.29 64bits on Windows Seven 64bits. I can't make > SqlDb's MySql Database connector to work. > > Just downloaded "MySQL Connector C 6.0.2" from Mysql website, then copied > libmysql.dll from "C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt

Re: [Lazarus] quick opinion poll / pascal highlighting "case"

2010-05-24 Thread Vannus
On 24 May 2010 18:08, waldo kitty wrote: > On 5/24/2010 08:36, Martin wrote: > >> What are the opinions. Do you like/dislike the new highlighting of >> case-labels? >> e.g >> case a of >> *foo* : >> *bar*, *def*: >> end; >> >> In your opinion, should it be: >> - off by default >> - italics >> - u

Re: [Lazarus] Error: Identifier not found "CreateaNewIsland1Click" - now compiles. Wrong form loaded

2010-05-23 Thread Vannus
Hi Peter, in your main file (usually project1.lpr but i think yours was main_island.pas iirc) youll find something like... uses Forms, Unit1, LResources, Unit2; begin Application.Title:='Exit'; Application.Initialize; Application.CreateForm(TForm1, Form1); Application.CreateForm(TForm2

Re: [Lazarus] OT: Ideas for marketing Pascal + Lazarus

2010-05-23 Thread Vannus
2010/5/23 Antônio > Creating a games contest, as was done by lazarusbrasil. > > Antônio maybe turn it into a regular thing? shame lazarusgames.com is cyber-squatted >:( games.freepascal.org ? - V -- ___ Lazarus mailing list Lazarus@lists.lazarus.fr

Re: [Lazarus] OT: Ideas for marketing Pascal + Lazarus

2010-05-23 Thread Vannus
2010/5/21 ik > Hello, > > I've seen the following ted talk: > http://www.ted.com/talks/lang/eng/rory_sutherland_life_lessons_from_an_ad_man.html > Brilliant! that was well worth watching! > > I wonder how would you market Pascal/Lazarus (according to the lecture) to > people to use it ? > Dia

Re: [Lazarus] IDE layouts

2010-05-23 Thread Vannus
On 22 May 2010 12:47, Hans-Peter Diettrich wrote: > Vannus schrieb: > > > to handle screen sizes maybe layouts should allow 'absolute' (1280 pixels) >> or 'relative' (100%) positioning/sizing? >> > > A nice idea. > > It may lead to

Re: [Lazarus] PRADO - PHP in Delphi/Lazarus style

2010-05-23 Thread Vannus
How about this? > > http://www.youtube.com/watch?v=ZVUMW0V9nGs > > very interesting :) i will play around with this! - V -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Error: Identifier not found "CreateaNewIsland1Click"

2010-05-22 Thread Vannus
On 23 May 2010 00:56, Peter E Williams < foss.game.pascal.develo...@iinet.net.au> wrote: > Hi All, > > I am now getting an identifier not found error. In the error messages > window, if I select Help the lazarus cannot find the local HTML help > file. I cannot find my way around the lazarus websit

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-22 Thread Vannus
> HTH who? Me or the OP ;) > sorry - i thought you were the OP! > > The minimum that you have mentioned is already included in the OP's > program file, but his uses clause is improperly terminated. > my bad, i ddin't realise the program file was there, was expecting .lpr - V -- __

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-22 Thread Vannus
> uses > Forms, > Unit1 in 'set_max.pas' {Form1}, > Unit2 in 'main_island.pas' {Form2}; <-- semi colon > > ??? wheres 'program' ? where 'begin' & 'end' and the coide in between ? at the minimum there needs to be:- program hello; begin // do something ie:- writeln('Hello'); end. which i

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-21 Thread Vannus
thats the lpi file youve quoted, could you quote/attach the lpr file? heres an example you could compare with. (youre probably just missing ; or something) program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LC

[Lazarus] PRADO - PHP in Delphi/Lazarus style

2010-05-21 Thread Vannus
Just recenlty discovered this thing (Prado) that lets you develop PHP in the familiar TButton.OnClick that Lazarus/Delphi use. http://www.pradosoft.com/demos/quickstart/?page=GettingStarted.AboutPrado from what i can gather, the equivalents are... project1.lpr = index.php unit1.pas = home.php

Re: [Lazarus] IDE layouts

2010-05-21 Thread Vannus
> http://ivanheckman.com/allsnap/ absolutely perfect!! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE layouts

2010-05-21 Thread Vannus
1) When the IDE starts, it looks for a user layout, then for a default layout, and if one is found, restores that screen layout. Otherwise no additional windows are shown, so far. 2) When a project is opened, the IDE looks for a project specific layout to restore, otherwise like (1). 3) The user

Re: [Lazarus] non-visual components and Form Designer

2010-05-21 Thread Vannus
> > This bug was inherited from dfm files. > > DefineProperties is a Delphi invention. ah - my practical side would consider this a necessary evil. shame :( -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepasca

Re: [Lazarus] non-visual components and Form Designer

2010-05-21 Thread Vannus
> Looking at the *.lfm files I can see that non-visual components have > Left and Top properties stored. But those non-visual components > (descending from TComponent) doesn't actually have a Left and Top > published property. How does it compare with *.dfm files? The perfectionist in me would co

Re: [Lazarus] Lazarus make me create better apps

2010-05-20 Thread Vannus
I don't think FPC is well known for doing web stuff, whereas PHP is. If i didn't already know about Delphi/FPC I would never have chosen it for the web. web hosts advertise that you can use PHP/ASP/Perl/Ruby or CGI - no mention of Pascal, C, etc. It's also very easy to get a website running with D

Re: [Lazarus] CGI using weblaz

2010-05-19 Thread Vannus
ah-ha! there they are - thanks! On 19 May 2010 14:24, Joost van der Sluis wrote: > On Wed, 2010-05-19 at 13:45 +0100, Vannus wrote: > > Has anybody got query's to work with weblaz TCustomCGIApplication? > > > > ie. > > my.cgi?q=hello > > > > and my

[Lazarus] CGI using weblaz

2010-05-19 Thread Vannus
Has anybody got query's to work with weblaz TCustomCGIApplication? ie. my.cgi?q=hello and my.cgi then outputs whatever q is? the AResponse.Fields don't get filled with the query and AResponse.URL doesn't contain the URL for me to parse myself :( -- ___