Quote from: pixelink on July 25, 2019, 11:45:39 pmI unchecked it... still no iconsYou unchecked and ... rebuilt the program? Because t doesn't look as if it were theme-less ...
I unchecked it... still no icons
Strange: the TestAll demo has the "Use manifest source" checkbox checked, but still I get the Win95 look on Win10. Only after I uncheck, save, check and save a second time, the Win10 theme does appear.
Anyways.... I don't want to use the Win95 look.... so the icons don't work unless the Manifest is off?
Bug for the manifest option??
Quote from: pixelink on July 26, 2019, 12:11:05 amAnyways.... I don't want to use the Win95 look.... so the icons don't work unless the Manifest is off?In unit Dialogs there is a function "DefaultPromptDialog" which is a pure LCL form and works without the dialogs of the operating system:Code: Pascal [Select][+][-]function DefaultPromptDialog(const DialogCaption, DialogMessage: String; DialogType: longint; Buttons: PLongint; ButtonCount, DefaultIndex, EscapeResult: Longint; UseDefaultPos: boolean; X, Y: Longint): Longint;// widgetset independent implementation, see PromptDialogFunctionUnfortunately it is poorly documented. This is what I found out playing with it:DialogCaption: the caption of the formDialogMessage: the text displayed inside the dialogDialogType: a constant declared in unit LCLType which determines the icon displayed inside the dialog. Use these values: idDialogWarning, idDialogError, idDialogInfo, idDialogConfirm, (idDialogShield - not working on Windows).Buttons: pointer to an array of longint values defining the buttons added; every button will have its default icon. Possible values are declared in unit LCLType as idButtonXXX where XXX can be replaced by OK, Cancel, Help, Yes, No, Close, Abort, Retry, Ignore, All, YesToAll, NoToAll, Open, Save, Shield. It seems that the latter three are not working, at least not on windowsButtonCount: count of elements used in the array to which Buttons pointsDefaultIndex: array index of the button which is pressed with ENTEREscapeIndex: array index of the button which is pressed with ESCUseDefaultPos: place dialog in center or at position given by the following X,Y parametersResult: the idButtonXXX value of the clicked button (but: not all buttons close the form).Example, ready to try:Code: Pascal [Select][+][-]uses LCLType; procedure TForm1.Button1Click(Sender: TObject);var btns: array[0..2] of LongInt = (idButtonOK, idButtonCancel, idButtonHelp); res: LongInt;begin res := DefaultPromptDialog('This is the caption','This is the message of this dialog', idDialogInfo, @btns, 3, 0, 1, true, 0, 0); Caption := 'Dialog result is ' + IntToStr(res);end;