| View previous topic :: View next topic |
| Author |
Message |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Jul 19, 2007 10:23 am Post subject: Delphi questions... |
|
|
How do I add options on Drop Down boxes?
i want Magican, Warrior, Bowman, Thief or begginer. ( lol)
and another 1 of: Scania, Bera, Broa, Windia, Khaini, Bellocan or Mardia
2nd question.. how do i add a picture and labels on button click?
i mean theyr not visible untill i click that button and theyr value is World.text value or Class.text value..?
started to learn delphi today
edit: i also would like to do "Copy image" button like in simsgy's maple baloon =)
thx
|
|
| Back to top |
|
 |
magicalimp Expert Cheater
Reputation: 0
Joined: 03 Dec 2006 Posts: 105
|
Posted: Thu Jul 19, 2007 10:51 am Post subject: |
|
|
1. Combobox
2. Visible (True/False)
3. Look up TClipBoard
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Thu Jul 19, 2007 11:07 am Post subject: |
|
|
1. i know but when i open it i have no options... =\
2. i already done it by myself =D
3. this if for combobox?
edit:
i did the TClipBoard procdure and now what do i write so ill have new options?
|
|
| Back to top |
|
 |
magicalimp Expert Cheater
Reputation: 0
Joined: 03 Dec 2006 Posts: 105
|
Posted: Thu Jul 19, 2007 3:10 pm Post subject: |
|
|
In the properties of the combobox, go to Items.
Click the ... after (TStrings) and you should be able to modify them.
Read the selected String by doing ComboBox1.Text
To copy an image, just have a button do this:
Clipboard.Assign(Image1.Picture);
Image1.Picture can be any variety of images, such as:
TButton.Glyph or TBitmap
Make sure to add Clipbrd to the uses.
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Fri Jul 20, 2007 3:14 am Post subject: |
|
|
if u want buttons with pictures
use SpeedButtons (additional tab, with a lightning mark on them)
then look at the object inspector click at glyph, there should be 3 small dots click it... then a thing pops up, click load, choose ur pic, click ok
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Jul 20, 2007 7:32 pm Post subject: |
|
|
| magicalimp wrote: | In the properties of the combobox, go to Items.
Click the ... after (TStrings) and you should be able to modify them.
Read the selected String by doing ComboBox1.Text
To copy an image, just have a button do this:
Clipboard.Assign(Image1.Picture);
Image1.Picture can be any variety of images, such as:
TButton.Glyph or TBitmap
Make sure to add Clipbrd to the uses. |
will it copy the label's text to?
cuz u saw my program, it tells the name, lvl, fame, guild etc...
like in simsgy's maple baloon or should i use something else so it'll copy instead a label?
edit:
it doesnt copy the labels...
so do i need top copy also the labels and would it work?
and thx
edit:
it doesnt work on the labels so i tried coping Label1.Label or Label1.Font and it doesnt work =\
|
|
| Back to top |
|
 |
magicalimp Expert Cheater
Reputation: 0
Joined: 03 Dec 2006 Posts: 105
|
Posted: Sat Jul 21, 2007 3:13 am Post subject: |
|
|
| You can always use GetFormImage as a method to copy the whole form. Hmm... I'll try to find a way to copy only a selected part of it.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sat Jul 21, 2007 6:17 pm Post subject: |
|
|
can i copy text from an edit box? or memo or something? i got an idea for a program that might work =)
i mean copying text as text and not like an image... is this possible?
|
|
| Back to top |
|
 |
|