小编Ros*_*erg的帖子

是否可以避免TRichEdit在单击按钮时失去焦点(例如Bold)?

使用delphi和rich edit,我需要按照我正在编写的这个编辑器的行来复制一些东西,当你选择一个文本并按下Bold按钮时,文本仍然被选中而不是取消选择并失去焦点.

我怎样才能做到这一点?

谢谢.

delphi controls focus trichedit

1
推荐指数
1
解决办法
739
查看次数

将'StepIt'从ProgressBar替换为cxProgressBar

我刚刚用cxProgressBar替换了我的常用进度条,但我注意到它没有方法'StepIt'.

我用这个替换了StepIt:

progressbar1.Position := progressbar1.Position+1;
Run Code Online (Sandbox Code Playgroud)

我不认为这是最好的选择,因为Progress比StepIt慢得多.

要设置最大值,我将获得sql表上将要转换为本地缓存的字段总数.

我从未尝试过除了常见的ProgressBar以外的任何东西,这就是我遇到这个问题的原因.

谢谢.

delphi devexpress progress-bar

1
推荐指数
1
解决办法
2157
查看次数

Angular 6 - 访问变量外部函数不起作用

export class EditClientComponent implements OnInit {

 apiEndPoint: 'http://localhost:1337/upload';

 fileChange(event) {
 //...
    this.http.post(`${this.apiEndPoint}`, formData, httpOptions)
 //...
 }
}
Run Code Online (Sandbox Code Playgroud)

我得到一个奇怪的错误:

status: 404, statusText: "Not Found", url: "http://localhost:4100/undefined"...

这意味着,它不读apiEndPoint 所有,如果我取代${this.apiEndPoint}与实际的URL,它的工作原理.

我能做什么?

angular

1
推荐指数
1
解决办法
285
查看次数

Laravel - 将请求传递给队列作业

我无法将请求传递给队列handle()作业

 public function handle(Request $request)                                                                                                                                 |  package.json*
 {                                                                                                                                                                |  phpunit.xml*
     Log::alert('starting process');                                                                                                                              |  readme.md*
     Log::alert($request);                                                                                                                                        |  server.php*
                                                                                                                                                                  |~
     if (strpos($request->status, 'Approved') !== false) {                                                                                                        |~
         $name = Name::where('mId', '=', $request->mId)->get()->first();                                                                                          |~
                                                                                                                                                                  |~
         $client = new Client();                                                                                                                                  |~
                                                                                                                                                                  |~
         $client->request('POST', 'http://127.0.0.1:5000/api/email', [                                                                                                                                                                                                                                            |~
             'json' => [                                                                                                                                          |~
                 'type' => $request->type,                                                                                                                        |~
                 'name' => $name->name,                                                                                                                  
             ]                                                                                                                                                    |~
         ]);                                                                                                                                                      |~
     }
Run Code Online (Sandbox Code Playgroud)

就这样,$request空空如也。如果我删除Request并只离开,handle($request)我会得到这个堆栈:

Too few arguments to function App\Jobs\PostAlfred::handle(), 0 passed and exactly 1 expected in …

php laravel

1
推荐指数
2
解决办法
6563
查看次数

标签 统计

delphi ×2

angular ×1

controls ×1

devexpress ×1

focus ×1

laravel ×1

php ×1

progress-bar ×1

trichedit ×1