Re: [Gambas-user] Can not draw outside of draw event handler

2011-04-16 Thread Demosthenes Koptsis
ok! On Sat, 2011-04-16 at 15:35 +0200, Benoît Minisini wrote: > > On Wed, 2011-03-30 at 01:12 +0200, Benoît Minisini wrote: > > > > Please check that the Draw.FillRect uses the Background property and > > > > not the FillColor property. > > > > > > > > is this ok? > > > > > > > > > > > > See fr

[Gambas-user] Version 3773 - code blocks

2011-04-16 Thread richard terry
HI Benoit, Been using this for a few hours with troublesome problems. Code blocks are no longer working - the program seems to skip over them which is making it very hard to debug. Regards Richard -- Benefiting from S

[Gambas-user] Menu (feature request)

2011-04-16 Thread richard terry
Hi Benoit, In my every evolving design environment I have many occasions to want to copy a menu structure from one form to another. At the moment, this is possible by a multi-select of the menu and its items, and a copy, then load the other form, and then paste it into the menu editor on the o

Re: [Gambas-user] an "Is this possible question" about images

2011-04-16 Thread richard terry
On Sunday 17 April 2011 10:16:52 Shane Powell wrote: > On 16/04/11 21:38, richard terry wrote: > > On Saturday 16 April 2011 20:32:22 Shane Powell wrote: > > Hi Shane, > > > > I''ve re-arranged the screen from 0.0.3 to show you what happens when > > you have a (roughly) proportional picture. > > >

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Jussi Lahtinen
Yes, good job! Now it's clear and logical. Jussi 2011/4/17 Benoît Minisini > > > You mean "in current file", not "in current directory", do you? > > > > Oh, yes.. a lot of errors from me... > > > > > And yes, it is logical to replace all only in the current file. Think > > > about renaming a p

Re: [Gambas-user] an "Is this possible question" about images

