Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2007.09.23;
Скачать: [xml.tar.bz2];

Вниз

Problem with Vista   Найти похожие ветки 

 
Dodfr   (2007-02-08 13:41) [0]

Hello,

I just installed vista and tested my different Kol and VCL projects.

I have many compatibility issues and solved some but not all (by the way if anybody knows a web site listing all API/Regsitry Database/File management compatibility issues I am very interested).

One problem is that whenever my forms do not appear in TaskBar, they now appear in TaskManager"s application list. Any idea how to hide them like they did in 2K/XP ? Seems that Applet.visible:=false is not enought anymore.

Regards.


 
Vladimir Kladov   (2007-02-08 21:29) [1]

I do not think that appearing in the Task Manager is a bad think, I am sure that it is a good thing, very good. System must not allow to hide any normal application at all from user"s and administrators. May be except services. But services also must be listed in the service list.


 
Dodfr   (2007-02-09 11:11) [2]

I don"t want all form to be hidden, the main form have to be shown in Task Manager, that is normal, but I also have 5 extra forms I don"t want (no need) to be also showed. Since Vista theses extra forms appear in Task Manager"s list.


 
thaddy   (2007-02-11 15:52) [3]

Are you shure?

program Project1;
uses
 kol;
var
 f1,f2:Pcontrol;
begin
 Applet :=  NewApplet("Test");
 f1 := Newform(Applet,"form1");
 f2 := Newform(Applet,"form2");
 run(Applet);
end.


This works perfectly (only project is shown, not the individual forms) under Vista. I am inclined to think you are making a mistake by having one of your forms equal Applet, i.e. Applet :=Form1 or something. This is always been a mistake, not only under Vista.
Tested this with BDS2006 with all patches and under Vista Ultimate Edition.


 
Dodfr   (2007-02-12 11:50) [4]

Hi taddy,

Can you explain ? I used to add an Applet over the main form only (I think I have read it in in some KOL documentation), but if it is not the good way I"ll be glad to learn better way.


 
Dodfr   (2007-02-12 14:03) [5]

In fact, I already have the Applet on each form (I dropped Applet MCK on main form) so xx_0.inc contains

 Applet := NewApplet( "TinyResMeter" );
 Applet.GetWindowHandle;
 Applet.Visible := False;

And in the main OnCreate form"s event KOLForm1FormCreate I do the extra forms runtime creation :

for i:=1 to 5 do
AFormView[i]._form:=NewForm(Applet, "FormView"+int2str(i) ).SetPosition( 0, 0 ).SetClientSize( 0, 0);

So my 5 extra forms are created using main Applet.


 
thaddy   (2007-02-12 18:57) [6]

So, why does my code work? and yours doesn"t? (Try my example)
I suspect there"s a bug in MCK, but I do not use that as you know.

I found that KOL is actually better with Vista than the VCL, because it handles - amongst other things- Windowclass creation much better.

( For the VCL this is btw corrected in the next version of Delphi :) )

If you have more issues, I am glad to help, but only with snippets because I am really overworked right now :(



Страницы: 1 вся ветка

Форум: "KOL";
Текущий архив: 2007.09.23;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.043 c
15-1187797221
Неудачник
2007-08-22 19:40
2007.09.23
Программисты – это армия физиков-неудачников


15-1187855606
pavel_guzhanov
2007-08-23 11:53
2007.09.23
формат jpg


2-1188318256
ElectriC
2007-08-28 20:24
2007.09.23
Блокировка компьютера


9-1143015328
Nic
2006-03-22 11:15
2007.09.23
Шейдеры: с чего начать?


5-1161366739
Zurius
2006-10-20 21:52
2007.09.23
Отображения длинной строки в ComboBox





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 Spanish 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
Английский Французский Немецкий Итальянский Португальский Русский Испанский