Re: [Lazarus] Does using GtkFrame in LCL make sense?

2011-07-01 Thread zeljko
On Friday 01 of July 2011 16:29:33 Max Vlasov wrote:
 On Fri, Jul 1, 2011 at 6:17 PM, Henry Vermaak henry.verm...@gmail.com 
wrote:
  On 01/07/11 15:09, Henry Vermaak wrote:
  On 01/07/11 14:44, Henry Vermaak wrote:
  On 01/07/11 13:17, Max Vlasov wrote:
  Trying to solve the problem, I ended up with the following replacement
  in the TGtk2WSCustomPanel.CreateHandle
  
  {  Before }
  
  Frame := gtk_frame_new(nil);
  gtk_frame_set_shadow_type(PGtkFrame(Frame),
  BorderStyleShadowMap[TCustomControl(AWinControl).BorderStyle]);
  
  gtk_container_set_border_width(PGtkContainer(Frame), 0) here seems to
  make it better.
  
  Actually, it doesn't make a difference. The thing that fooled me is that
  my panels on debian are bigger than yours on ubuntu.
  
  That said, changing the frame to gtk_alignment_new(0, 0, 1, 1) seems to
  work for me.  What does it look like on Ubuntu?
 
 Henry, works correctly in Ubuntu, looks like a good candidate. At
 least it hasn't bad history of the scrolling control so maybe also
 fixes the same problems. But I still can not catch OnPaint from all 3
 variants (Frame, Scrolling, Alignment) bevel-less or not. So I don't
 understand what was that fix (#19488) about.

don't know ... maybe ask reporter of that issue and August.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread zeljko
On Thursday 30 of June 2011 15:10:08 Dirk wrote:
 Submitted bug report + patch for Anchordocking:
 http://bugs.freepascal.org/view.php?id=19660

I've applied your patch.
thanks
zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can't build lazarus for QT

2011-06-28 Thread zeljko
On Monday 27 of June 2011 22:01:46 Krzysztof wrote:
 I have empty revision in about, but filename is
 lazarus-0.9.31.31388-20110626.i386.deb.tar, downloaded yesterday. I
 temporary try create debs from svn which I have on ubuntu and copy them to
 kubuntu virtual mashine
 
 BTW: I have two questions about QT in lazarus
 1. If I sent compiled QT executable to my friend (which has kubuntu, so he
 has QT) he will run it without external librarys? (like libQt4Pas.so etc)

No, libQt4Pas must be installed , it's glue (C library) between lazarus and qt 
libs.

 2. I notify that application popup menus have no icons and trayicon have no
 transparency. Is this known behavior or this is because I have LCL GTK yet?

Theme settings disables icons in menus.

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ComboBox Bug

2011-06-24 Thread zeljko
On Friday 24 of June 2011 19:51:35 David Copeland wrote:
 On Fri, 2011-06-24 at 19:41 +0200, Mattias Gaertner wrote:
  Then you found a buggy gtk theme.
  I don't know, if the LCL gtk2 interface can work around
  this.
  What Linux distribution is this?
 
 openSuse 11.4.

There's a lot of bugs in oxygen-gtk theme, open issue at their tracker.
zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] non-sensical window repositioning

2011-06-24 Thread zeljko
On Friday 24 of June 2011 14:57:15 Felipe Monteiro de Carvalho wrote:
 On Fri, Jun 24, 2011 at 2:46 PM, Mattias Gaertner
 
 nc-gaert...@netcologne.de wrote:
  For full screen see here:
  http://wiki.lazarus.freepascal.org/Application_full_screen_mode
 
 I think we should implement that in the LCL. What do you think about
 these proposals:
 
 1 TForm.SetFullscreen(AValue: Boolean);
 2 fsFullScreen -- but then you can't combine with fsSystemStayOnTop
 
  Some window managers do that.
 
 Yes, it is probably KDE which is hitting me =( I debugged and even Gtk
 doesn't know about the position change, it just magically occurs some
 time after show(), which indicates window manager changes.
 
 This works fine (just smaller then the screen width):
 
 begin
   Application.Initialize;
   Application.CreateForm(TForm1, Form1);
   Form1.Left := 0;
   Form1.Top := 0;
   Form1.Width := 1673;
   Form1.Height := 1050;
   Application.Run;
 end.
 
 This fails:
 
 begin
   Application.Initialize;
   Application.CreateForm(TForm1, Form1);
   Form1.Left := 0;
   Form1.Top := 0;
   Form1.Width := 1674;
   Form1.Height := 1050;
   Application.Run;
 end.

Qt supports fullscreen window state ... don't know for others. I guess that 
it's not hard task to implement it for other X11 widgetsets ... but don't know 
for win32 and carbon.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TCustomListView new features

2011-06-24 Thread zeljko
Hi all,
I was sick of writing Item.Delete, Item.Create etc.. when want to exchange 
items or just move item to another row in list.
I've added TCustomListView.Items.Exchange(index1, index2) and 
TCustomListView.Items.Move(FromIndex, ToIndex). All widgetsets except carbon 
are implemented, so feel free to test it. It's not implemented via Delete() 
and Insert(), but via reassigning ws items, so less overhead.
Lazarus svn trunk r31367 and above is needed.

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Compile and Build menu entries, Run- or Project-menu?

2011-06-22 Thread zeljko
On Tuesday 21 of June 2011 16:57:44 Bart wrote:
 Please leave Compile as the first entry in the Run menu.
 I use it far more often than Run and I'm used ti it's location.
 
 (Ctrl-F9 is reserved by my windowmanager (?) in Linux, so I can't use
 it instead).

That change makes me crazy (Run as first entry) #!#!###%#$# ;)

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New features since 0.9.30?

2011-06-18 Thread zeljko
On Friday 17 of June 2011 20:38:18 Alexander Klenin wrote:
 On Sat, Jun 18, 2011 at 03:47, Aleksa Todorovic alexi...@gmail.com wrote:
  Some interesting points from
  http://wiki.freepascal.org/Lazarus_0.9.30_release_notes, probably
 
  worth mentioning:
 I think he means *since* 0.9.30.
 Maybe it is time to create Lazarus_0.9.32_release_notes?

AFAIK 0.99 and 1.0 are real next targets.

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New features since 0.9.30?

2011-06-18 Thread zeljko
On Friday 17 of June 2011 17:47:46 Joost van der Sluis wrote:
 Hi all,
 
 Tomorrow I'll give an presentation on the new features of Lazarus since
 0.9.30.
 
 Are there things you think I should really mention?
 
 What I have now:
 - Package manager (actually fpc 2.6.0)
 - Thread-view in debugging
 - History in debugging
 - New menu-structure
 
 Well... additions? I have to go now, but I suspect a list tomorrow to
 show. ;)

I'll commit first MDI support code probably tomorrow. 

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TDBGrid broken in svn fixes_0_9_30

2011-06-13 Thread zeljko
On Monday 13 of June 2011 00:57:21 Erwin van den Bosch wrote:
 Op 13-06-11 00:32, Bart schreef:
  Please define does not work and looks weird (attach screenshot
  perhaps).
 
 Can't you reproduce it?
 
 #DEFINE Does_not_work = Does not work at all. No grid lines. No header.
 Nothing.
 
 I can attach a screenshot but if you can't reproduce it a screenshot
 will not help too. Have you test it?
 It happens on Linux with QT.
 
  Same problem exist with trunk?
 
 I don't know. I'm on the stable branch.

Just dropped an TDBGrid onto form and it looks ok (trunk lazarus).

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TDBGrid broken in svn fixes_0_9_30

2011-06-13 Thread zeljko
On Monday 13 of June 2011 10:02:52 Erwin van den Bosch wrote:
 Op 13-06-11 08:46, Erwin van den Bosch schreef:
  Op 13-6-2011 8:06, zeljko schreef:
  Same problem exist with trunk?
  
  I don't know. I'm on the stable branch.
  
  Just dropped an TDBGrid onto form and it looks ok (trunk lazarus).
  
  Zeljko, have you tested the fixes branch? I'm on the fixes branch.
  I will test the trunk tree today. (First some coffee)
 
 Just checked it on the trunk tree. And it looks good. No problem.
 Just for sure I checked out a fresh clean fixes branch and there the
 problem was again.
 Looks like a painting problem in TDBGrid. Maybe something went wrong
 with an svnmerge
 on the branch fixes_0_9_30?

Don't know, no time to test fixes_0_9_30 atm ...

z.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TDBGrid broken in svn fixes_0_9_30

2011-06-13 Thread zeljko
On Monday 13 of June 2011 13:47:14 Erwin van den Bosch wrote:
 Op 13-06-11 12:40, zeljko schreef:
  Don't know, no time to test fixes_0_9_30 atm ...
  
  z.
 
 I compared the file lcl/interfaces/qt/qtwinapi.inc in fixes_0_9_30 with
 the one in trunk.
 
 Find a few lines of code that wasn't in the trunk tree.
 
 Fixed the bug in the attached patch.

Thanks for searching, r30608 should be merged in that case.I'll inform Juha 
about this.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-11 Thread zeljko
On Friday 10 of June 2011 10:22:34 Max Vlasov wrote:

 Looks like it's linux-only patch introduced at around 2004
   http://sourceware.org/ml/libc-hacker/2004-09/msg00083.html
 so was not a good idea to update rtl\unix\dl.pp :)

But would be ok to add it to documentation of dynlibs, that someone can use 
that flag under linux if have similar problem. I had same problem with sqlite3 
and double installation of it under fedora 1.system one 2.xulrunner one, 
always had crashes if firefox is started before I use my app. With that flag 
it's fixed.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TGraphicControl changes

