Recent

Author Topic: Question about forms  (Read 2781 times)

toyvoy

  • New Member
  • *
  • Posts: 11
Question about forms
« on: August 17, 2017, 03:50:13 pm »
hi, I am writing a program, and I am filling the form up , I need more space to go on.
Is there a way to make a connection to another form, or any other solutions?

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Question about forms
« Reply #1 on: August 17, 2017, 03:59:08 pm »
Use TPageControl to have more pages or use TSCrollBox to scroll a Panel inside the window.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Question about forms
« Reply #2 on: August 17, 2017, 04:05:02 pm »
or set the form's autoscroll property to true to allow for an extended surface.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

toyvoy

  • New Member
  • *
  • Posts: 11
Re: Question about forms
« Reply #3 on: August 17, 2017, 04:40:40 pm »
Use TPageControl to have more pages or use TSCrollBox to scroll a Panel inside the window.
can I change the color of the tab pages?
i want to match the tab's color with my main page's.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Question about forms
« Reply #4 on: August 17, 2017, 04:43:17 pm »
Use TPageControl to have more pages or use TSCrollBox to scroll a Panel inside the window.
can I change the color of the tab pages?
i want to match the tab's color with my main page's.
No. the default pagecontrol widget only uses the underline OS's theme only.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

toyvoy

  • New Member
  • *
  • Posts: 11
Re: Question about forms
« Reply #5 on: August 17, 2017, 04:52:28 pm »
Use TPageControl to have more pages or use TSCrollBox to scroll a Panel inside the window.
can I change the color of the tab pages?
i want to match the tab's color with my main page's.
No. the default pagecontrol widget only uses the underline OS's theme only.
There is a ''image'' option on the tab page , what will that do? how to use it?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Question about forms
« Reply #6 on: August 17, 2017, 04:56:47 pm »
Use TPageControl to have more pages or use TSCrollBox to scroll a Panel inside the window.
can I change the color of the tab pages?
i want to match the tab's color with my main page's.
No. the default pagecontrol widget only uses the underline OS's theme only.
There is a ''image'' option on the tab page , what will that do? how to use it?
there is no Image in my installation there is an ImageS property that is linked to a timagelist and I think it is used to provide icons for the tabs only.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

RAW

  • Hero Member
  • *****
  • Posts: 868
Re: Question about forms
« Reply #7 on: August 17, 2017, 05:27:42 pm »
Quote
can I change the color of the tab pages?
If you do your own "PageControl" for example with TPanels then you can change whatever you want...
Paint on TPanel or use a TLabel for the upper left text... or use TButtons or TPanels as buttons...

If you want to program something for the future then it's probably a good idea to use BGRAControls. Then you can use nice looking Labels, Buttons or Panels... Or whatever with semitransparent pixels or draw yourself with BGRABitmap whatever you want... Nowadays people like to see nice animated things and nice semitransparent pixel stuff...
« Last Edit: August 17, 2017, 06:52:06 pm by RAW »
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

toyvoy

  • New Member
  • *
  • Posts: 11
Re: Question about forms
« Reply #8 on: August 18, 2017, 05:10:27 am »
If you do your own "PageControl" for example with TPanels then you can change whatever you want...
Paint on TPanel or use a TLabel for the upper left text... or use TButtons or TPanels as buttons...

If you want to program something for the future then it's probably a good idea to use BGRAControls. Then you can use nice looking Labels, Buttons or Panels... Or whatever with semitransparent pixels or draw yourself with BGRABitmap whatever you want... Nowadays people like to see nice animated things and nice semitransparent pixel stuff...
[/quote]
I think the best way for me is to use TPanels and thanks you all for helping!

 

TinyPortal © 2005-2018