Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-03

Few CVS changes

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michal Bukovjan

Just commited few CVS changes (had a few spare hours :-))

- on ShowModal, do not grab focus. It is useless. and should not be used in LM_SHOWMODAL for these purposes - the modality is handled by a different function. Fixes some dialog crashes.
- little coding here and there, mostly optimizing.

Is anyone working on ShowMessage? If I don't completely sucumb to flu this weekend, I thought I'd give it a try and implemented it through GTK (GtkDialog).

Also I looked at Lazarus source, and found that there is TUnitList class, which is not actually a list, but rather a descriptor - I would suggest renaming to TUnit or TUnitDescriptor or TUnitDesc or whatever else so that it is less confusing.

Michal Bukovjan

Reply by email

Curtis White
to Michal Bukovjan
Michal Bukovjan wrote
Is anyone working on ShowMessage? If I don't completely sucumb to flu this weekend, I thought I'd give it a try and implemented it through GTK (GtkDialog).

Why not just use a TForm, TLabel and TButtons? They are already created and then it will be the same on all platforms and will require less conversion. Just a thought.

Curtis

Reply by email

Shane Miller
to Michal Bukovjan: Just commited few CVS changes (had a few spare hours :-)) - on ShowModal, do not grab…

I had taken a stab at it via Application.ShowMessage (oer whatever) and I was having trouble at the time with the ShowModal command. I never got back to the function once I fixxed SHowModal but you can look at that for an idea on how I planned on doing it.

I set up a function that was used as the onclick right in the TApplication's source and simply set the modalresult based on the SENDER.

---------------------------------------
Shane Miller
Take a look at other product/projects of mine below!

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Get paid to surf the net by clicking here too!!!
http://epipo.com/sine.asp?dex870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.lazarus.freepascal.org

Earlier message 27 lines
----- Original Message ----- From: "Curtis White" To: Sent: Saturday, March 25, 2000 12:33 AM Subject: Re: [lazarus] Few CVS changes > Michal Bukovjan wrote: > > > Is anyone working on ShowMessage? If I don't completely sucumb to flu > > this weekend, I thought I'd give it a try and implemented it through GTK > > (GtkDialog). > > > > Why not just use a TForm, TLabel and TButtons? They are already created > and then it will be the same on all platforms and will require less > conversion. Just a thought. > > > Curtis > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Michal Bukovjan
to Michal Bukovjan: Just commited few CVS changes (had a few spare hours :-)) - on ShowModal, do not grab…
Curtis White wrote 10 lines
Michal Bukovjan wrote: > Is anyone working on ShowMessage? If I don't completely sucumb to flu > this weekend, I thought I'd give it a try and implemented it through GTK > (GtkDialog). > Why not just use a TForm, TLabel and TButtons? They are already created and then it will be the same on all platforms and will require less conversion. Just a thought.

There are two options : either we can call lower level stuff, and maintain a common interface, or implement it ourselves, and risk more code bloat and maybe different lool'n'feel if lower level stuff changes.

The portability is not an issue, because all you do is to call Application.MessageBox.

Anyway, I did not implement anything, because I have a flu now, as feared. This sucks :-(

Michal Bukovjan

Reply by email