2011-06-08 Thread zeljko
Hi all,
I just changed behaviour of TGraphicControl.Update (overrided TControl.Update) 
in r31132 so it does not request paint over whole parent handle, but just 
invalidates clientrect of TGraphicControl.
If someone rely on TGraphicControl.Update and expect that it'll request paint 
over complete parent handle , than such code should be changed.
TGraphicControl.Update calls invalidateRect() only for TGraphicControl client 
rect.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Is Strip Symbols from Executable broken?

2011-05-24 Thread zeljko
On Tuesday 24 of May 2011 22:29:07 Joost van der Sluis wrote:
 On Tue, 2011-05-24 at 15:23 -0400, Prado, Renato (R.P.) wrote:
  I ran some tests and the Strip Symbols from Executable option in the
  IDE does not seem to have any effect (Win32, 0.9.30), is this option
  broken in the current release?
 
 I'm not sure if I remember correctly, but when you specify that you want
 to add debug-information to your application, the strip option is
 ignored, because we got too much bug reports 'debugging does not work'.

And that's ok IMO. Maybe we should add an warning/information dialog when both 
options are on.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] StringGrid performance problems

2011-05-21 Thread zeljko
On Friday 20 of May 2011 19:19:30 Julio César Gázquez wrote:
 El 20/05/11 11:24, Alexsander Rosa escribió:
  I've noticed that (native Listview is slow in Windows) the hard way: I
  was proud about how fast my app were on Linux then ran it on Windows
  and the hourglass became the leading actor. Any suggestions for
  replacement of Listview?
 
 Native means the win32 native widget? Did you try recompiling with Qt4?
 AFAIK Qt use their own widgets, so maybe you could get better performance.

Qt's QListWidget/QTreeWidget (TListView) performance isn't so nice. With few 
thousand items it becomes slow.
Better use TVirtualStringTree , it's ultra fast even when you allocate 100 
items.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Qt5 plans available

2011-05-12 Thread zeljko
On Thursday 12 of May 2011 12:14:50 michael.vancann...@wisa.be wrote:
 On Thu, 12 May 2011, Michael Schnell wrote:
  On 05/12/2011 11:11 AM, michael.vancann...@wisa.be wrote:
  Hence the conclusion: a web application is probably the best way to go
  when developing business apps for the mobile.
  
  Do you mean: Using Android's  browser as a GUI and have it connect to a
  server done with FPC and running as a daemon in the background and
  accessed as http://127.0.0.1:12345 ?
  
  This is quite similar (but less powerful and maybe easier to do for
  simple stuff) than the ifi way.
 
 I would not do it locally.
 
 In my line of work, there *always* is a central database.
 
 So:
 No access to the database (i.e. internet access) - no functionality.
 
 In such a scenario, a web app makes perfect sense.
 And it solves the which device to support question as well...

IMO, better solution in such scenario would be to use web server than direct 
SQL database access, since link can be broken at anytime, and app will hang, 
but if it is web based product, web browser should say that web page is 
currently not available.
We are currently making one Android app with eclipse , which connects to pgsql 
via odbc and all I can say:
+ UI is pretty nice
- ODBC (jdbc) is bad way to connect to database, especially where many users 
are connected, since every connection takes an idle in transaction, so  100 
users on an database takes  100 transactions, even if they are idle. This is 
real pita.
- When link is down, app hangs  yes you must wait until kernel timeouts or 
kill your app.
- Deployment.

Web application:
+ It's web application :)

So, I think that such concept of bussiness application on phone isn't good ... 
we are already moving to web concept.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LCL-Qt with horizontal tabs or left/right

2011-05-10 Thread zeljko
On Tuesday 10 of May 2011 12:51:19 Graeme Geldenhuys wrote:
 Hi,
 
 Even before the option was available in the IDE, I have hacked my
 Lazarus IDE to have editor tabs on the right of my editor window instead
 of the default top.
 
 The really nice thing is that in GTK2, the text is in a normal
 horizontal orientation. NOT rotated on it's side (like Windows) - thus
 reducing the neck pain of trying to read vertical text, and horizontal
 text is so much easier to read too.
 
 Is it possible for LCL-Qt to have horizontal text too, like LCL-GTK2? At
 least just for the IDE?  After compiling my IDE for LCL-Qt I was forced

No, Qt paints tabs and text position depends on theme (if some theme have 
horizontal text in right aligned tabs).
However, there's possibility for you: look at qtwidgets.pas for 
QT_ENABLE_LCL_PAINT_TABS define and extend painting for your needs (I've made 
it to test how it looks if we paint tabs by ourselves).
If you create patch under this define, I can apply it - no problem.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Qt5 plans available

2011-05-10 Thread zeljko
On Tuesday 10 of May 2011 12:41:02 Graeme Geldenhuys wrote:
 It seems the whole world is going mobile computing nuts!!
 
 http://www.osnews.com/story/24713/Nokia_Announces_Qt_5_Plans
 
 
 My thoughts on pushing those mobile computing UI interfaces into the
 desktop application space is rather negative. eg: Unity in Ubuntu, Gnome
 Shell in Gnome 3 - clearly all designs from the mobile touch screen
 devices - not so good on the desktop though. Lets hope that Qt 5's
 default graphics engine that requires OpenGL and forces developers to
 use Javascript instead for app development, doesn't affect desktop
 application developers too much. At least there is a mention of the
 QWidget-style API still hanging around for some time - but not there
 main focus any more.
 
 Good news is that at least this time they are going to try and make the
 upgrade from Qt 4 to Qt 5 less painful (remember the move from Qt3 to
 Qt4?). So the Lazarus LCL-Qt developers should be happy with that.

I don't like some things in Qt too, but it's still better then gtk2/3, also 
Qt5 won't kill desktop and QWidget philosophy.
Upgrade from Qt4 to Qt5 won't be a PITA (like with Qt-2/3-Qt4), since there 
won't be huge changes with 2D graphics system (QPainter) and QWidget's.
Only good thing in Qt5 is introducing of QAfterPaintEvent (if they implement 
it ... it was planned by trolltech devels).
Anyway, it will stay opensource so I'm not scared about it's future.

 
 BTW:
 To those Lazarus LCL-Qt developers. Kudos for a job well done! I have
 recently compiled my Lazarus 0.9.30.x IDE with the LCL-Qt interface and
 it works and looks very good so far.

Thanks.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GetProcAddress weird problem

2011-04-21 Thread zeljko
On Thursday 21 of April 2011 13:21:17 Marco van de Voort wrote:
 On Wed, Apr 20, 2011 at 11:20:52AM -0300, Leonardo M. Ram? wrote:
  Hi, I'm facing a weird issue with GetProcAddress in a Lazarus program
  
  I have a method that calls GetProcAddress to get a pointer to a function
  in a shared library. The method can be called many times without
  problem.
 
 Multiple  dyn loading of the same lib through loadlibrary maybe?

Or library already loaded, but from another app and not from LD_LIBRARY_PATH.
I had same problem with xulrunner and sqlite.
libsqlite-3 is in /usr/lib and in /usr/lib/xulrunner and with different 
versions (xulrunner one was 3-4 minor versions down). If I started firefox , 
and then app which loads libsqlite - crash.
Removing libsqlite-3 from /usr/lib/xulrunner and adding symlink to 
/usr/lib/libsqlite-3 fixed my problem.
But I'm wondering now is it fpc problem ,since other apps takes 
/usr/lib/libsqlite-3 and works ok (even have test C code which dynamically 
loads libsqlite-3 in same manner as fpc do, but that C example works and fpc 
one not ... don't ask me for this example project...I don't know where it is 
).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] recompile the LCL

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 13:52:27 Bernd wrote:
 Quick question: How does one recompile the LCL nowadays (without
 recompiling the entire IDE)? It used to be an option in the Build
 Lazarus dialog but this dialog has changed a lot lately and the only 2
 options left are IDE  and Examples. Did I mess up my config
 somehow or is there a different method now? There is now a dropdown
 with Profiles (whatever that may mean) and it contains LCL but when
 I hit the build button then nothing happens at all, not even an error
 message.

Open LCL package and compile (or clean compile) ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 15:53:30 Bernd wrote:
 2011/4/20 Bernd prof7...@googlemail.com:
  the attached demo
 
 Sorry, forgot to attach it. its less than 2kb, so I think its ok to
 attach it here

Lazarus 0.9.31 r30393M FPC 2.4.3 i386-linux-qt, but both (qt and gtk2) works 
fine with this demo (edit.Text is updated frequently without any mouse/kbd 
interaction).

zeljko




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 16:05:47 Henry Vermaak wrote:
 On 20/04/11 14:51, Bernd wrote:
  Are there any other ways under GTK2 (or xorg?) to send a message to a
  window that simulates user interaction? I need to find some kind of
  workaround to wake up the GUI.
 
 As I've noted before, PostMessage does wake up the main thread (when you
 compile your project with -dusecthreads).  And I use QueueAsyncCall with
 a manual wakeup, which works well for me on win32 and gtk2.  I use svn
 head, by the way.

I've already answered about that demo in mailing list, but I don't see my 
answer here, so once again:
Lazarus 30393 gtk,gtk2 and qt works fine. Edit.Text is updated in Worker 
thread without any interaction of mouse or kbd.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GetProcAddress weird problem

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 16:20:52 Leonardo M. Ramé wrote:
 Hi, I'm facing a weird issue with GetProcAddress in a Lazarus program
 
 I have a method that calls GetProcAddress to get a pointer to a function
 in a shared library. The method can be called many times without
 problem.
 
 If I try to create another method, with exactly the same content of the
 former, when the program executes the line with GetProcAddress, an
 SIGSEGV is raised. If I debug this line, I get a different pointer
 address than in the original method.
 
 Does anyone knows why this happens?.

