Cannot activate my reminder forms whose parent is the desktop. |
|
delphi_newfish
一般會員 發表:1 回覆:0 積分:0 註冊:2006-11-11 發送簡訊給我 |
Hi Everyone,
Can't input Chinese right now...sorry. I'm working on a little reminder system which will popup reminder forms from time to time. I create the reminder forms giving the desktop window handle to them as their parent, the code looks like this: constructor TReminderBoxForm.CreateWithTask(task:variant); begin CreateParented(GetDesktopwindow); messageLable.Caption := task.Description; end; Code used to display the form is like this: reminderBox := TReminderBoxForm.CreateWithTask(pyTask); reminderBox.Show; The BorderStyle is set to bsNone, and I can activate it by clicking on the titlebar or anywhere in the window. The buttons in the forms work fine, but the combobox control is not responding to user input/action. Setting the BorderStyle fixes the problem, but all other styles do not work, and I need it to be bsNone. Anybody have an idea why this is happening? Thanks, |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |