Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
[solve] tvPlanit - how to preselect a ressource?
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
ANN: ODBC DAC under GNU G...
by
Andrey Zubik
[
Today
at 01:14:38 am]
Who uses "caret past EOL"...
by
RayoGlauco
[
Today
at 12:58:45 am]
How to create form in thr...
by
Warfley
[
Today
at 12:35:49 am]
LAMW - simple esc/POS pri...
by
Mongkey
[
Today
at 12:20:54 am]
Clean up at ide/include/i...
by
Bart
[June 02, 2023, 11:10:05 pm]
Fast Base64 encoding/deco...
by
mika
[June 02, 2023, 10:53:10 pm]
discarding an array
by
PascalDragon
[June 02, 2023, 10:51:57 pm]
if then else syntax
by
Kays
[June 02, 2023, 10:45:08 pm]
array of array of type?
by
PascalDragon
[June 02, 2023, 10:31:57 pm]
TSynEdit crashes when loa...
by
domasz
[June 02, 2023, 08:46:13 pm]
[SOLVED] Help for downloa...
by
magleft
[June 02, 2023, 08:30:34 pm]
help choosing laptop
by
Leledumbo
[June 02, 2023, 08:18:27 pm]
TStringGrid : Conflict be...
by
Nel_Fie
[June 02, 2023, 06:17:51 pm]
Changes in "Search Result...
by
Martin_fr
[June 02, 2023, 06:13:01 pm]
How do I set these packag...
by
JuhaManninen
[June 02, 2023, 05:19:28 pm]
How to connect from Inter...
by
mercurhyo
[June 02, 2023, 04:59:20 pm]
ODBC System DSN connected...
by
Jonvy
[June 02, 2023, 03:46:19 pm]
Are We Dead Yet?
by
Warfley
[June 02, 2023, 02:32:43 pm]
[Solved] Letters chopped ...
by
jamie
[June 02, 2023, 01:15:30 pm]
Best way to delete an ins...
by
furious programming
[June 02, 2023, 12:57:26 pm]
first generic attempt
by
Paolo
[June 02, 2023, 11:11:04 am]
CEF dynamic library canno...
by
myisjwj
[June 02, 2023, 10:10:59 am]
lhelp not working on Linu...
by
marcov
[June 02, 2023, 09:09:08 am]
Browser Automation with s...
by
TRon
[June 02, 2023, 07:29:31 am]
help exporting 2 data col...
by
howardpc
[June 02, 2023, 06:32:47 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [solve] tvPlanit - how to preselect a ressource? (Read 367 times)
Nicole
Hero Member
Posts: 745
[solve] tvPlanit - how to preselect a ressource?
«
on:
February 04, 2023, 10:40:58 am »
In my tvPlanit calender are 2 ressources.
On form1.create I want to be selected the one, which is NOT.
I tried to change this by
TvPlanItFrame.VpResourceCombo1.ItemIndex:=1;
with no effect.
How to do it?
Thanks.
«
Last Edit: February 04, 2023, 05:29:07 pm by Nicole
»
Logged
wp
Hero Member
Posts: 10857
Re: tvPlanit - how to preselect a ressource?
«
Reply #1 on:
February 04, 2023, 11:54:40 am »
In all my test programs I have these lines to pre-select a given resource:
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
FormCreate
(
Sender
:
TObject
)
;
begin
if
VpIniDatastore1
.
Resources
.
Count
>
0
then
VpIniDatastore1
.
Resource
:
=
VpIniDatastore1
.
Resources
.
Items
[
0
]
;
end
;
Logged
Nicole
Hero Member
Posts: 745
Re: [solve] tvPlanit - how to preselect a ressource?
«
Reply #2 on:
February 04, 2023, 05:31:04 pm »
Thank you so much. This works.
And this without the vague bad feeling of my own solution, what would happen, if the datastore is empty.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
[solve] tvPlanit - how to preselect a ressource?
TinyPortal
© 2005-2018