My crystal ball is off atm, so please write at least piece of code so we can 
try to understand what could be your problem.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 16:31:59 Henry Vermaak wrote:
 On 20/04/11 15:26, Michael Schnell wrote:
  On 04/20/2011 04:05 PM, Henry Vermaak wrote:
  PostMessage does wake up the main thread (when you compile your
  project with -dusecthreads). And I use QueueAsyncCall with a manual
  wakeup, which works well for me on win32 and gtk2. I use svn head, by
  the way.
  
  You are not _supposed_ to do that. QueuAsyncCall _should_ work for
  itself (instantly and without doing polling ). So this is a work around
  and not a reliable consideration.
 
 Huh, what polling?  I know this is not ideal, that's why there is a bug
 report.  All QueueAsyncCall needs to do is to wake up the main thread
 after it has queued the function.  There is nothing broken in the
 infrastructure as you keep saying, or perhaps you'd like to point us to
 some specific code you find problematic to explain your statements?


Have you tried to add WakeUpMainThread in QueueAsyncCall() and test it with 
all ws ? What happens ?

zeljko 



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] CodeTools facility for documenting source code?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 16:47:40 William Oliveira Ferreira wrote:
 Borland/CodeGear/Embardcadero Developer Studio cames with a tab that
 stores last saves on currentsaves. It all BDS creates a directory
 called __history that stores these files. Should be a good idea if
 lazarus do something like?

Then you can have TB's of such history files in few months ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 17:29:24 Michael Schnell wrote:
 On 04/20/2011 05:04 PM, Henry Vermaak wrote:
  On 20/04/11 16:03, Michael Schnell wrote:
  On 04/20/2011 04:50 PM, Henry Vermaak wrote:
  Hehe, we're saying the same thing, but talking past each other. I
  commented exactly this (with a patch) on the bug tracker, it seems to
  work for gtk2, can you test with qt?
  
  Is this really this simple ?
  
  Why not?  The workaround is only one line, after all.
  
  Please test your synchronise bug report again, I can't reproduce it.
  
  Henry
 
 Unfortunately LCL does not seem to export WakeUpMainThread() or
 g_main_context_wakeup(), so I can't test it. :-( .

What do you mean by that ? WakeUpMainThread() IS THERE and it works ok, just 
tested Henry's patch  gtk,gtk2,qt (linux), win32 (under wine) - example 
from http://bugs.freepascal.org/view.php?id=13120 works perfect.
Now rebuilding laz with that patch to see if something bad can happen with 
that patch.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 17:34:44 Henry Vermaak wrote:
 On 20/04/11 16:29, Michael Schnell wrote:
  On 04/20/2011 05:04 PM, Henry Vermaak wrote:
  On 20/04/11 16:03, Michael Schnell wrote:
  On 04/20/2011 04:50 PM, Henry Vermaak wrote:
  Hehe, we're saying the same thing, but talking past each other. I
  commented exactly this (with a patch) on the bug tracker, it seems to
  work for gtk2, can you test with qt?
  
  Is this really this simple ?
  
  Why not? The workaround is only one line, after all.
  
  Please test your synchronise bug report again, I can't reproduce it.
  
  Henry
  
  Unfortunately LCL does not seem to export WakeUpMainThread() or
  g_main_context_wakeup(), so I can't test it. :-( .
 
 Your synchronise test program works without any patches.
 
 WakeMainThread is in unit classes and g_main_context_wakeup is in glib2.

Story is finished. Your patch is applied and issue is marked as resolved :)
btw. Thanks for patch.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 18:05:24 Luca Olivetti wrote:
 Al 20/04/2011 15:51, En/na Bernd ha escrit:
  What exactly does the TTimer do when it fires its event? The TTimer
  seems to have the power to wake up the GUI, maybe I can do the same
  manually?
 
 I don't know, but I've been using for a long time a 10ms timer that just
 does CheckSynchronize:
 under windows when you're dragging a windows it seems that the main loop
 doesn't fire, so Synchronize calls are blocked, with the timer there's
 no such problem.

Please test with lazarus r30403 if it works without timer. Now, 
QueueAsyncCall() calls WakeMainThread

 
 Bye

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 18:21:11 Henry Vermaak wrote:
 On 20/04/11 17:15, Bernd wrote:
  2011/4/20 Henry Vermaakhenry.verm...@gmail.com:
  As I've noted before, PostMessage does wake up the main thread
  
  Confirmed. It does wakeup my GUI, no need for the empty timer anymore.
  
  Now I will svn up Lazarus after the latest patch and try my
  synchronize demo again.
 
 The patch doesn't touch synchronize.  It worked o.k. for me before the
 patch.  Maybe it's an fpc issue?  I use 2.5.1 (about a month old).

I'm using 2.4.3 and Synchronize() works ok.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-20 Thread zeljko
On Wednesday 20 of April 2011 19:52:00 Bernd wrote:
 USE_GTK_MAIN_OLD_ITERATION

well, that's old way of using gtk main loop iterations. if you have old gtk2 
installation probably you can test with that define (but in that case 
PostMessage() won't work in multithreaded app).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] To all users of TBarChart

2011-04-19 Thread zeljko
Hi all,
1. As of Lazarus svn r 30386 unit Chart is renamed to BarChart.
2. BarChart unit will be marked as deprecated soon and removed from lcl 
package.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus GTK project dependencies

2011-04-14 Thread zeljko
On Thursday 14 of April 2011 09:56:47 Mattias Gaertner wrote:

 
 It is quite stable. It works well under KDE, not so well under Gnome.
 But this is not the fault of the LCL qt interface, but of QT.

What's not so well under Gnome ? I guess that you have problem with metacity 
behaviour (or maybe with compiz, but gtk2 also have big trouble with it). Here 
it works ok under KDE, Xfce, WindowMaker,IceWM.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus GTK project dependencies

2011-04-14 Thread zeljko
On Thursday 14 of April 2011 11:36:10 Mattias Gaertner wrote:

 The libqt-mt library is only one lib of a qt program.

no, libqt-mt is complete qt-3.XXX library. in Qt 4 they splitted core,gui etc.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to minimize/restore lazarus (Ubuntu)?

2011-04-12 Thread zeljko
On Sunday 10 of April 2011 21:08:30 Bo Berglund wrote:
 Maybe there is a setting somewhere to handle this? If so please tell
 me where it is.

Tools-Options-Environment-Window- [x] Show single button in TaskBar

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Component visibility at design time

2011-04-10 Thread zeljko
On Sunday 10 of April 2011 12:11:44 patspiper wrote:
 I modified TEditBtn and made the button optional in order to make that
 component more generic. However, the button stays visible during design
 time no matter what its visible setting is.
 
 Isn't it possible to hide a (sub) component in design time?

TControlStyle
csNoDesignVisible

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New behavior - RadioGroup

2011-04-06 Thread zeljko
On Tuesday 05 of April 2011 22:16:29 t.wieckow...@gmail.com wrote:
 Hi,
 since rev. 30161, my apps goes crazy.

Where and why your apps goes crazy because of that ?

 When I'm setting itemindex for Radiogroup in OnCreateForm event then
 OnClick for that control is fired.

Actually, I've changed that to be Delphi compat.

 Such behavior will be from now on ?

Yes, see  http://bugs.freepascal.org/view.php?id=15989

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] trouble with Radiogroup

2011-04-06 Thread zeljko
On Wednesday 06 of April 2011 13:08:24 hector fiandor wrote:
 hello:
 
 i have a medical app. with TDbf were it is used a lot of RadioGroups and
 CheckBox. When call Insert for a new patient, all this RadioGroups and
 CheckBox appears Cheched as default, but it is preferred to appear as
 unchecked and lets the doctors to check or not when filling the form.
 
 if this is possible, i will appreciate any help to do it.

How can anybody help you without code ? If you think it's lazarus problem then 
please open an issue about it and attach project example which triggers your 
problem.

zeljko

 
 Thanks in advance,
 
 Ing. Héctor F. Fiandor Rosario
 hfian...@infomed.sld.cu
 
 
 --
 
 Este mensaje le ha llegado mediante el servicio de correo electronico que
 ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
 Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas
 
 Infomed: http://www.sld.cu/
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] MDI implementation

2011-04-03 Thread zeljko

Quoting Daniel Franzini daniel.franz...@gmail.com:


Hi there.

I'm trying to write a MDI application in Lazarus (Win32/Vista, Lazarus
0.9.31).


MDI isn't yet supported on lazarus, but will be available soon.
You can see progres at my todo list.
http://wiki.lazarus.freepascal.org/User:Zeljan
There are also some mdi screenshoots.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New color scheme: Solarized

2011-04-01 Thread zeljko
On Friday 01 of April 2011 10:52:39 Alexander Klenin wrote:
 Added to http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings

No screenshoot ? ;)

 BTW, I think a setting to control the colors of other windows based on
 SynEdit colors would be appropriate -- right now Lazarus looks weird with
 non-default color schemas, especially those with dark background.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New color scheme: Solarized

2011-04-01 Thread zeljko
On Friday 01 of April 2011 16:03:44 Graeme Geldenhuys wrote:
 On 01/04/2011 10:52, Alexander Klenin wrote:
  right now Lazarus looks weird with
  non-default color schemas, especially those with dark background.
 
 And I think any editor look weird with light / white backgrounds. :-)

There is always some Darth Vader fun :)

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Detecting desktop area size

