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
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
"Mario & Luigi" (1994-200...
by
paule32
[
Today
at 01:09:14 pm]
Compare two text lines an...
by
dbannon
[
Today
at 12:29:47 pm]
Setting up an ARM embedde...
by
Ruptor
[
Today
at 12:14:28 pm]
Fpcupdeluxe
by
heejit
[
Today
at 11:51:44 am]
LMath and Components 0.6....
by
wp
[
Today
at 11:40:02 am]
[S]Call anchor editor for...
by
Martin_fr
[
Today
at 11:32:30 am]
Bug if FileListBox.Sorted...
by
hannaconner
[
Today
at 11:19:17 am]
how to create different c...
by
paule32
[
Today
at 10:49:43 am]
new private messages fly ...
by
Nitorami
[
Today
at 10:14:05 am]
[SOLVED] SQLite query to ...
by
Zvoni
[
Today
at 09:30:48 am]
Sharing utilities
by
lucabertoncini
[
Today
at 09:01:00 am]
Triple Gosper Space Filli...
by
Thaddy
[
Today
at 07:17:33 am]
Program vs Simple Program...
by
ASBzone
[
Today
at 06:43:56 am]
Is Lazarus still serious ...
by
dbannon
[
Today
at 06:09:15 am]
replace the Executable St...
by
paule32
[
Today
at 04:25:38 am]
outsource RTTI
by
paule32
[
Today
at 04:22:43 am]
Lazarus Tool for creating...
by
JuhaManninen
[
Today
at 12:39:37 am]
How to control subform: S...
by
madref
[July 13, 2025, 11:35:23 pm]
Building warnings ?
by
madref
[July 13, 2025, 11:26:32 pm]
Need help testing demonst...
by
Gustavo 'Gus' Carreno
[July 13, 2025, 10:41:44 pm]
trunc builtin function is...
by
jamie
[July 13, 2025, 10:01:41 pm]
Circumvent the assignment...
by
Thaddy
[July 13, 2025, 08:31:45 pm]
activex.pp DosDateTimeToV...
by
nanobit
[July 13, 2025, 08:23:05 pm]
Searching for current wor...
by
PascalDragon
[July 13, 2025, 07:13:06 pm]
ChatGPT and ObjectPascal ...
by
Joanna
[July 13, 2025, 04:17:12 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: pageconrol drag and drop (Read 3935 times)
Hansvb
Hero Member
Posts: 825
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: 6802
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: 825
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: 6802
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: 825
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