Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
pageconrol drag and drop
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Datatype of Fields in sql...
by
Zvoni
[
Today
at 08:53:09 am]
Is it possible to create ...
by
CM630
[
Today
at 07:32:46 am]
StrMath.pas a String Numb...
by
JgQDev
[
Today
at 07:30:58 am]
We are starting to use La...
by
dbannon
[
Today
at 06:25:04 am]
Fast Canvas Library V1.05...
by
backprop
[
Today
at 03:19:31 am]
TurboBird for FireBird 5
by
maurog
[
Today
at 02:28:10 am]
Status of FPC 3.4.0 or FP...
by
Graeme
[
Today
at 01:53:52 am]
TurboBird IBX
by
maurog
[
Today
at 01:53:39 am]
lazarus structure
by
crownfield
[
Today
at 12:28:23 am]
Delphi Magazine issues 1-...
by
simone
[February 16, 2026, 11:49:11 pm]
LazSerial not found
by
CM630
[February 16, 2026, 10:00:08 pm]
Duplicated icon in the Wi...
by
n7800
[February 16, 2026, 09:31:22 pm]
"PPU file isn't found by ...
by
Martin_fr
[February 16, 2026, 09:29:59 pm]
Reporting a Bug? in Strin...
by
Bart
[February 16, 2026, 06:47:13 pm]
[ANN] fpGUI Toolkit v2.0....
by
cdbc
[February 16, 2026, 06:45:05 pm]
Free Pascal for a small e...
by
devEric69
[February 16, 2026, 06:13:48 pm]
Onguard Win64
by
AgriMensor
[February 16, 2026, 05:55:41 pm]
Duplicate identifier erro...
by
Martin_fr
[February 16, 2026, 04:03:10 pm]
Frustrating Error When us...
by
TYDQ
[February 16, 2026, 02:50:02 pm]
[AGGPas] Difference betwe...
by
wp
[February 16, 2026, 02:15:23 pm]
[AGGPas] Usage of scale m...
by
Roland57
[February 16, 2026, 11:33:08 am]
makefiles
by
valdir.marcos
[February 16, 2026, 11:24:17 am]
ThorVG - test (lightweigh...
by
valdir.marcos
[February 16, 2026, 11:19:41 am]
Problems in drawing an ar...
by
valdir.marcos
[February 16, 2026, 11:18:39 am]
AI to port DBDesigner For...
by
Graeme
[February 16, 2026, 10:26:15 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: pageconrol drag and drop (Read 4034 times)
Hansvb
Hero Member
Posts: 888
pageconrol drag and drop
«
on:
November 02, 2014, 09:00:42 pm »
I a looking for an example of drag and drop a pagecontrol tab of a form on a tab. I want to drag a tab out of the page control en drop it next to the program on the desktop. Is that possible?
Logged
kpeters58
Sr. Member
Posts: 267
Re: pageconrol drag and drop
«
Reply #1 on:
November 03, 2014, 05:38:10 pm »
As what? An image? It will not be easy...
My first thought (if that's good enough for your design dreams):
Create a graphic on the fly, stuff tabsheet's canvas in there, save somewhere and create desktop link for it.
Logged
Lazarus 2.0.4/FPC 3.0.4/Win 64
rvk
Hero Member
Posts: 6944
Re: pageconrol drag and drop
«
Reply #2 on:
November 03, 2014, 05:51:54 pm »
As what? A form? That's much easier to do...
Please specify exactly what you're trying to accomplish.
If you want to drag a tab out of a page control and let it become a form you could also look into using docked forms. But without exactly knowing what you want, we can't show you the best way to do
it
.
Logged
Hansvb
Hero Member
Posts: 888
Re: pageconrol drag and drop
«
Reply #3 on:
November 03, 2014, 07:15:42 pm »
Situation: I have a pagecontrol on a form. Each tab has a few buttons which execute predifned query's. On the first tab the first query acts like a filter for the query's on the other tabs. So i want to drag the tab next to the window so the tab becomes a new window. Then you can see te "filter query" when you are on other tabs.
So i want to drag it and then the tab must act like a form
Logged
rvk
Hero Member
Posts: 6944
Re: pageconrol drag and drop
«
Reply #4 on:
November 03, 2014, 09:50:27 pm »
If you really want the separate tab to act as a form (which you can drag
"off"
the form) you'll need to put the logic of that tab in a separate form. You can dock (or embed) that form in a tab of your pagecontrol.
But... the forms wouldn't be physically connected to each other (and you can't
program
everything in one form). It might be a better idea (reading your
"situation"
) to create an expandable panel in your original form. That way that panel would still be physically connected to your form and you won't need to drag it exactly next to each other.
So you could create a hidden (right or left aligned) panel and when you need it to become visible (or with a big button) you increase the width of the form by the panel-width and make the panel visible (essentially creating a panel which expands the form when needed).
(Just an idea)
(I have done this with a order-screen where there is a filter-panel which pops in and out with the F3/search-key)
Logged
howardpc
Hero Member
Posts: 4144
Re: pageconrol drag and drop
«
Reply #5 on:
November 04, 2014, 12:31:21 am »
The attached project shows a very simplistic way to have a tabsheet panel that can be dragged on and off a pagecontrol to sit beside it, or to live within it, without disturbing other tabsheets. You may be able to adapt this idea to your needs.
Logged
Hansvb
Hero Member
Posts: 888
Re: pageconrol drag and drop
«
Reply #6 on:
November 04, 2014, 09:29:20 pm »
thanks, i tried it. It's not what i had in mind, but i will look at it.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
pageconrol drag and drop
TinyPortal
© 2005-2018