2011-03-31 Thread zeljko
On Thursday 31 of March 2011 01:06:48 Bart wrote:
 Hi,
 
 Is there any (more or less) reliable way to detect the size of the
 desktop (that is: on the active screen, the space a form can occupy so
 that it will take in account the presence of a taskbar etc.)
 
 I need something like this to keep a form that I create at runtime in
 view on the desktop (it's initial size and widht/height) depend on the
 contents it must display).
 
 I know how to do it on Windows.
 Linux (GTK2) and MAC would be nice.

GetMonitorInfo(), GetSystemMetrics() SM_CXSCREEN, 
SM_CYSCREEN,SM_CXVIRTUALSCREEN,SM_CYVIRTUALSCREEN doesn't help ?

 
 Bart
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread zeljko
On Thursday 24 of March 2011 09:04:25 Paul Ishenin wrote:
 24.03.2011 13:55, patspiper wrote:
  updated to r30007 and while rebuilding Lazarus:Compiling resource
  ../units/i386-linux/lazarus.or
  /home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while
  compiling resources
  
  Lazarus 0.9.31 r29900M FPC 2.4.2 i386-linux-gtk 2
 
 I did not add/remove/change any resource.
 
 Please build it from console using make bigideclean bigide. Maybe the
 error when you build from console will be explained better.

Lazarus 0.9.31 r30007M FPC 2.4.3 i386-linux-gtk 2 builds fine, also qt 
version.
zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread zeljko
On Thursday 24 of March 2011 10:58:48 patspiper wrote:

 Furthermore, Lazarus is now able to load cursors.

Are you sure that it was impossible before ?
zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] the new menu source

2011-03-17 Thread zeljko
On Thursday 17 of March 2011 08:02:16 Graeme Geldenhuys wrote:
 Op 2011-03-16 22:29, Žilvinas Ledas het geskryf:
  And another observation - wouldn't it be better to have simpler shortcut
  for Rename identifier? e. g. MonoDevelop uses F2 (as Windows uses it
  to rename a file).
 
 Brilliant idea! I use shortcuts extensively, but for some reason could
 never remember the default one for rename identifier. So I used
 Shift+F6 - the same shortcut as in Total Commander (also a tool I use
 often, even under Linux) for renaming files.
 
 F2 is even better. :)
 
 Now only if I can find the time to complete my IDE add-on that allows
 you to print out your keyboard shortcuts as a reference card.

Yes, that would be nice thing to have.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unable to rewrite .ini file which exists... error unable to create .ini file. (need to rewrite it).

2011-03-15 Thread zeljko
On Tuesday 15 of March 2011 05:25:41 Peter Williams wrote:
 Hi All,
 I use this procedure to save an inifile using the standard IniFiles unit.
 The problem I have is that when an .ini file already exists I cannot
 overwrite it. I need the TextFiles equivalent of Rewrite() for Inifiles.
 This line:  ConfigIni :=
 TIniFile.Create(ChangeFileExt(Application.ExeName, '.ini'));... when the
 ini file exists fails with an error message of 'unable to create
 appname.ini'. This is because it cannot create an ini file which already
 exists. How then do I rewrite the .ini file?

I've seen such problem with fpc-2.4.3 under win7 64bit only.
My workaround is to use TMemIniFile instead of TIniFile. So try that first.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus on Suse 11.4

2011-03-14 Thread zeljko
On Mon, 14 Mar 2011 15:09:42 +0100, Michael Schnell 
mschn...@lumino.de wrote:

I switched from Open Suse 11.1 to open Suse 11.4.

I reinstalled fpc and Lazarus from the svn.

Now I recompiled my EventTest application and found some funny stuff.

1) I can't compile it with fpGZUI and GTK (1) Widget Type any more.

I was able (auto-) compile the appropriate packages before the switch


Juha already mentioned why it is so.



2) When compiling it with the gkt2 (default) Widget Type I find that
the CheckBox buttons are bigger than I was used to.

What forces this different look ?


Gtk2 theme can do that.


3) with GTK2 TThread.Synchronize and PostMessage now seem to work 
fine.


Did anybody fix this bug recently ?


Yes, I've fixed that few months ago.



4) QueAsyncCall still does not work. (A call is only issued when some
GUI event happens.)


Don't know anything about this.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Bug Handling Events on Form using Last Lazarus 0.9.31 + FPC 2.5.1 SVN Snapshot (Win32)

2011-03-11 Thread zeljko
On Friday 11 of March 2011 13:56:16 Fabio Souza wrote:
 Handling Events on Form show error below:
 
 The Component editor of class TDefaultComponentEditor has created the
 error: Unable to create new method. Please fix the error show in the
 message window, wich is normally below the source editor.
 
 I just created a new application and did a double click to call FormCreate
 method.
 I´m using Windows 7 32 Bits.

I've run into such errors today too (qt linux r 29795)

zeljko


 
 
 Thanks,
 
 Fabio Souza
 
 
 
 
 
 
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] MDI Child form goes behind MDI main form

2011-03-10 Thread zeljko
On Thursday 10 of March 2011 13:34:12 Eduard Filipas wrote:
 huhwhen can we aproximately aspect solution?

First code is almost ready to commit with:
1.Native MDI support for: win32 and qt (linux,win32,mac)
2.LCL emulator for: gtk, gtk2 and carbon (only gtk2 works atm).

So I need still some spare time to test gtk and carbon, and introduce first 
MDI commits ... I guess in next few weeks it will be ready.
Note that MDI support will be in alpha/beta stage until raised bugs are fixed.
Also do not expect 1/1 MDI support inside MDI emulator (gtk, gtk2, carbon).
Win32 and Qt have full support (like you have in Delphi).

zeljko

 
 S, Paul Ishenin piše:
  10.03.2011 19:04, Eduard Filipas wrote:
  hi
  enviroment: win7 64x, lazarus 32bit version 0.9.31; date: 2011-02-05;
  SVN:29379
  
  problem arises when having form style MDIform and others mdiChild
  
  This is not implemented in Lazarus. Only qt has some mdi support at
  the moment.
  
  Best regards,
  Paul Ishenin
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Tagging 0.9.30

2011-02-22 Thread zeljko
On Tuesday 22 of February 2011 13:51:26 Vincent Snijders wrote:
 Hi,
 
 The last call for testing on the Lazarus list didn't reveal any
 important new issues, I propose to tag the current fixes_0_9_30 branch
 without any further additions for the 0.9.30 release tonight or
 tomorrow. Any objections?

No.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Extensive Debug Info from GTK2 bindings

2011-02-21 Thread zeljko
On Monday 21 of February 2011 10:39:33 Juha Manninen wrote:
 Hi
 
 I start Lazarus devel version always from cmd line on Linux.
 When using GTK2 bindings, there is a huge amount of debug lines scrolling
 in the console window all the time.
 How to shut them down?

Disable -dDebug ? Are they from lcl or from gtk2 libs ?

z.

 
 Juha
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE Font issue

2011-02-21 Thread zeljko
On Monday 21 of February 2011 16:08:34 Michael Van Canneyt wrote:
 Hi,
 
 I attached a small image of the SQL editor of TSQLQuery.
 Lazarus version of today.
 
 The code in sqlstringspropertyeditordlg.pas (components/sqldb):
 
 constructor TSQLStringsPropertyEditorDlg.Create(AOwner: TComponent);
 begin
inherited Create(AOwner);
SourceEditorManagerIntf.GetEditorControlSettings(SQLEditor);
SourceEditorManagerIntf.GetHighlighterSettings(SQLHighlighter);
EditorTabSheet.Caption := SSQLTabCaption;
ResultTabSheet.Caption := SResultTabCaption;
 end;
 
 Suggests that the font in the SQL property editor should be the
 same as the source editor font. From the attached image, it is
 clear that they are different.
 (Probably it is the same typeface, but the font in the SQL editor
 is much smaller as in the source editor)
 
 I assume this is a bug ? How can I fix this ?

hm...looks like mismatch between Font.Size and Font.Height 

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Extensive Debug Info from GTK2 bindings

2011-02-21 Thread zeljko
On Monday 21 of February 2011 18:10:39 Juha Manninen wrote:
 zeljko kirjoitti maanantai 21 helmikuu 2011 10:14:40:
  Disable -dDebug ? Are they from lcl or from gtk2 libs ?
 
 Problem solved. I had assertion enabled (-Sa) and forgot it.
 
 IMO the assertions should be made usable in Lazarus code base.
 They are useful and serve a different purpose than exceptions.
 Currently they can't be used with QT bindings at all,

Because they're not implemented in Qt bindings.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK3 is out

2011-02-15 Thread zeljko

On Tue, 15 Feb 2011 10:35:28 +0200, ik ido...@gmail.com wrote:

Hi List,

We still have not get rid of GTK1, and now GTK3 is out.
There is a guide [1] of how to move from GTK2 into GTK3.
1.Gtk is not officially supported by laz devels anymore (0.9.28.2 was 
last stable gtk support)

2.We will try to NOT broken gtk support (it still works in 0.9.31)
3.When time for gtk3 in lcl comes, it will be written from stratch - 
pure ground zero implementation.


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK3 is out

2011-02-15 Thread zeljko

Quoting theo x...@theo.ch:

I was trying to build this version from sources today, but gave up  
at the requirement of Xinput2.

This would probably need a complete X11 and whatnot upgrade.


or install fedora rawhide on some virtual machine :)

zeljko



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK3 is out

2011-02-15 Thread zeljko

Quoting theo x...@theo.ch:

I was trying to build this version from sources today, but gave up  
at the requirement of Xinput2.

This would probably need a complete X11 and whatnot upgrade.


or install fedora rawhide on some virtual machine :)

zeljko



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modal forms: block parent form or application

