-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChineseCalendar shows nothing but black window #583
Comments
I haven't had the time to download the latest VFBE and MFF yet. I'll try them out when I have some free time. |
the buggy one is the ChineseCalendar in VisualFBEditor, not that one in your repositories 是 VisualFBEditor 里面的例子只有黑色,不是你代码库中的例子 |
it‘s same to me, maybe this PR caused it |
Yes, after hustbeef's pull request this happened. After this fix it now shows: Update DrawClockCalendar.bas: |
Do you updated the MFF? It is fine working in my laptop. |
There BackColor is set to -1, so it will appear black. |
Recently I upgrade the control Panel , Picture and canvas for better drawing. I think It's too simple to draw a more realistic hour, minute, and second hand now. |
Usually, the painting is first drawn on the memory DC, and then copied and overlaid in the form DC for display. Avoid flickering caused by drawing and display at the same time,this is call double buffer. 通常绘画都是先绘制在内存设备上,完成后再复制覆盖在窗口显示出来 |
A very good example, you can update ChineseCalendar. |
Yes, I will. |
I release a PR to add a gdipClock example |
Now ChineseCalendar shows a traditional round clock on running. The menu item, for example, "blink colon" has nothing to do with it. In other words, this has become a new project. Furthur I met bugs, for example clock can only be clicked through even I did not choose "click through". I suggest open a new demo instead of overwritting the old one. I also suggest to modify the code in own fork. Only do pull requests if new code has been tested throughly on different OS, for example different Windows and Linux in a virtualization software. Although there is not so many coders who can really contribute to this project, I think stability is always a good consideration. 现在的ChineseCalendar一运行就显示一个传统钟表,和菜单里面“不显示秒”等等根本无关。换言之,这完全是另外一个项目;而且有bug(没选择“click through”,不知咋的,钟表就只能“click through”了)。建议另建成一个新的示例,而不要覆盖之前的 官方代码,建议自己fork,在多个平台(例如,虚拟机里跑不同windows、linux版本)实验确定没问题,再申请合并回官方代码 尽管能做贡献的开发人员少,但是也要向着稳定的方向开发啊 |
The example of the Chinese calendar still retains a text-only version of the clock in my repositories, where you can go back to normal and use it. 中国日历这个例子,还保留着一个纯文字时钟的版本在我的程序库里,可以去那里恢复正常的来使用 https://github.com/chunmingwang/ChineseCalendar |
You are correct. We need to address the bugs. The new "Clock" example, demonstrating how to draw an image with canvas, will be relocated to "Controls\MyFbFramework\examples". |
Through the development progress of examples, it also helps to promote the progress of mff. |
You can send a pull request. Only the name of this example should be slightly different.
You're right. |
The new Transparent mode shows the background. I just tried and got it. The code is still not ready. The logic bothers me a lot. But the new Canvas is drawing smooth and fast, that's the goal. Please try running the example code CanvasDraw.bas and resizing the forms by mouse to improve the code. |
Fixed: Add Transparent of LED Digital showing (PR #587) |
FX-LED text clock in Example of gdipClock:
Analog clock in Example of gdipClock: |
Should I submit a PR to restore ChineseCalendar as a pure text clock? |
I think it is a good idea |
#600 |
|
i update gdipClock Example, u can try it. leave your message, if u like it or if u have suggestion for it. |
lastet VisualFBEditor and myfbframework, but ChineseCalendar shows nothing but black window
中文:使用刚下载的VisualFBEditor和myfbframework,但是编译出来的ChineseCalendar窗口一片黑,其余啥都没有
The text was updated successfully, but these errors were encountered: