Sign in Join

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

Mailing lists / lazarus / 2002-09

New component TMCalEdit

5 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
to Barry Samuels: I sent the following to the list over an hour ago and the mailing instructions say that…
Tony Maro wrote 22 lines
First, I apologize if any list e-mails to me have bounced today- we had an extended power outage at the office and the UPS shut down my servers, including mail, for > 4 hours. Top that off with one of the main switches failing to work afterwards... I've just posted my new component of a TEdit descendant that when double-clicked drops down a calendar for choosing a date. http://tony.maro.net/mod.php?mod=userpage&page_id=20 Screenshots, a detailed description and source code are at that URL. I have a problem that the calendar won't stay on top (even when modal and/or fsstayontop set). It also doesn't get the lost focus event if you click to another window. Anybody have an idea why? It worked fine in Delphi... Thanks,

I fixed the Deactivate event form forms in CVS.
Your control works fine for me now, once you fix the dangling pointer in lostfocus procedure.

The fsStayOnTop cannot be implemented in Linux, as the window manager philosophy is quite different from Windows (and I am thankful for that). User may choose what window stays on top, not appliaction, and I like it.

But maybe I am wrong and it can be done, you never know.

FYI, Kylix also ignores the fsStayOnTop and its form never stays on top as well.

Michal

Reply by email

Barry Samuels

I sent the following to the list over an hour ago and the mailing instructions say that the default is for me to receive a copy of my own mail back. I haven't yet received my own mail back so I am assuming that my mailing wasn't accepted because the address given was slightly different from that which I used to subscribe. If this results in two copies received on the list then I apologise.

I have set up a form containing two TGroupBoxes each containing a group of TRadioButtons.

As I understand it the Radio Buttons in each GroupBox should be independent of each other to the extent that selecting a Radio Button in one GroupBox should not affect the status of Radio Buttons in the other Group Box.

However this is not the case as all Radio Buttons behave as if they were in only one group. For example clicking a Radio Button in GroupBox1 will unset any Radio Buttons in GroupBox2.

I want, as previously mentioned, two independent groups. How can I achieve this?

All advice is appreciated.

Barry Samuels

Reply by email

Michal Bukovjan
to Barry Samuels
Barry Samuels wrote 25 lines
I sent the following to the list over an hour ago and the mailing instructions say that the default is for me to receive a copy of my own mail back. I haven't yet received my own mail back so I am assuming that my mailing wasn't accepted because the address given was slightly different from that which I used to subscribe. If this results in two copies received on the list then I apologise. I have set up a form containing two TGroupBoxes each containing a group of TRadioButtons. As I understand it the Radio Buttons in each GroupBox should be independent of each other to the extent that selecting a Radio Button in one GroupBox should not affect the status of Radio Buttons in the other Group Box. However this is not the case as all Radio Buttons behave as if they were in only one group. For example clicking a Radio Button in GroupBox1 will unset any Radio Buttons in GroupBox2. I want, as previously mentioned, two independent groups. How can I achieve this? All advice is appreciated.

Fixed in CVS. I greatly simplified the code, should be quite working now. The only outstanding issue (documented in unit header) is with reparenting, i.e. when parent is changed, it still acts as belonging to the old group.

This one is very easy to fix (one has to hook to widget parent-set signal of radio widget, and reset its group for new parent - code similar to when widget is created, quite simple as GTK takes care about most of the work), but I'll leave it as an excersice to reader - good starting point to get yourself into Lazarus component programming for GTK interface!

Michal Bukovjan

Reply by email

Tony Maro
to Barry Samuels: I sent the following to the list over an hour ago and the mailing instructions say that…

First, I apologize if any list e-mails to me have bounced today- we had an extended power outage at the office and the UPS shut down my servers, including mail, for > 4 hours. Top that off with one of the main switches failing to work afterwards...

I've just posted my new component of a TEdit descendant that when double-clicked drops down a calendar for choosing a date.

http://tony.maro.net/mod.php?mod=userpage&page_id=20

Screenshots, a detailed description and source code are at that URL.

I have a problem that the calendar won't stay on top (even when modal and/or fsstayontop set). It also doesn't get the lost focus event if you click to another window. Anybody have an idea why? It worked fine in Delphi...

Thanks,

Tony Maro
http://tony.maro.net

Reply by email