2011-01-29 Thread zeljko
On Saturday 29 of January 2011 09:29:02 cobines wrote:
 Hello,
 
 I have two forms Form1 and Form2. Form1 is MainForm with
 ShowInTaskbar=stDefault and Form2 has ShowInTaskbar=True, so they both
 have taskbar buttons, I treat them as separate windows. I show a modal
 form from Form2 which blocks the whole application. Is it possible to
 have it block only Form2, so I can still activate and work in Form1?

There are 2 kinds of modality (at least under qt, but can be applied to any 
X11 app ... don't know for win32 or mac how to do that).
1.Window modal
2.App modal
So, with proper implementation it's possible to make
1.Form modal for 1 form eg. parent form
2.Form modal for application (usual behaviour).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread zeljko
On Wednesday 26 of January 2011 11:22:47 Luca Olivetti wrote:
 Hello,
 I'm trying to debug a strange crash in an application (it's strange
 because the exception dialog appears and then disappears almost
 instantly without clicking on any button, so the customer cannot tell me
 the reason of the exception).
 
 My application (as almost any application I write) is based on the
 assumption that methods invoked by a timer and methods invoked by a
 thread with synchronize will never fire at once (i.e. they will be
 serialized by the main loop).
 
 Can I be 100% sure of that?
 I'm currently using an old version of lazarus (svn 22953 dated
 2009-12-04) with fpc 2.2.4.

widgetset ? 

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread zeljko
On Saturday 22 of January 2011 16:04:34 Michael Van Canneyt wrote:
 On Sat, 22 Jan 2011, Hans-Peter Diettrich wrote:
  In fpGUI Graeme implemented an interface for inter-process dragging. It
  would be nice to have a similar interace in the LCL, that extends the
  current intra-process dragging.
 
 While it is correct that Graeme did this, I still have not seen in action.
 i.e. I have used the application-specific DnD, but I wouldn't know how to
 handle the intra-app DnD.
 
  Why that?
  - A more general approach could solve the known problem with docking
  forms, by including dragging by the window manager.
  - Drag-drop of files or other objects as an alternative to an OpenDialog.
  
  - Embedding of shared objects (COM, CORBA...)
  
  What's required?
  
  - A generalization of the DragManager, so that visual (DragImage...) and
  application feedback (events) are not restricted to application-internal
  drag sources and implementations. This is not hard to do, all that can
  be handled in the already existing or added specialized DragObjects,
  instead of the (superfluous) DragPerformers.
  
  - A DragObject should include a SourceType property, so that the targets
  can handle more source types, e.g. filenames or COM/CORBA objects, in
  addition to controls. Mime types (strings or enum) can be used for that
  purpose. Further information for inter-process dragging can be added
  (source PID, HWND...), so that an application can distinguish internal
  references (to controls...) from references to objects in other
  processes.
  
  - The event handlers must have access to the extended source information.
  This is also no problem, since only one drag operation can be active at
  any time, so that a global DragObject reference can be used everywhere.
  A predefined DragObject can be used whenever an external object is being
  dragged over an application form.
  
  - More drag and drop types should be defined, in addition to drop and
  dock, e.g. open files, link or embed. Eventually specialized drag
  targets must register themselves, for e.g. accepting files or embedding
  objects, in addition do DockSite registration.
 
 I'm all for it.
 Although I'm not sure that this can be implemented in a cross-platform way.
 
 On Windows, the intra-app drag/drop is handled using OLE/DDE.
 On Linux, there is no such thing, and I think it depends on the used
 desktop software (KDE vs Gnome). I don't know how it is done in Mac.
 
 But your suggestion is at least a step in the right direction.
 
 I would implement support in 2 objects:
 TFileDragObject (external files, as dropped by file managers)
 TExternalDragObject (external app DnD)
 Both are created whenever an external DnD is found.

Files dropping is already implemented, and I'm pretty sure that Qt supports 
DnD across different apps on all platforms. Haven't studied gtk2 in this case, 
but your suggestion looks good.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread zeljko
On Saturday 22 of January 2011 17:27:43 Michael Van Canneyt wrote:
 On Sat, 22 Jan 2011, zeljko wrote:
  I'm all for it.
  Although I'm not sure that this can be implemented in a cross-platform
  way.
  
  On Windows, the intra-app drag/drop is handled using OLE/DDE.
  On Linux, there is no such thing, and I think it depends on the used
  desktop software (KDE vs Gnome). I don't know how it is done in Mac.
  
  But your suggestion is at least a step in the right direction.
  
  I would implement support in 2 objects:
  TFileDragObject (external files, as dropped by file managers)
  TExternalDragObject (external app DnD)
  Both are created whenever an external DnD is found.
  
  Files dropping is already implemented, and I'm pretty sure that Qt
  supports DnD across different apps on all platforms. Haven't studied
  gtk2 in this case, but your suggestion looks good.
 
 I know about the File DND, but as far as I know, it's only on form level,
 it could be extended to any control (TFileNameEdit jumps to mind).

Why not, I'm already missing some things like dragging/dropping selected text 
eg. from/to openoffice doc.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] anchors on centos

2011-01-21 Thread zeljko
On Friday 21 of January 2011 14:03:43 Andrea Mauri wrote:
 Il 21/01/2011 12:55, zeljko ha scritto:
  3.@Andrea , I didn't say that minimum version is 2.12, I just said that
  nearest version I have is 2.12.
 
 yes I understood. I only point that because I saw 2.6 on the wiki.
 anyway thanks for your efforts.

@Andrea
Both issues are fixed ,you can test.
It is an gtk2  2.12 bug ... there's more non-lazarus ppl which have similar 
problems 
with it.
eg:
http://www.mail-archive.com/xfce4-commits@xfce.org/msg02339.html

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Event handling example project

2011-01-19 Thread zeljko
On Wednesday 19 of January 2011 17:20:08 Michael Schnell wrote:
 I did a small example project (in fact an enhancement of the
 example/messages/uasynccall.pas example in the svn).
 
 Same lets you select to test
 
   - TThread.Synchronize
   - TThread.Queue
   - PostMessage
   - PostThreadMessage
   - SendMessage
   - TForm.Dispatch
   - Application.QueuAsyncCall without parametersand
   - Application.QueuAsyncCall with parameters
 
  From
   - A thread
   - A timer event and
   - A button event
 
 If anybody might be inclined to put this project into the examples
 directory in the svn, I'd be happy to send the code.

And where is that example project ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] anchors on centos

2011-01-18 Thread zeljko
On Tuesday 18 of January 2011 16:31:32 Mattias Gaertner wrote:
 On Tue, 18 Jan 2011 16:15:42 +0100
 
 Andrea Mauri andrea.mauri...@gmail.com wrote:
  Il 18/01/2011 15:43, Mattias Gaertner ha scritto:
   Maybe you have a library mismatch. Can you try to build on the target
   machine?
  
  What do you mean?
  What I have to build?
  Lazarus? The libraries?
  I installed fpc 2.4.2 from rpm then downlaoded lazarus from svn and make
  clean all
 
 gdb is warning that some addresses mismatch. I never saw these errors,
 but googling gave some causes.
 
  after that I get more or less the same bt as before and lazarus crashes
  (it does not crash if run lazarus outside gdb):
  
  [giacca@centos lazarus_svn]$ gdb lazarus
  GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)
  Copyright (C) 2009 Free Software Foundation, Inc.
 
 [...]
 
  (gdb) break fpc_raiseexception
  Breakpoint 1 at 0x806cf06
  (gdb) run
  Starting program: /home/giacca/lazarus_svn/lazarus
  warning: .dynamic section for /usr/lib/libcairo.so.2 is not at the
  expected address
  warning: difference appears to be caused by prelink, adjusting
  expectations
 
 I never saw that gdb warning, but it may be the cause of your
 strange crashes.
 
 [...]
 
  Program received signal SIGSEGV, Segmentation fault.
  0x00b55e49 in gtk_object_get_data () from /usr/lib/libgtk-x11-2.0.so.0
  (gdb) bt
  #0  0x00b55e49 in gtk_object_get_data () from
  /usr/lib/libgtk-x11-2.0.so.0 #1  0x08285990 in GETMAINWIDGET
  (WIDGET=0xff3b3b3b) at gtk2proc.inc:3591 #2  0x0828638d in GETWIDGETINFO
  (AWIDGET=0xff3b3b3b, ACREATE=false)
  
   at gtk2proc.inc:3939
  
  #3  0x08286363 in GETWIDGETINFO (AWIDGET=0xff3b3b3b) at gtk2proc.inc:3929
  #4  0x082fc723 in GTK2WSDELAYEDWINDOWSTATECHANGE (DATA=0x94a050)
  
   at gtk2wsforms.pp:139
  
  #5  0x006d6451 in ?? () from /lib/libglib-2.0.so.0
  #6  0x006d81a2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
  #7  0x006db196 in ?? () from /lib/libglib-2.0.so.0
  #8  0x006db6ee in g_main_context_iteration () from /lib/libglib-2.0.so.0
  #9  0x081fec75 in TGTK2WIDGETSET__APPPROCESSMESSAGES (
  
   this=error reading variable) at gtk2widgetset.inc:2395
  
  #10 0x0809e539 in TAPPLICATION__PROCESSMESSAGES (this=error reading
  variable)
  
   at ./include/application.inc:351
  
  #11 0x082fc976 in GTK2FORMEVENT (WIDGET=0x8e389f8, EVENT=0x8e1c2e0,
  
   DATA=0x22e0990) at gtk2wsforms.pp:224
  
  #12 0x00b36130 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
  #13 0x00779f81 in g_closure_invoke () from /lib/libgobject-2.0.so.0
  #14 0x0078adab in ?? () from /lib/libgobject-2.0.so.0
  #15 0x0078c0af in g_signal_emit_valist () from /lib/libgobject-2.0.so.0
  #16 0x0078c4a9 in g_signal_emit () from /lib/libgobject-2.0.so.0
  #17 0x00c4a55a in ?? () from /usr/lib/libgtk-x11-2.0.so.0
  ---Type return to continue, or q return to quit---
  #18 0x00b308c9 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
  #19 0x001422ca in ?? () from /usr/lib/libgdk-x11-2.0.so.0
  #20 0x006d81a2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
  #21 0x006db196 in ?? () from /lib/libglib-2.0.so.0
  #22 0x006db6ee in g_main_context_iteration () from /lib/libglib-2.0.so.0
  #23 0x081fec75 in TGTK2WIDGETSET__APPPROCESSMESSAGES (
  
   this=error reading variable) at gtk2widgetset.inc:2395
  
  #24 0x0809e539 in TAPPLICATION__PROCESSMESSAGES (this=error reading
  variable)
  
   at ./include/application.inc:351
  
  #25 0x082fc976 in GTK2FORMEVENT (WIDGET=0x8fce738, EVENT=0x910f9f8,
  
   DATA=0x1143450) at gtk2wsforms.pp:224
  
  #26 0x00b36130 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
  #27 0x00779f81 in g_closure_invoke () from /lib/libgobject-2.0.so.0
  #28 0x0078adab in ?? () from /lib/libgobject-2.0.so.0
  #29 0x0078c0af in g_signal_emit_valist () from /lib/libgobject-2.0.so.0
  #30 0x0078c4a9 in g_signal_emit () from /lib/libgobject-2.0.so.0
  #31 0x00c4a55a in ?? () from /usr/lib/libgtk-x11-2.0.so.0
  #32 0x00b308c9 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
  #33 0x001422ca in ?? () from /usr/lib/libgdk-x11-2.0.so.0
  #34 0x006d81a2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
  #35 0x006db196 in ?? () from /lib/libglib-2.0.so.0
  #36 0x006db6ee in g_main_context_iteration () from /lib/libglib-2.0.so.0
  #37 0x081fec75 in TGTK2WIDGETSET__APPPROCESSMESSAGES (
  ---Type return to continue, or q return to quit---
  
   this=error reading variable) at gtk2widgetset.inc:2395
  
  #38 0x0809e539 in TAPPLICATION__PROCESSMESSAGES (this=error reading
  variable)
  
   at ./include/application.inc:351
  
  #39 0x082fc976 in GTK2FORMEVENT (WIDGET=0x8fce5e8, EVENT=0x90d4778,
  
   DATA=0x23a3c0) at gtk2wsforms.pp:224
 
 Please create a bug report.
 The code in gtk2wsforms.pp:224 looks strange to me and there is no
 comment why this is needed.
 
 Zeljko?

