Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
ATTabs: lite tab control
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
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[
Today
at 12:50:46 am]
what to do if my target M...
by
Laksen
[
Today
at 12:49:12 am]
For-in loop over constant...
by
ASerge
[
Today
at 12:36:09 am]
Converting a string/index...
by
TRon
[April 18, 2024, 11:56:37 pm]
exclude ALL packages from...
by
PascalDragon
[April 18, 2024, 11:33:29 pm]
Demoscene The Champs Crac...
by
KodeZwerg
[April 18, 2024, 11:29:50 pm]
Poll: Watches and Display...
by
440bx
[April 18, 2024, 10:55:14 pm]
Database standards OR Am ...
by
dseligo
[April 18, 2024, 10:50:26 pm]
BUG REPORT: Unable to gen...
by
PascalDragon
[April 18, 2024, 10:24:23 pm]
How to: create DLL file f...
by
paule32
[April 18, 2024, 10:23:59 pm]
Have anyone develop UEFI ...
by
PascalDragon
[April 18, 2024, 10:14:15 pm]
Lazarus for Windows on aa...
by
PascalDragon
[April 18, 2024, 10:09:10 pm]
The weird Rewrite bug
by
PascalDragon
[April 18, 2024, 09:58:53 pm]
Assign (textfile) not com...
by
PascalDragon
[April 18, 2024, 09:51:50 pm]
Question for people who h...
by
PascalDragon
[April 18, 2024, 09:44:32 pm]
Linux Workspaces -- StayO...
by
AmatCoder
[April 18, 2024, 08:34:20 pm]
I just released a commerc...
by
Seenkao
[April 18, 2024, 07:57:21 pm]
Access violation when re-...
by
TRon
[April 18, 2024, 07:37:31 pm]
[SOLVED] assembler name i...
by
TRon
[April 18, 2024, 07:26:33 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 18, 2024, 07:01:52 pm]
Step-into the field sette...
by
Martin_fr
[April 18, 2024, 06:54:19 pm]
[Fun Fact] PNG and Micros...
by
Ten_Mile_Hike
[April 18, 2024, 06:24:19 pm]
HTTP/2+HTTP/1.1+WebSocket...
by
iLya2IK
[April 18, 2024, 06:14:30 pm]
Improvement of TFPTimerTh...
by
AlexTP
[April 18, 2024, 05:56:38 pm]
Arabic text, problem on L...
by
nouzi
[April 18, 2024, 05:21:27 pm]
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: ATTabs: lite tab control (Read 15830 times)
AlexTP
Hero Member
Posts: 2402
ATTabs: lite tab control
«
on:
May 21, 2014, 04:56:55 pm »
I want to make such nice TabControl, maybe like ST2 editor.
I don't want OS themed control, only my custom painted with nice look.
I start at
https://github.com/Alexey-T/ATTabs
Sample attached
«
Last Edit: May 26, 2014, 04:50:41 am by Alex22
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
kapibara
Hero Member
Posts: 610
Re: TabControl: my attempt needed?
«
Reply #1 on:
May 22, 2014, 04:20:25 am »
Nice!
I'm interested in such a control. Can it be used borderless? Or maybe thats just an issue with PageControls.
Some thoughts:
Associating an object with a tab (using Tabs.Objects) is something that Lazarus page/tab controls dont do at this time. Maybe your control will?
Tabs.Object[idx]:=MyControl
Flipping the page could then switch to the associated control stored in the Tabs.Objects[idx]
Or simpler, switching visible control could be done programmatically in the OnChange event. At the moment I'm using a separate list for storing the controls that will be shown when a tab is selected. But storing them as an object in the tab list feels more optimal.
«
Last Edit: May 22, 2014, 05:09:34 am by kapibara
»
Logged
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit
r_1gm
New Member
Posts: 26
Re: TabControl: my attempt needed?
«
Reply #2 on:
May 22, 2014, 07:41:19 am »
Hi Alex,
Maybe you can improve Lazarus CustomDrawn control component.
Logged
AlexTP
Hero Member
Posts: 2402
Re: TabControl: my attempt needed?
«
Reply #3 on:
May 22, 2014, 05:28:20 pm »
Of course: each tab will have it's data, which is
- Caption
- Hilite color (default clNone - change to show colored label on tab)
- TObject
- Modified (bool for future, maybe I show some mark ltr)
EARLY early!! alpha is here:
https://github.com/Alexey-T/ATTabs
I start with Delphi: NO Lazarus yet!
I port it later
Logged
CudaText editor
-
ATSynEdit
-
More from me
kapibara
Hero Member
Posts: 610
Re: TabControl: my attempt needed?
«
Reply #4 on:
May 22, 2014, 06:45:06 pm »
Tried the alpha, it looks fine. Good balance between custom look and standard.
It would be useful if the control supports BorderStyle = bsNone. Lazarus TabControl dont do that.
You probably already planned to have a
TabPosition property, tpBottom etc.
Looking forward to the next version.
Logged
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit
AlexTP
Hero Member
Posts: 2402
Re: TabControl: my attempt needed?
«
Reply #5 on:
May 22, 2014, 07:41:06 pm »
What do u mean (BorderStyle bsNone)? i don't paint any border. You may add "Issue" at Github. better discuss border-style there.
Logged
CudaText editor
-
ATSynEdit
-
More from me
AlexTP
Hero Member
Posts: 2402
Re: atTabs: TabControl in Sublime style
«
Reply #6 on:
May 22, 2014, 11:14:17 pm »
1st version OK for Lazarus, if you open Demo.dpr file, add Interfaces unit (as IDE tells! do it.) and run, you ll see working tab app.
I tested on Win. Of coz, I test later on M+L
«
Last Edit: May 22, 2014, 11:16:24 pm by Alex22
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
andersonscinfo
Full Member
Posts: 132
Re: atTabs: TabControl in Sublime style
«
Reply #7 on:
May 23, 2014, 12:51:26 am »
Tested on Linux using Lazarus with FPC 2.6.2 RC1 1.2, ran cool, just seemed a bit slow, but it works perfect.
Att
Anderson Junior
Logged
AlexTP
Hero Member
Posts: 2402
Re: atTabs: TabControl in Sublime style
«
Reply #8 on:
May 23, 2014, 01:23:06 am »
Good- tkx! I test Lin later. No even Linux here
I ll add buttons <<, >> to scroll Long list.
Logged
CudaText editor
-
ATSynEdit
-
More from me
andersonscinfo
Full Member
Posts: 132
Re: atTabs: TabControl in Sublime style
«
Reply #9 on:
May 23, 2014, 02:43:16 am »
Getting this Very beautiful, congratulations.
Att.
Anderson Junior
Logged
kapibara
Hero Member
Posts: 610
Re: atTabs: TabControl in Sublime style
«
Reply #10 on:
May 23, 2014, 05:58:07 am »
Alex22: Ah, there is no border. sorry I missed that.
Seems to work fine under Windows 7 and FPC 2.7.1 - Lazarus SVN 44339
Logged
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit
AlexTP
Hero Member
Posts: 2402
Re: atTabs: TabControl in Sublime style
«
Reply #11 on:
May 24, 2014, 01:19:49 am »
Im near beta.Updated. Buttons < > don't work yet (and scrollin)
Anyone may test it on Mac
?? Please. Does it work, slow or not
Logged
CudaText editor
-
ATSynEdit
-
More from me
kapibara
Hero Member
Posts: 610
Re: atTabs: TabControl in Sublime style
«
Reply #12 on:
May 24, 2014, 06:37:07 am »
Good progress. However I should report that in the latest version, the TabControl as a whole flickers when the mouse moves over it. (here: Lazarus/fpc 2.7.1/win7)
Logged
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit
zeljko
Hero Member
Posts: 1596
Re: atTabs: TabControl in Sublime style
«
Reply #13 on:
May 24, 2014, 05:10:16 pm »
Works nice with Qt LCL under linux, mswin and mac.
Logged
AlexTP
Hero Member
Posts: 2402
-
«
Reply #14 on:
May 24, 2014, 05:12:13 pm »
Thanks for testin (I don't have a mac)
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
2
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
ATTabs: lite tab control
TinyPortal
© 2005-2018