FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DFL 0.8 release

 
Post new topic   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Thu Feb 24, 2005 3:10 pm    Post subject: DFL 0.8 release Reply with quote

Changes since 0.7:

Started support for UTF-8.
Updated examples/dnote.d to support UTF-8.
Added Application.enableVisualStyles() to enable XP styles without a manifest file.
Finished enum Keys.
MessageBox.show() has been renamed to msgBox() to avoid future conflicts.
TextBox and RichTextBox should now fully support UTF-8.
Added Form.addShortcut() and Form.removeShortcut() for shortcut keys.
Added examples/shortcut.d to demonstrate shortcut keys.
Fixed a Control bounds (window rect) issue.
Added class Bitmap to drawing.d.
Added dfl/picturebox.d with PictureBox control.
Added examples/pictureviewer.d, a simple bitmap viewer.
Added class FolderBrowserDialog.
Changed behavior of default exception dialog to pause message loop.
Removed anchoring. It was always buggy. It's easy to do manually with the layout event.
Modal dialog close button hides it and sets dialogResult to DialogResult.CANCEL.

A new tool, dfl.exe, was added to simplify compiling projects with DFL.

http://www.dprogramming.com/dfl.php

There is also an IRC library project at http://www.dprogramming.com/dirclib.php that has a DFL interface.
Back to top
View user's profile Send private message
frankdeprins



Joined: 01 Mar 2005
Posts: 5
Location: Antwerp, Belgium

PostPosted: Tue Mar 01, 2005 1:16 am    Post subject: Problem on Windows XP (sp2) Reply with quote

Hello,

First of all, thanks for a great library in an even greater language.
I want to report a problem I have with the 0.8 release and that was not present in the 0.7.
When starting the combo sample, an exception is raised "Unable to obtain information for window class COMBOBOX". The same error is raised when launching the treeview sample, but then for window class 'SysTreeview32'.
Both sample apps fail to start after that message.

Best regards and keep up the great work

Frank De prins
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Mar 01, 2005 1:39 am    Post subject: Re: Problem on Windows XP (sp2) Reply with quote

frankdeprins wrote:
When starting the combo sample, an exception is raised "Unable to obtain information for window class COMBOBOX". The same error is raised when launching the treeview sample, but then for window class 'SysTreeview32'.
Both sample apps fail to start after that message.

Thanks. hmm.. I'm not sure what the problem is. I didn't change that part of the code all that much. I wonder if anyone else has this problem.
- Chris
Back to top
View user's profile Send private message
frankdeprins



Joined: 01 Mar 2005
Posts: 5
Location: Antwerp, Belgium

PostPosted: Tue Mar 01, 2005 1:53 am    Post subject: Window class problem Reply with quote

Hello

I tried to insert, in the code (application.d), a call to
if (!FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL ))

but I guess this function is not impored in the D modules, as I got a compile error on it. I am too fresh in D to be more helpfull at this time, though. But if you could add this kind of code, more information could be displayed about the problem.

Best regards

Frank De prins
Back to top
View user's profile Send private message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Tue Mar 01, 2005 11:32 am    Post subject: Re: Problem on Windows XP (sp2) Reply with quote

Vathix wrote:
frankdeprins wrote:
When starting the combo sample, an exception is raised "Unable to obtain information for window class COMBOBOX". The same error is raised when launching the treeview sample, but then for window class 'SysTreeview32'.
Both sample apps fail to start after that message.

Thanks. hmm.. I'm not sure what the problem is. I didn't change that part of the code all that much. I wonder if anyone else has this problem.
- Chris


I have the same problem with combo.d, but treeview.d works fine here.

If I comment the following line out (in combo.d), it works.

Code:
Application.enableVisualStyles();



Bo
Back to top
View user's profile Send private message
frankdeprins



Joined: 01 Mar 2005
Posts: 5
Location: Antwerp, Belgium

PostPosted: Wed Mar 02, 2005 2:29 am    Post subject: GetClassInfo error Reply with quote

I added some code to find the error (the code is 1411) and the message is "Class does not exist". Now, since we all know that combobox DOES exist, I can only assume that there is something going wrong in passing the classname string to Windows.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Mar 04, 2005 12:23 pm    Post subject: Reply with quote

Sorry about this, all I can suggest is not using Application.enableVisualStyles() until someone finds a fix. I don't know what to do about this, I'm not even using Windows XP. Does the old manifest file way still work?
- Chris
Back to top
View user's profile Send private message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Fri Mar 04, 2005 12:39 pm    Post subject: Reply with quote

Vathix wrote:
Sorry about this, all I can suggest is not using Application.enableVisualStyles() until someone finds a fix. I don't know what to do about this, I'm not even using Windows XP. Does the old manifest file way still work?
- Chris


Yes, it works fine.

Also adding it as a resource works fine.

Bo
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Mar 15, 2005 9:34 am    Post subject: Reply with quote

enableVisualStyles() might not be working correctly because InitCommonControls() is being called before it instead of after. Anyone willing to mess with it? I'm considering getting Windows XP..
Back to top
View user's profile Send private message
frankdeprins



Joined: 01 Mar 2005
Posts: 5
Location: Antwerp, Belgium

PostPosted: Wed Mar 16, 2005 8:36 am    Post subject: Reply with quote

What do you mean with messing?
If you mean perform tests, no problem at all. Just tell me what to do.
If you mean trying to change the code, I'm afraid my API knowledge is not good enough, especially not on the most recent things as the XP theming etc.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Mar 16, 2005 9:37 am    Post subject: Reply with quote

frankdeprins wrote:
What do you mean with messing?
If you mean perform tests, no problem at all. Just tell me what to do.
If you mean trying to change the code, I'm afraid my API knowledge is not good enough, especially not on the most recent things as the XP theming etc.

Mess around with the code and try different things. Like take out the call to InitCommonControls() in application.d and put it in your code after Application.enableVisualStyles() to see if it solves the combo box issue.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Mar 16, 2005 1:03 pm    Post subject: Reply with quote

I went ahead and made the changes in today's snapshot, but I can't see if it works since I don't have XP. ( http://www.dprogramming.com/dfl/snapshots/ )
Let me know how it goes Smile thanks
- Chris
Back to top
View user's profile Send private message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Wed Mar 16, 2005 1:45 pm    Post subject: Reply with quote

Vathix wrote:
I went ahead and made the changes in today's snapshot, but I can't see if it works since I don't have XP. ( http://www.dprogramming.com/dfl/snapshots/ )
Let me know how it goes Smile thanks
- Chris


I get a "Fatal error - Unable to load comctl32.dll".

Regards

Bo
Back to top
View user's profile Send private message
frankdeprins



Joined: 01 Mar 2005
Posts: 5
Location: Antwerp, Belgium

PostPosted: Wed Mar 16, 2005 2:52 pm    Post subject: Reply with quote

I'm afraid it doen't change a lot where to put InitCommonControls. I tried to put it after the EnableVisual...call, but alas...
Even leaving it out does not make the example work.
Only removing the EnableVisual...call does
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group