gtk2WSDelayedWindowStateChange is there to avoid recursions during hide/show 
and it works ok. (just re-tested with gtk2

Re: [Lazarus] What are widgets in lazarus?

2011-01-06 Thread zeljko
On Thursday 06 of January 2011 09:35:25 Mark Morgan Lloyd wrote:
 That's OK in the context of FPC and Lazarus, but Widget and widget
 set are generally-understood terms in the overall-context of unix-like
 operating systems.

That's ok in any context. Widget = Visual control in any gui library (at least 
under unix), so under qt widget = QWidget and descendants, under gtk widget = 
GtkWidget and descendants, under lazarus Widget = TWinControl and descendants.
What's unclear here ? That we have TWinControl instead of TWidget ?

 
 If Bo goes to his system supplier and asks which widget set is installed
 and they ask what he means, he isn't going to get very far by starting
 to talk about TWinControl etc. Instead he needs to say something along
 the lines of what's on there- GTK or Qt, and what version?.

Yes, WidgetSet is not TWinControl (so no need to explain what's TWinControl 
etc) , but gui library which provide native widgets, so correct answer to such 
question could be qt,gtk,win32,carbon,fpgui etc.


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus IDE creates lots of empty config dirs

2011-01-05 Thread zeljko
On Wednesday 05 of January 2011 09:09:51 Vincent Snijders wrote:

 
 No idea, I don't have such files in C:\Documents and
 Settings\vincent\Local Settings\Application Data\lazarus

I have same problem as Graeme under linux.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread zeljko
On Wednesday 05 of January 2011 09:39:52 Graeme Geldenhuys wrote:
 Op 2011-01-05 10:23, Bo Berglund het geskryf:
  What is a widget and how does it relate to my aim of making a
  cross-platform program?
 
 widget = component

I'd say that widget = TWinControl (and others derived from TWinControl of 
course).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Process waiting

2010-12-31 Thread zeljko
On Friday 31 of December 2010 04:12:19 steveg wrote:
 Having a problem with moving from Ubuntu 9.10 to 10.10
 ( Lazarus 0.9.29 r28656 FPC 2.4.2 i386-linux-gtk 2 )
 
 Running my app in 10.xx gives me a 'futex_wait_queue_me' 'waiting
 channel' in system monitor and then just waits.
 
 This same app works fine in 8.xx / 9.xx
 
 A small test app works ok, so possibly to do with my library (.so)
 usage, but I havent been able to track anything specific down as yet.
 
 I have removed all calls to 'Application.ProcessMessages' (as a
 possible cause),
 but still have 'Sleep(xx)' used in various places, though as I said,
 works ok in other versions of OS.
 
 So - my actual question would be :)
 
 Would anybody be able to point me towards something that would bring
 on 'futex_wait_queue_me' status ?

Hard to say anything without example app.Try rebuild gtk2lcl with
 -dUSE_GTK_MAIN_OLD_ITERATION and see if it works.
In case it works please open an issue about it and attach example project.

zeljko



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Taskbar button for modal forms

2010-12-24 Thread zeljko
On Friday 24 December 2010 10:16, Graeme Geldenhuys wrote:
 On 24 December 2010 09:34, zeljko zel...@holobit.net wrote:
  That's not LCL-gtk2, but gtk2 bug.

 You are wrong. I'm running Pan naw (a NNTP news reader), I open up the

No, I'm not. My devel machine have gtk2-2.12, and here it works ok (no need to 
hide modal forms from taskbar), but under gtk2-2.20 something's wrong and 
modal form is shown in taskbar.
Try Pan with eg. ubuntu 10.04 or 10.10

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Taskbar button for modal forms

2010-12-23 Thread zeljko
On Friday 24 December 2010 00:13, Graeme Geldenhuys wrote:
 On 24 December 2010 00:33, cobines cobi...@gmail.com wrote:
  Also, I have noticed that in LCLQT (in Linux) a taskbar button is not
  shown for modal forms even with ShowInTaskbar=stAlways. However in
  LCLGTK2 (in Linux) it is shown for modal forms, unless I set
  ShowInTaskbar=stNever. Is there a bug in LCLGTK2 or LCLQT? It can also
  be WindowManager dependent, I use XFCE.

 Modal forms are supposed to share the same taskbar button as their
 parent form (meaning if you click the taskbar button of the parent
 form, the modal form will be brought to the front and have focus). So
 what you described above, means that LCL-GTK2 has a bug.

That's not LCL-gtk2, but gtk2 bug.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message dialogs in Lazarus

2010-12-19 Thread zeljko
On Sunday 19 December 2010 14:12, Michael Van Canneyt wrote:
 On Sat, 18 Dec 2010, zeljko wrote:
  On Wednesday 15 December 2010 21:14, michael.vancann...@wisa.be wrote:
  I didn't pay attention on this the first time, but: the buttons no
  longer display the images associated with the modal results when a
  questiondialog is used:
  - start ide
  - Start new project
  - Move main form
  Close IDE.
  - 'Save changes to project project1'
  With correct texts on the buttons, but no more images.
 
  Fixed, r28765.
  Note: on some window managers gtk2 doesn't load stock images (but  it's
  not lazarus problem, since all other gtk2 apps doesn't have images on
  message dialog buttons).
  eg. On Fedora 14 i see images on buttons under KDE and XFCE , but not
  under Gnome :)

 I can happily confirm that under Kubuntu, it works fine.

pls. tell that to Graeme ;)

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message dialogs in Lazarus

2010-12-19 Thread zeljko
On Sunday 19 December 2010 22:07, Sven Barth wrote:

 programs for such things could be written... but here the same problem
 applies as in every open source project: someone has to do it...

+1

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message dialogs in Lazarus

2010-12-18 Thread zeljko
On Wednesday 15 December 2010 21:14, michael.vancann...@wisa.be wrote:

 I didn't pay attention on this the first time, but: the buttons no longer
 display the images associated with the modal results when a questiondialog
 is used:
 - start ide
 - Start new project
 - Move main form
 Close IDE.
 - 'Save changes to project project1'
 With correct texts on the buttons, but no more images.

Fixed, r28765.
Note: on some window managers gtk2 doesn't load stock images (but  it's not 
lazarus problem, since all other gtk2 apps doesn't have images on message 
dialog buttons).
eg. On Fedora 14 i see images on buttons under KDE and XFCE , but not under 
Gnome :)

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message dialogs in Lazarus

2010-12-15 Thread zeljko
On Wednesday 15 December 2010 10:34, michael.vancann...@wisa.be wrote:
 Hi,

 I just upgraded to revision 28712 of Lazarus, and really almost all message
 dialogs are messed up. Sometimes, the button captions make no sense
 whatsoever. Every message (or question)  dialog I encountered seems
 affected by this.

 Just one example, after execution:
 Execution stopped: Yes to all OK ??

 Where are the 'old' captions ? 'Do not close the IDE' instead of 'Abort'
 and so on ?