2011-04-16 Thread Shane Powell
On 16/04/11 21:38, richard terry wrote: > On Saturday 16 April 2011 20:32:22 Shane Powell wrote: > Hi Shane, > > I''ve re-arranged the screen from 0.0.3 to show you what happens when you > have a (roughly) proportional picture. > > If you leave the drawing code as is in DrawingArea1_Draw() you'll

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Benoît Minisini
> > You mean "in current file", not "in current directory", do you? > > Oh, yes.. a lot of errors from me... > > > And yes, it is logical to replace all only in the current file. Think > > about renaming a private class variable, for example. > > I think you misunderstand what I meant... > This

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Jussi Lahtinen
> You mean "in current file", not "in current directory", do you? > Oh, yes.. a lot of errors from me... > And yes, it is logical to replace all only in the current file. Think about > renaming a private class variable, for example. > I think you misunderstand what I meant... This is what I me

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Benoît Minisini
> Hmmm... that's not good, my error... it will be asked also when you use > browse feature! > And I'm not sure it is very logical to have "Replace", "Replace all" and > "Browse and replace"... > "Replace all" should replace all, not just in current directory. > > Jussi > You mean "in current fil

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Jussi Lahtinen
"intances", should be "instances"... sometimes hard to get it right Jussi On Sat, Apr 16, 2011 at 20:12, Jussi Lahtinen wrote: > Public Sub btnBrowseReplace_Click() > > If InitSearch() Then Return > > > If Message.Question(Subst$(("Are you sure you want to replace all > intances of '&1'

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Jussi Lahtinen
Public Sub btnBrowseReplace_Click() If InitSearch() Then Return If Message.Question(Subst$(("Are you sure you want to replace all intances of '&1' with '&2'?"), SearchString, ReplaceString), ("Yes"), ("No")) <> 1 Then Return Browse(chkSourceOnly.Value, True) End Jussi On Sat, Apr 16,

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Jussi Lahtinen
Hmmm... that's not good, my error... it will be asked also when you use browse feature! And I'm not sure it is very logical to have "Replace", "Replace all" and "Browse and replace"... "Replace all" should replace all, not just in current directory. Jussi On Sat, Apr 16, 2011 at 19:45, Jussi Lah

Re: [Gambas-user] Global search & replace

2011-04-16 Thread Jussi Lahtinen
It's good now, but I would like to see confirmation question, in case of accidental click on wrong button. My suggested code to FSearch: Private Sub Browse(Optional bOnlySource As Boolean, Optional bReplace As Boolean) Dim sDir As String Dim sFile As String Dim sPath As String Dim iPos As

Re: [Gambas-user] Can not draw outside of draw event handler

2011-04-16 Thread Benoît Minisini
> On Wed, 2011-03-30 at 01:12 +0200, Benoît Minisini wrote: > > > Please check that the Draw.FillRect uses the Background property and > > > not the FillColor property. > > > > > > is this ok? > > > > > > > > > See from previous email project99. > > > > Normally, Draw.FillRect() takes the color

Re: [Gambas-user] Potentially difficult to find error in the IDE

2011-04-16 Thread Benoît Minisini
> On Saturday 16 April 2011 21:52:39 Jussi Lahtinen wrote: > > Yes, there still are some situations when error messages aren't properly > > shown. > > I haven't be able to reproduce this bug consistently. To me this happens > > randomly and rarely. > > Also I don't see the quick flashes, because my

Re: [Gambas-user] Potentially difficult to find error in the IDE

2011-04-16 Thread richard terry
On Saturday 16 April 2011 21:52:39 Jussi Lahtinen wrote: > Yes, there still are some situations when error messages aren't properly > shown. > I haven't be able to reproduce this bug consistently. To me this happens > randomly and rarely. > Also I don't see the quick flashes, because my project is

Re: [Gambas-user] Display TextLabel on Message box

2011-04-16 Thread Jussi Lahtinen
No, nothing wrong with the code. It should display given message with OK button. But I don't think you can put TextLabel on Message box. I think you need to write your own form for it. Jussi On Sat, Apr 16, 2011 at 13:02, Shane Powell wrote: > On 16/04/11 18:31, Ganesh Kumar wrote: > > Hi Gu

Re: [Gambas-user] Potentially difficult to find error in the IDE

2011-04-16 Thread Jussi Lahtinen
Yes, there still are some situations when error messages aren't properly shown. I haven't be able to reproduce this bug consistently. To me this happens randomly and rarely. Also I don't see the quick flashes, because my project is full screen and when execution stops, focus isn't automatically cha

Re: [Gambas-user] an "Is this possible question" about images

2011-04-16 Thread Shane Powell
On 16/04/11 15:27, richard terry wrote: On Saturday 16 April 2011 10:29:15 Shane Powell wrote: Hi Shane, I had an 11MB picture I wanted to magnify (I'll send you an image of this off list), with your last code iteration only part of the image was shown, so I changed the code in the drawingarea1

Re: [Gambas-user] Display TextLabel on Message box

2011-04-16 Thread Shane Powell
On 16/04/11 18:31, Ganesh Kumar wrote: > Hi Guys., > > How to do it ? > > Display TextLabel on Message box. This is my code. > > > PUBLIC SUB Button1_Click() > Message.Info("Hallo, this is your message", "OK") > END >

[Gambas-user] Display TextLabel on Message box

2011-04-16 Thread Ganesh Kumar
Hi Guys., How to do it ? Display TextLabel on Message box. This is my code. PUBLIC SUB Button1_Click() Message.Info("Hallo, this is your message", "OK") END please Help me..

Re: [Gambas-user] Potentially difficult to find error in the IDE - addendum

2011-04-16 Thread richard terry
On Saturday 16 April 2011 17:05:18 richard terry wrote: As an addendum to my ambiguous wording, I should have said that searching for cmbTemplates using the popup search dialog failed to find the instance at the top, though it found other instances in code, and it was only by scrolling down sta

[Gambas-user] Potentially difficult to find error in the IDE

2011-04-16 Thread richard terry
Hi Benoit, This could be difficult to trace for a user: This scenario I had a form, to which at run time, I added a combo box (ie the combo not put on the form in the IDE) and I'd put it in the declarations section at the top. I then changed my mind, and decided I'd put it on the form in the I