[Gambas-user] Re: Sending Data From one Form to another

Steve Starr comtux at ...626...
Sat Aug 27 20:54:49 CEST 2005


Um the way i answerd 1, 2, 3, were wrong if i 

PUBLIC SUB Editor1_Change()
blah blah blah
END

I will still need to use the keycode.class or else ill just have an
endless loop.
I will need to use a IF THEN ELSE with the Dialog.OpenFile() or IF 
Editor1.Text = Dialog.Path = True <--- think i can do this
THEN or AND keycode = abcdefgh etc 
THEN blah blah

:) You more than like won't know what the hell i just said but that is
ok i understude it and understand what you meant with statements 1, 2,
3

On 8/27/05, Steve Starr <comtux at ...626...> wrote:
> 1) Do not use numeric values for keys. Use the constants of the Key class.
> 
> Ok i see what you mean :) but now that i know of the change event for
> Editor1
> i dont need to use the Key class.
> 
> 2) Do no repeat one thousand times the same line of code. Make a function.
> 
> See above :)
> 
> 3) If you want to update the WebBrowser when the HTML code changes, the
> TextArea (and Editor) control have a 'Change' event.
> 
> And once again see above. :)
> 
> 4) Make your window resizable, but...
> 
> 5) Don't resize controls by hand. Use the HBox, VBox, Panel... containers
> and
> their Arrangement, Padding, Spacing properties. Use the Expand property to
> tell a control to takes as much space as possible inside a container whose
> Arrangement property is set.
> 
> Ya i have been fighting with 4 and 5 for awhile these contros are gtk
> natives are they not.
> 
> 6) Don't make your own menus. Use the standard ones.
> 
> I only made my own menu because when i used 
> IF Dialog.OpenFile() THEN RETURN
>   Editor1.Text = Dialog.Path
> With the standard menu i just kept getting and error.
> 
> On 8/27/05, Steve Starr <comtux at ...626...> wrote:
> > Here you go here is the example i am working with.
> > picconfig was just a typo in the e-mail
> > 
> > On 8/27/05, Rob <sourceforge-raindog2 at ...94...> wrote:
> > > On Saturday 27 August 2005 08:38, Steve Starr wrote:
> > > > I was wondering if anyone could give me some insite as to why this
> > > > isnt working?
> > > 
> > > 1. Is the second form called "piconfig" or "picconfig"?  You have it 
> > > listed both ways.  I'm sure it's just a typo but I want to make sure 
> > > it isn't something silly like a misspelling in your code.
> > > 
> > > 2. Does the picconfig form open the tool form, or vice versa?  If that 
> > > "piconfig.tbox.text" is the first time you're referencing the 
> > > piconfig form, the Open event in piconfig probably hasn't fired yet 
> > > and so the tbox object hasn't been populated yet.  It might even work 
> > > some of the time but not others, because it's a race condition.  What 
> > > if you put a "piconfig.load" right after "if dialog.openfile() then 
> > > return"?
> > > 
> > > Rob
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> > Practices
> > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
> > QA
> > > Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> >
>




More information about the User mailing list