Should be fixed in  r28722. Please test.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message dialogs in Lazarus

2010-12-15 Thread zeljko
On Wednesday 15 December 2010 16:00, michael.vancann...@wisa.be wrote:

 When project information file changes:

 Project changed on disk
 The project information file sopmefile has changed on disk.
 Ignore yes

 No question, and 'Ignore', 'yes'.

ahhhButtons[].Caption should be used in AskUser(), not resource 
strings ... fixed in r 28723 :)
Please retest.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Message dialogs in Lazarus

2010-12-15 Thread zeljko
On Wednesday 15 December 2010 21:14, michael.vancann...@wisa.be wrote:
 On Wed, 15 Dec 2010, Michael Van Canneyt wrote:
  On Wed, 15 Dec 2010, zeljko wrote:
  On Wednesday 15 December 2010 16:00, michael.vancann...@wisa.be wrote:
  When project information file changes:
 
  Project changed on disk
  The project information file sopmefile has changed on disk.
  Ignore yes
 
  No question, and 'Ignore', 'yes'.
 
  ahhhButtons[].Caption should be used in AskUser(), not resource
  strings ... fixed in r 28723 :)
  Please retest.
 
  Works perfect, thank you very much !

 I didn't pay attention on this the first time, but: the buttons no longer
 display the images associated with the modal results when a questiondialog
 is used:
 - start ide
 - Start new project
 - Move main form
 Close IDE.
 - 'Save changes to project project1'
 With correct texts on the buttons, but no more images.

Will be fixed, that's because buttons under gtk2 get image only if it's gtk's 
stock button caption eg. 'gtk-yes', 'gtk-no'.So must add stock id image to 
button by hand.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus trunk doesn't compile with FPC 2.4.0 since r28681

2010-12-12 Thread zeljko
On Monday 13 December 2010 08:30, Torsten Bonde Christiansen wrote:
 Hi List.

 The lazarus trunk is no longer compilable with 2.4.0 as of revision 28681.

 It seem that the file idecontexthelpedit.pas uses the method
 UnitName which was introduced in fpc 2.4.2, hence older versions can
 no longer compile trunk.

 Is this a bug or is lazarus changing to support 2.4.2 only?

As of lazarus 28680 you must have = 2.4.2 

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 paint event

2010-12-08 Thread zeljko
On Wednesday 08 December 2010 18:47, José Mejuto wrote:
 Hello José,

 Wednesday, December 8, 2010, 6:32:39 PM, you wrote:

 JM The gecko browser is using a GTK Window which is a TCustomControl,
 JM once put in the form and started it does nothing unless the mouse is
 JM moved over the form (not need to move over the control), so it looks
 JM like a non processed message. After some tests I had decided to add a
 JM timer to the form and in the event handler add
 JM Application.ProcessMessages and now the window is rendered as
 JM expected :-?

 This problem is resolved using -dUSE_GTK_MAIN_OLD_ITERATION so it
 looks like some kind of regression (I had not tested with 0.9.28).

Please open an issue with this problem.It should work 
without -dUSE_GTK_MAIN_OLD_ITERATION. Also attach example which reproduces 
problem.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 font size smaller

2010-12-07 Thread zeljko
On Tuesday 07 December 2010 18:54, cobines wrote:
 After recent changes to LCLGTK2 font size calculations the font with
 the same size seems smaller.  As zeljko has explained in another

 topic:
 Yes, I've changed gtk2 font calculation to be same as on other widgetsets
  (it was wrong).
 
 zeljko

 But the font size is inconsistent between widgetsets. Look at attached
 screenshot. The left form is from GTK2 widgetset, right from QT4.
 Fonts on GTK2 with same size are smaller than on QT4. The Sample GTK2
 text is Liberation Serif pt.12 from medit non-lazarus GTK2 app. The
 Sample QT4 text is from qtconfig non-lazarus QT4 app. You can
 compare them on the right hand side of the screenshot. There is no
 difference in font size between non-Lazarus GTK2 and QT4 apps but
 there is a difference between LCLGTK2 and LCLQT4 apps. And there is a
 difference between non-Lazarus GTK2 app and Lazarus GTK2 app.

Have you tried gtk2 Font.Height vs qt Font.Height or  Font.Size ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] OFFTOPIC: Money Model, for Lazarus

2010-12-06 Thread zeljko
On Monday 06 December 2010 14:02, Vincent Snijders wrote:
 2010/12/6 Alexsander Rosa alexsander.r...@gmail.com

  Back to the topic: I think the Lazarus project could SELL products like
  this:
  http://shop.canonical.com/product_info.php?products_id=648

 You mean like: http://www.cafepress.com/miraclec

Wow, pity that such geezmos wasn't available during lazarus day :)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor font size changed?

2010-12-02 Thread zeljko
On Thursday 02 December 2010 16:31, michael.vancann...@wisa.be wrote:
 On Thu, 2 Dec 2010, Bart wrote:
  Hi,
 
  I just did an update to r28589 (Suse Linux) and found that my editor
  font heigth had decresed. I have my font set to 12 pt, but it looked
  like 8 pt to me.
 
  I had to increase font size to 16 pt, to make it readable again,
  whilst to me now the font size looks like it actaually is 12 pt.
 
  I'm using -adobe-courier-medium-r-normal-*-*-*-*-*-*-*-iso10646-1 as
  my editor's font.
 
  Anyone with the same experience lately?

 I had a similar experience, yes.

 Yes, I've changed gtk2 font calculation to be same as on other widgetsets (it 
was wrong).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread zeljko
On Wednesday 01 December 2010 14:23, Joost van der Sluis wrote:
 On Wed, 2010-12-01 at 14:17 +0100, zeljko wrote:
  On Wednesday 01 December 2010 13:48, Joost van der Sluis wrote:
   On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote:
 I think we should not change a thing, until the problem is clear.
 Maybe we can come up with some 'general' transaction-isolation
 levels. The reason they are not implemented in a general way is
 that each DB has it's own locking-style.
   
Here is nice explanation of isolation levels, general
transaction-isolation levels should be implemented definitelly.
http://en.wikipedia.org/wiki/Isolation_%28database_systems%29
  
   Well, these are tne ansi/sql transacion isolation levels. do you know a
   database which actually uses/supports these? (Except from Oracle)
 
  Yes, PostgreSQL supports all of them.

 With the same names? I know from some other db-servers, that they use

Yes.
http://www.postgresql.org/docs/8.4/interactive/transaction-iso.html

 different names. Because by default they use some slightly different
 isolation levels, but offer the ansi/sql levels as 'compatibility'
 option. Sometimes you have to set some flags to get the proper behavior.
 (Most DB-vendors find their own isolation-levels better then the
 default, 'old', ansi-c ones)

Don't know what others do, but we can handle that somehow IMO.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-30 Thread zeljko

 I think we should not change a thing, until the problem is clear. Maybe
 we can come up with some 'general' transaction-isolation levels. The
 reason they are not implemented in a general way is that each DB has
 it's own locking-style.

Here is nice explanation of isolation levels, general transaction-isolation 
levels should be implemented definitelly.
http://en.wikipedia.org/wiki/Isolation_%28database_systems%29

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Loading old project into Lazarus_fixes causes lock-up...

2010-11-29 Thread zeljko
On Monday 29 November 2010 10:48, Graeme Geldenhuys wrote:
 Op 2010-11-29 10:52, Max Vlasov het geskryf:
  some of them I could not live anymore. For example, one of them was
  related to opening one particular package, selecting unit, and getting AV
  after selecting remove. When I wanted to report about this bug, I tried
  the same with svn version, and there it was gone. So how can I find a
  version that works for me in this case? In terms of stability, they're
  all still in progress,

 All I'm saying, is don't be fooled by the bells and whistles + eye-candy of
 0.9.29. The grass is not always greener on the other side. So you have to
 try with trial and error to find a version or revision (or your own custom
 branch with own fixes applied). And when you find one that works, stick
 with it!

 Some 0.9.29 issues I hate.

 * Focused items in list views, treeviews etc have grey background and grey
 text, so when I have an item selected, I can't read it. This occurs in
 Messages Window, any treeview in the IDE (treeviews are used all over in
 the IDE) etc. [finally fixed a little while back, but has been around for
 months]

What's mantis number of this issue ?


 * Debugging is seriously broken in 0.9.29. Watch windows don't update,
 Local Vars window shows old values, breakpoints don't trigger, break point
 hit count doesn't work. This all causes major headaches while debugging -
 hence I don't use the IDE for debugging at all any more. I waisted way to
 many hours hunting down a bug, just to find out that the IDE is actually
 the cause of the false information.

Martin is working on this afaik.


 * Closing a tab via X button, closes all other tabs except the one I wanted
 closed. Major frustration!

Cannot reproduce (Fedora 3 + gtk2-2.12, Fedora 13 + gtk2-2.20)


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-11-26 Thread zeljko
On Friday 26 November 2010 15:14, Alexsander Rosa wrote:

 With DBExpress or Zeos this problem does no occur. They use the so-called

Zeos ? This is simply NOT true, at least with Zeos 6.6.5.
If you chosen correct tiTransactionIsolation (eg. tiReadCommited) then pgsql 
connections automatically opens transactions (so you have idle in 
transaction) for nothing.I've already fixed that for myself, but that's a 
real problem. sqldb have another problem because it opens another connection 
for query (so with 100 connections you can have 200 connections because each 
client started one query), so must think about it when setting up 
postgresql.conf (client connections param).

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GUI development for web UI

