Search found 212 matches
- Mon Aug 22, 2011 9:31 pm
- Forum: Windows
- Topic: [Solved]How to use windowsShortcut.ec?
- Replies: 6
- Views: 55975
Re: How to use windowsShortcut.ec?
Hi Jerome, Thanks.It is perfect. BWT,I noticed you used String instead of char* in the snippet,what's a String,what can it do?I want to learn more.Thanks. Also I know there is a FileDialog which allow us to pick a file from a dialog window.Is there also a DirectoryDialog to allow select a folder?Tha...
- Mon Aug 22, 2011 7:57 pm
- Forum: Compiler Errors
- Topic: [Solved]How to call OS api?
- Replies: 12
- Views: 66322
Re: How to call OS api?
Yes,after assign an icon file to the application,the nativeDecorations will set back to false.At this point,if you click any sub property under the icon tree or delelte the previous assigned icon file then ENTER,IDE crashs.
Also noticed nativeDecoration can't set to true in the latest snapshot.
Also noticed nativeDecoration can't set to true in the latest snapshot.
- Mon Aug 22, 2011 7:47 pm
- Forum: General Help
- Topic: [Solved]Adding additional include path lead to IDE crash
- Replies: 14
- Views: 45632
Re: Adding additional include path lead to IDE crash
Hi Jerome, Two issues here: 1.The Additional Include Dierectory--The IDE won't crash any more,but still can not add an include path to the listbox ,anything added in,still need to type in the editbox. 2.The Piano and PlaySound sample works now.But the sound is so weak that I counld hardly hear.Don't...
- Mon Aug 22, 2011 7:29 pm
- Forum: Windows
- Topic: [Solved]How to use windowsShortcut.ec?
- Replies: 6
- Views: 55975
Re: How to use windowsShortcut.ec?
Thanks Jerome,it compiles!
But sorry for my stupid.The CreateLink params seems wrong(I mean I have no idea how to set the right params) since I did not create a shortcut after the program is running.
But sorry for my stupid.The CreateLink params seems wrong(I mean I have no idea how to set the right params) since I did not create a shortcut after the program is running.
- Mon Aug 22, 2011 4:51 am
- Forum: Windows
- Topic: [Solved]How to use windowsShortcut.ec?
- Replies: 6
- Views: 55975
[Solved]How to use windowsShortcut.ec?
I want to create a shortcut for my ecere program.Given below code: import "ecere" import "windowsShortcut"//import "my/path/to/ecere/extra/windowsShortcut" ->the same ... Button myButton { ... bool NotifyClicked(Button button,int x,int y,Modifier mods) { CreateLink(&quo...
- Mon Aug 22, 2011 4:08 am
- Forum: 欢迎使用中文讨论
- Topic: Code Snippets 2:List Files In Dir
- Replies: 1
- Views: 29822
Code Snippets 2:List Files In Dir
Purpose:Basic usage of FileListing class and SavingDataBox-DirPath,select a folder ,iterate through it and list all files under it and its sub folders,fill full pathname of them into the editBox. import "ecere" class Form1 : Window { text = "Form1"; background = activeBorder; b...
- Mon Aug 22, 2011 4:04 am
- Forum: Compiler Errors
- Topic: [Solved]How to call OS api?
- Replies: 12
- Views: 66322
Re: How to call OS api?
For Icon just tested,if I assign an icon file to the form,the nativeDecorations cann't be set any more(If I set this property to true prior to assian the icon file,the nativeDocorations will turn back to false).I got a crash--one time; the nativeDecorations turned back to false--seems always.
- Mon Aug 22, 2011 3:51 am
- Forum: 欢迎使用中文讨论
- Topic: Code snippets 1: ListBox
- Replies: 5
- Views: 48132
Code snippets 1: ListBox
import "ecere" class Form1 : Window { text = "Form1"; background = activeBorder; borderStyle = fixed; hasClose = true; size = { 688, 256 }; anchor = { horz = -43, vert = -93 }; Label label1 { this, text = "在左边的ListBox双击一行则将该行文字添加给右边的ListBox", font = { "Tahoma&...
- Mon Aug 22, 2011 3:49 am
- Forum: GUI Toolkit & 2D Graphics
- Topic: [Solved]How to change Label/EditBox text
- Replies: 7
- Views: 22654
Re: How to change Label/EditBox text
just find that it is not so easy to set label.font property,esp. bold,underline etc.Please have a try and test.Thanks.
- Mon Aug 22, 2011 2:09 am
- Forum: GUI Toolkit & 2D Graphics
- Topic: [Solved]A couple of GUI issues
- Replies: 6
- Views: 19372
Re: A couple of GUI issues
Thanks,one last question regarding the anchor. 2. If you want a button to be 80x24, always at 10 pixels of the right edge of the parent, and at 30 pixels from the top, you say: Button button { this, size = { 80, 24 }, anchor = { top = 30, right = 10 }, text = "Push me" }; As the left prope...