Recent

Author Topic: Q: On the Misc components: TcalcEdit and TdateEdit (* SOLVED *)  (Read 4656 times)

Elmug

  • Hero Member
  • *****
  • Posts: 849
In exploring Lazarus,

I put in Form1 component TCalcEdit and componet TDateEdit, side by side, adding no code at the editor.

Then I Run it and it executes just fine.

However, they both come up in the "closed" mode, so I click on the Calc icon and the Calculator appears and works perfect.

But, to my surprise, I can not open the Calendar by clicking on the Calendar icon, unless I first close the Calculator.

The questions are:

1. Is it possible to be able to have both open without the "toggle" behavior, of only ONE being allowed to run at a time?

2. Is it possible to have them BOTH come up open when one runs the .exe file? (Windows XP).

3. On the left of these components, each has its own little slot space where characters can be input by keyboard, but can't figure what the use of that text/numeric space is for. Well it seems to be a space to put a "message" to pass to the component when it is clicked upon..I noticed the calculator can take a number and  start with that value, but just don't seem to see a use for those "messages". What'd it be?

I was thinking that these components can be useful in a little utility, and typically I'd want them to come up OPEN when the .exe is run, so how to do if possible? Properties or CODE?

Thanks!
« Last Edit: July 07, 2011, 11:42:27 am by Elmug »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4680
  • I like bugs.
Re: Q: On the Misc components: TcalcEdit and TdateEdit
« Reply #1 on: July 06, 2011, 09:38:11 am »
You try to use those components in a way they are not designed for.
The selection window can be open only when the control has focus.
Use the TCalendar component + TEdit instead for calendar.
For calculator there is no similar stand-alone comp. Maybe someone wants to create such component by extracting code from TCalcEdit. (?)
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: Q: On the Misc components: TcalcEdit and TdateEdit
« Reply #2 on: July 06, 2011, 08:35:29 pm »
Hi and thanks for the reply.

I agree that what seems a logical use is not what they were designed for, and am with no clue on what they were designed for, and hoping someone would have some knowing or suggestion.

A little strange, but that's OK, not to be able to see the calendar and the calculator at the same time if I put one of each in a little form-window. Not that important, though.

Thanks.

 

TinyPortal © 2005-2018