2010-11-24 Thread zeljko
On Wednesday 24 November 2010 12:11, michael.vancann...@wisa.be wrote:

 MySQL I simply don't use because it is a bad database engine :-)

+1

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with revision 28344

2010-11-23 Thread zeljko
On Tuesday 23 November 2010 08:27, tim launchbury wrote:
 Hello all

 When updating from svn, applying revision 28344 causes my app to fail
 with runtime error 202.
 Is there a  problem with this patch or do I need a workround or code
 change in my app?

 It worked fine before this change.

Update to latest svn, rebuild laz , if you get any error please provide your 
widgetset, OS etc.. also some stack trace.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] false disk is full messages

2010-11-23 Thread zeljko
On Tuesday 23 November 2010 09:35, Graeme Geldenhuys wrote:
 Hi,

 Has anybody else received false Disk is full error messages from Lazarus
 IDE?

Yes, I see it sometimes for years (but just sometimes).Already asked what it 
could be and afair somebody said that's something with fpc (but it was really 
long time ago so cannot remember all details).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with revision 28344

2010-11-23 Thread zeljko
On Tuesday 23 November 2010 09:33, zeljko wrote:
 On Tuesday 23 November 2010 08:27, tim launchbury wrote:
  Hello all
 
  When updating from svn, applying revision 28344 causes my app to fail
  with runtime error 202.
  Is there a  problem with this patch or do I need a workround or code
  change in my app?
 
  It worked fine before this change.

 Update to latest svn, rebuild laz , if you get any error please provide
 your widgetset, OS etc.. also some stack trace.

Also, provide fpc version.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] false disk is full messages

2010-11-23 Thread zeljko
On Tuesday 23 November 2010 10:17, Mattias Gaertner wrote:
 On Tue, 23 Nov 2010 09:50:48 +0100

 zeljko zel...@holobit.net wrote:
  On Tuesday 23 November 2010 09:35, Graeme Geldenhuys wrote:
   Hi,
  
   Has anybody else received false Disk is full error messages from
   Lazarus IDE?
 
  Yes, I see it sometimes for years (but just sometimes).Already asked what
  it could be and afair somebody said that's something with fpc (but it was
  really long time ago so cannot remember all details).

 See
 http://lists.freepascal.org/lists/fpc-pascal/2007-October/015301.html

 Mattias


That's it. Tnx :)

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugging Lazarus IDE (Package access violation)

2010-11-22 Thread zeljko
On Tuesday 23 November 2010 07:54, Max Vlasov wrote:
 Hi,
 I encountered several times when Package window fired access violation on
 different operations. I suppose I should report an issue, but just
 wondering, is it hard (if it full reproducible) to run another instance of
 Lazarus and debug it, so the report could contain more information saving
 the developers' time? Or at least recompile it with an option allowing to
 show additional information about the error , not only simple access
 violation message?

What widgetset ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Turn a TGroupBox into a TPanel

2010-11-21 Thread zeljko
On Friday 19 November 2010 16:34, Alexsander Rosa wrote:
 The ChildSizing property allow several nice things with TGroupBox [1],
 congratulations to the team. Under GTK2, the TPanel still have some
 annoying bugs. If we had in TGroupBox a property
 HideContourLineWhenCaptionIsEmpty or even HideContourLine, the
 TGroupBox could replace TPanel in the poor man's layout manager role.

 [1] http://wiki.lazarus.freepascal.org/Autosize_/_Layout

No, we cannot do that since there's no property in GtkFrame to do such thing.
Under gtk2 TPanel is scrolling control because GtkFrame is wrong class  (wrong 
gtk design IMO).There should be pure GtkFrame (like it is eg under qt) and 
GtkGroupBox (which is current GtkFrame).
Only way to fix this is to write an gtk2lcl class which should be like qt's 
QFrame , and of course use that class instead of scolling controls.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] StringGrid performance problems

2010-11-18 Thread zeljko
On Thursday 18 November 2010 08:47, Graeme Geldenhuys wrote:

 Fixed rows are handled differently in fpGUI. Fixed rows are not part of the
 rowcount in fpGUI. They are separated out, and have their own dedicated
 properties to adjust the header style, content, width etc.

So your rowCount doesn't take into account headers and Cells[0,1] := 'MyText' 
doesn't change header cell text but real cell ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Windows Metafile *.wmf *.emf control

2010-11-18 Thread zeljko
On Thursday 18 November 2010 10:38, Birger Jansen wrote:
 Hi,

 Does anyone know of a control that can handle the Windows wmf and/or emf
 file format to diaply images? I have had some succes with this control:
 http://wiki.freepascal.org/TMetafile_/_TMetafileCanvas but it lacks the
 SaveTo* and LoadFrom* functions that I am looking for.

There's an semi solution (multiplatform), I'm using it with qtlcl on linux,win 
and mac.
Goto 
http://bugs.freepascal.org/view.php?id=14333
and download lfm.pas

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] AV on Lazarus startup

2010-10-26 Thread zeljko
On Tuesday 26 October 2010 11:20, Darius Blaszyk wrote:
 I get the following AV introduced by rev 27870.

Are you sure  that 27870 introduced such bug ? As I can see your version is 
27869 ?!?

 Lazarus 0.9.29 r27869M FPC 2.4.0 i386-linux-gtk 2 (beta)

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] AV on Lazarus startup

2010-10-26 Thread zeljko
On Tuesday 26 October 2010 13:35, Darius Blaszyk wrote:
 I'm sure. I'm now at rev 27869, because that didn't give me the AV.
 Updating to 27870 gave me the AV which I mentioned.

Sorry, you're right. Seem that Types.IntersectRect() returns wrong result but, 
independent test says that it's ok ... so I don't understand what's problem.
Imagine this:
ADest := Rect(0, 0, 24, 24);
Src1 := Rect(0, 0, 24, 24);
Src2 := Rect(0, 0, 22, 22);
1.IntersectRect Dest = 0, 0, 24, 24
2.Old (from GraphType) returns Dest = 0,0,22,22
So , now I'm wondering what's up here ...

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] AV on Lazarus startup

2010-10-26 Thread zeljko
On Tuesday 26 October 2010 13:35, Darius Blaszyk wrote:
 I'm sure. I'm now at rev 27869, because that didn't give me the AV.
 Updating to 27870 gave me the AV which I mentioned.

Fixed in r 27879


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Need testers (gtk2)

2010-10-24 Thread zeljko
Hi,
I've commited an important patch today (r 27829) , about gtk2 main loop 
iterations.
Now it uses g_main_context instead of g_main which is deprecated from 
gtk2-2.2.
This patch improves main loop, but also now PostMessage() works fine for 
messages from another threads.

*** Gtk2 Laz/LCL must be build with -dUSE_GTK_MAIN_CONTEXT_ITERATION ***
to get this new code work.

If you find any issues about it, please open it's # at bugtracker.
After while I'll set USE_GTK_MAIN_CONTEXT_ITERATION as default, so -d won't be 
needed anymore.

I've tested under: Fedora 3 (gtk2-2.12), Fedora 13 (gtk2-2.20), Ubuntu 10.4 
64bit (gtk2-2.20).
Gtk2 version isn't important here, but glib2 version is, so if you open any 
issue about main loop problems, please provide next informations:

1.Linux distribution  version + 32 or 64 bit 
2.Gtk2 version
3.Glib2 version.
4.Provide an simple example where I can reproduce your problem.

thanks.

thanks
  zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Need testers (gtk2)

2010-10-24 Thread zeljko
On Sunday 24 October 2010 15:32, Juha Manninen wrote:
 On Sunday 24 October 2010 15:24:04 zeljko wrote:
  Hi,
  I've commited an important patch today (r 27829) , about gtk2 main loop
  iterations.
  Now it uses g_main_context instead of g_main which is deprecated from
  gtk2-2.2.
  This patch improves main loop, but also now PostMessage() works fine for
  messages from another threads.
 
  *** Gtk2 Laz/LCL must be build with -dUSE_GTK_MAIN_CONTEXT_ITERATION ***
  to get this new code work.

 In my short tests it works well. I didn't notice difference for older
 versions. I will try PostMessage later.

This update is mostly commited because of PostMessage() :), but also affects 
unthreaded apps, because our message queue does not rely on critical 
sections, but parallel g_main_context, which is more effective in multi 
threaded environment.

  $ gdb framedem --sync
 which says:
  gdb: unrecognized option '--sync'
  Use `gdb --help' for a complete list of options.

 I can give the parameter in Lazarus Run Parameters... but then the whole
 Lazarus freezes. It doesn't take mouse clicks and must be killed.

Isn't standard X11 param with one - eg. ./myprogram -sync ?

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Need testers (gtk2)

2010-10-24 Thread zeljko
On Sunday 24 October 2010 17:56, waldo kitty wrote:
 On 10/24/2010 11:53, zeljko wrote:
  On Sunday 24 October 2010 15:32, Juha Manninen wrote:
  I can give the parameter in Lazarus Run Parameters... but then the
  whole Lazarus freezes. It doesn't take mouse clicks and must be killed.
 
  Isn't standard X11 param with one - eg. ./myprogram -sync ?

 full word params has two dashes... single character params have one dash...

 foo -V
 foo --version

 the above might return the same result in program foo...


Are you sure ? I'm talking about XOrg standard params, not about gtk2 or any 
other ws ...
xterm -sync - works ok
xterm --sync - doesn't work

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread zeljko

 And yes that page automatic features  is another place, where no one
 ever would expect anything (half of it is display related, and
 should be on a page nested into display) = for the rest: a good name is
 needed (maybe the hints can even get there own page...)

At least all those options checkboxes, tedits etc..should have hint + showHint 
filled up.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


<    2   3   4   5   6   7   8   9   >