Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How to save the cursor from a resource to a variable in a file (cur)? Find similar branches


Delphimun   (2001-12-15 13:43) [0]

I upload like this:
var Curs: HCursor; CN: string;
begin
CN: = "CUR" + # 0;
{"CUR" is Name from Res file}
Curs: = LoadCursor (hInstance, @ CN [1]);
Screen.Cursors [crHandPoint]: = Curs;
Now I need to save this cursor to disk.



Gayrus   (2001-12-20 03:36) [1]

And I save like this :):
var R: TResourceStream;
begin
R: = TResourceStream.Create (hInstance, "CUR", "CURSOR");
R.SaveToFile ("cur1.cur");
R.Free;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.81 MB
Time: 0.025 c
14-22327
fliz
2001-11-05 15:39
2002.01.08
and they say the day after tomorrow is a holiday?


14-22403
Burmistroff
2001-11-11 20:13
2002.01.08
Super Delphi Reference -2. Your opinion, please.


1-22220
Kandyl
2001-12-16 15:10
2002.01.08
Как запретить удалять какую-либо папку, не вися в трее?


1-22096
Mikhalyov Dmitry
2001-12-19 15:55
2002.01.08
About TObject in events


1-22119
Socol
2001-12-15 10:45
2002.01.08
Help with two questions!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish