[Gambas-user] form.resize works only once with gb.gtk

2010-08-07 Thread HARADA Kazutaka
Hi All, To restrict minimum size of form, I wrote following code. PUBLIC SUB Form_Resize() IF FMain.Height < 300 THEN FMain.Height = 300 ENDIF END But this works only once with gb.gtk. It seems 2nd and later resize method ignored.) It works fine with gb.qt. I'm running gambas-2.21.

Re: [Gambas-user] menu.popup does not work with tray icon

2010-07-31 Thread HARADA Kazutaka
>> It works for me, but I'm using KDE 4. I will try with gnome... > > Ok, no it wasn't, and I fixed the bug in revision #3083! If you want to > test... I made a patch from svn rev 3083 and applied it to gambas-2.21.0 then popup menu works fine now. Thanks for you great work! -- -

[Gambas-user] menu.popup does not work with tray icon

2010-07-30 Thread HARADA Kazutaka
Hi All, I found a strange problem for menu.popup() method. To reproduce the problem, unpack the attached small project, run it, and do the following steps. 1. Right click tray icon and menu is displayed. (OK) 2. Double click tray icon and second form is open. (OK) 3. Then close second form. (OK)

Re: [Gambas-user] How to show a form with keyboard shortcut

2009-08-18 Thread HARADA Kazutaka
Doriano Blengino wrote: > I think that in the call to XNextEvent you are passing a NIL pointer; > libX11 tries to put data in the area pointed by pEvent. You should > allocate some memory in it, enough to hold the event data. If, on the > Hi, Doriano Thanks for your comment. As you suggeste

Re: [Gambas-user] How to show a form with keyboard shortcut

2009-08-17 Thread HARADA Kazutaka
Sorry fo late reply, > You can't if you don't have the focus. What you need is a global shortcut, > which is managed by your desktop environment, or a special program. > > For example, in KDE, there is a control panel entry for configuring them. > Yes, you are right. But I'm looking for a wi

Re: [Gambas-user] Cannot scroll gridview by mouse wheel with hidden row (gb.gtk)

2009-05-05 Thread HARADA Kazutaka
Hi, (06 May 2009 01:34) Benoît Minisini wrote: > The bug was fixed in revision #1948. Both in gb.gtk and gb.qt, as gb.qt > sometimes crashed when resizing a row during a Data event. > Tanks Benoît. I'm really grad to hear that the problem is fixed! Regards, -- -

[Gambas-user] Cannot scroll gridview by mouse wheel with hidden row (gb.gtk)

2009-04-21 Thread HARADA Kazutaka
With gb.gtk, I cannot scroll gridview by mouse wheel if some hidden row (gridview.rows[].height = 0) exist. I attached small project to check it. When you click Button1, then even rows are set as hidden. Scroll bar works, but cannot scroll with mouse wheel even though mouse pointer is in the grid

Re: [Gambas-user] Tray icon not updated sometimes

2008-08-30 Thread HARADA Kazutaka
Benoit Minisini wrote: > Yes, actually the icon is not automatically refreshed. It will be fixed in a > next commit. > I confirmed that the bug is fixed in 2.8.2. Thank you Benoit. -- -- Kazutaka HARADA e-mail:[EMAIL PROTECTED] --

Re: [Gambas-user] Tray icon not updated sometimes

2008-08-27 Thread HARADA Kazutaka
HARADA Kazutaka wrote: > Woks fine! > > But, in my another project, which using trayicon, does not works fine. > TrayIcon.Picture is not updated immediately. > > OK, I will check it again and report it later if I found something.^^; > Sorry, my previous post was bit wron

Re: [Gambas-user] Tray icon not updated sometimes

2008-08-27 Thread HARADA Kazutaka
Benoit Minisini wrote: >> PUBLIC SUB Form_Show() >> >>SLEEP 3 >>TrayIcon1.Picture = Picture["green.png"] >>SLEEP 3 >>TrayIcon1.Picture = Picture["yhellow.png"] >>SLEEP 3 >>TrayIcon1.Picture = Picture["red.png"] >> >> END >> > What happens if you replace "SLEEP" by "WA

[Gambas-user] Tray icon not updated sometimes

2008-08-27 Thread HARADA Kazutaka
Hi, Another problem for tray icon found. With gambas2-2.8.1, I found that the picture of tray icon is not updated (changed) sometimes. I wrote a small project to reproduce it. - create new form and put a trayicon in it - set default picutre of trayicon (TrayIcon1.Picture="blue.png") - then put f

Re: [Gambas-user] No tray icons displayed with gb.gtk

2008-08-18 Thread HARADA Kazutaka
Benoit Minisini wrote: > The bug is finally fixed in revision #1503. > This was not a so small bug... GTK+ is poorly documented, and I had to read > its source code to know what to do. But now, icons have the right size, and > are fully transparent (bonus). > I have got the patches from svn r

Re: [Gambas-user] No tray icons displayed with gb.gtk

2008-08-16 Thread HARADA Kazutaka
Benoit Minisini worte: > Arg. Yes... Did you read the changelog? :-) > Hmm... Many canges. > Which desktop do you use? > I'm using Gnome-2.22.3, showing notification area applet in standard panel. I have tested with creating simple project like this, - Create GTK+ graphical application with

[Gambas-user] No tray icons displayed with gb.gtk

2008-08-16 Thread HARADA Kazutaka
Hi, After upgrading to gambas2-2.8.0, My project coundn't show tray icons in notification area with gb.gtk. It still works fine with gb.qt. I'm using gnome-2.22.3 with gtk2-2.12.11. # Anything changed??? -- -- Kazutaka HARADA e-mail:[EMAIL PROTECTED]