Sign in Join

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

Mailing lists / lazarus / 1999-04

Added TEdit and TLabel Button to the FCL

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

J. Patrick Narkinsky
to Cliff Baeseman: I added TEdit and TLabelButton to the FCL tonight. TLabelButton is just a decendant of…
Cliff Baeseman wrote 8 lines
Would you like me to take a think we should attack it just like TButton. We create three objects TMenuBar, TMenu, TMenuItem all based from our TWinControl. TMenuBar will have a method called addMenuItem , TMenu will have a method called addMenuItem. The TMenuBar is the item that will be positioned on the form using the AddComponent Method. I think we should ignore but not forget the way delphi handles these objects. We can make it delphi looking but it does not have to be a straight delphi conversion. Shane give me your thoughts on this?

It's been a while since I did any GTK programming, but isn't there a "MenuMaker" object or some such. As I recall, what this did was, when given a set of data, made the appropriate Menu* calls.

It seems to me that this would be the most logical (and the most like Delphi) way to do menus. I may bo totally wrong though.

Patrick

J. Patrick Narkinsky () "If you want to know what God thinks about money, just look at the people He gives it to." -- Old Irish Saying

Reply by email

Cliff Baeseman
to J. Patrick Narkinsky

Yes there is a menu factory macro. I do not know if this will work in our GTK objects or not.

Our component framework is very extendable it may be that we can support both methods.

I will take a look at the menu factory code.

Cliff

Earlier message 36 lines
-----Original Message----- From: J. Patrick Narkinsky Sent: Tuesday, April 20, 1999 7:20 AM To: Subject: Re: [lazarus] Added TEdit and TLabel Button to the FCL On Tue, 20 Apr 1999, Cliff Baeseman wrote: > Would you like me to take a think we should attack it > just like TButton. We create three objects TMenuBar, TMenu, TMenuItem > all based from our TWinControl. TMenuBar will have a method called > addMenuItem , TMenu will have a method called addMenuItem. The TMenuBar > is the item that will be positioned on the form using the AddComponent > Method. I think we should ignore but not forget the way delphi handles > these objects. We can make it delphi looking but it does not have to be > a straight delphi conversion. Shane give me your thoughts on this? It's been a while since I did any GTK programming, but isn't there a "MenuMaker" object or some such. As I recall, what this did was, when given a set of data, made the appropriate Menu* calls. It seems to me that this would be the most logical (and the most like Delphi) way to do menus. I may bo totally wrong though. Patrick -- J. Patrick Narkinsky () "If you want to know what God thinks about money, just look at the people He gives it to." -- Old Irish Saying _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Cliff Baeseman

Everyone,

I added TEdit and TLabelButton to the FCL tonight. TLabelButton is just a decendant of TButton which has a caption on it. I also corrected a error in the control alignment code at the TControl level AddControl procedure. TEdit still needs to have the event handlers coded and the GetText function has to be finished. The event handlers for TButton and inherited TLabelButton is working.

I will place this code on the Web tomorrow evening after adding a few more components("widgets").

Not much more to do to the FCL to get us a working editor / compiler . We still need check boxes for the environment options dialog.

Shane I know how to handle the menu stuff.
Would you like me to take a think we should attack it just like TButton. We create three objects TMenuBar, TMenu, TMenuItem all based from our TWinControl. TMenuBar will have a method called addMenuItem , TMenu will have a method called addMenuItem. The TMenuBar is the item that will be positioned on the form using the AddComponent Method. I think we should ignore but not forget the way delphi handles these objects. We can make it delphi looking but it does not have to be a straight delphi conversion. Shane give me your thoughts on this?

We would probably get into deep @ if we did a direct conversion.

This means we have

TForm
TButton
TLabelButton
TEdit
TMemo
TNotebook
TLabel

Have a RAD day ;)

Cliff

Reply by email