我想制作一个计算器并将其添加到Windows 7开始菜单中,该菜单可以在搜索文本框中计算函数.例如,我在搜索文本框中写"2*2 =",它显示"2*2 = 4".
我不知道怎么能这样做:(
Microsoft有没有这方面的API?
我正在构建一个wpf metro风格的应用程序,但是首先,我需要在Windows 7和.NetFramework 4.0中创建类似于listbox的Windows 8启动屏幕.
我现在使用了Listbox和Wrappanel,但是你看到它并不清楚!

请帮我填空白格.
编辑
更改按钮的位置

我的应用程序中有一个WebBrowser,并在其中显示一些页面.
但我无法停止导航进度,无法在WebBrowser历史记录中执行Back and Forward
请帮我.
我用这个:
Application.Minimize;
Run Code Online (Sandbox Code Playgroud)
在Vcl delphi应用程序中,但在Firemonkey中我得到了Undeclared识别错误.
如何最小化我的firemonkey表格?
我想使用Telegram.Bot库发送照片,但它不起作用!
这是我的代码:
private void btnSendImage_Click(object sender, RoutedEventArgs e)
{
var Bot = new Telegram.Bot.Api(token);
Task<Telegram.Bot.Types.Update[]> res = Bot.GetUpdates();
List<string> users = GetIds();
foreach (var update in res.Result)
{
if (!users.Contains("" + update.Message.Chat.Id))
{
AddId("" + update.Message.Chat.Id);
}
}
users = GetIds();
foreach (var item in users)
{
if (item.Length > 0)
{
var rep = Bot.SendPhoto(Convert.ToInt32(item), txtImagePath.Text, txtMessage.Text);
}
}
}
Run Code Online (Sandbox Code Playgroud)
和 txtImagePath.text= "D:\Projects\Telegram Bot\Telegram Bot\bin\Debug\4.jpg";
我测试了它,Bot.SendMessage它工作正常,但我不能发送照片!
在VCL表单中我使用WM_SYSCOMMAND,但在firemonkey中它是未声明的.
我测试这段代码:
procedure TForm4.dragPanelMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Single);
begin
isDraging := true;
X0 := X;
Y0 := Y;
end;
procedure TForm4.dragPanelMouseMove(Sender: TObject; Shift: TShiftState;
X, Y: Single);
begin
if isDraging then
begin
Form4.Left := Trunc(Form4.Left + X - X0);
Form4.Top := Trunc(Form4.Top + Y - Y0);
end;
end;
procedure TForm4.dragPanelMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Single);
begin
isDraging := False;
end;
Run Code Online (Sandbox Code Playgroud)
这是有效的,但只是为了缓慢的移动!
如何在Firemonkey中移动表单?
我编写了一个在我的系统上工作正常的应用程序,但从昨天开始我就意识到它不适用于其他计算机.
这是用户系统中发生的错误:
EReadError error
Error reading
bmpAnimation.AnimationBitmap.PNG: Access violation at address 009BBCAC in
module 'Autorun.exe'. Read of address 000000000
Run Code Online (Sandbox Code Playgroud)
我使用madExcept,这是它的错误报告:
date/time : 2013-04-13, 13:54:14, 962ms
computer name : ----
user name : ---
registered owner : ----
operating system : Windows 8 x64 build 9200
system language : Persian
system up time : 5 days 5 hours
program up time : 291 milliseconds
processors : 8x Intel(R) Core(TM) CPU Q 720 @ 1.60GHz
physical memory : 2182/4025 MB (free/total)
free …Run Code Online (Sandbox Code Playgroud) c# ×6
delphi ×3
delphi-xe3 ×3
firemonkey ×3
silverlight ×2
.net ×1
browser ×1
c++ ×1
calculator ×1
javascript ×1
permissions ×1
registry ×1
security ×1
telegram-bot ×1
winapi ×1
windows ×1
windows-8 ×1
wpf ×1
xaml ×1