Recent

Author Topic: Want to make a custom component that is like a TCommondialog  (Read 3273 times)

Girlbrush

  • Jr. Member
  • **
  • Posts: 65
Want to make a custom component that is like a TCommondialog
« on: March 31, 2017, 09:19:08 am »
I have a Form that I would like to add to a package as a component, but which isn't inserted on the target Form as a Form, but a button that's not visible at runtime (like TOpenDialog).

My Form would then pop-up (it's a visual time picker) when called through code.

All examples I could find about custom components use things like TEdit or TComboBox...
Any pointers in the right direction welcome..

EDIT: Looks like I have to separate the Form from the component.   %)
« Last Edit: March 31, 2017, 09:26:30 am by Girlbrush »
Getting back into programming after 8+ years.

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Want to make a custom component that is like a TCommondialog
« Reply #1 on: March 31, 2017, 10:16:19 pm »
You can take a look at TCalendarDialog as an example.

Bart

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Want to make a custom component that is like a TCommondialog
« Reply #2 on: March 31, 2017, 10:17:49 pm »
Here's a timepicker example

Girlbrush

  • Jr. Member
  • **
  • Posts: 65
Re: Want to make a custom component that is like a TCommondialog
« Reply #3 on: April 03, 2017, 08:45:56 am »
Thanks for the tip, Bart!

@howardpc, I have a functioning form with time picker on it, I was wondering how to "transform" it so that it can be used like a dialog (in tab Dialogs). But many thanks anyway :D
Getting back into programming after 8+ years.

 

TinyPortal © 2005-2018