Author |
Message |
Topic: Which line textbox.selectedText() is on |
Chris Miller
Replies: 2
Views: 18297
|
Forum: DFL Posted: Sun Oct 31, 2010 8:24 pm Subject: Re: Which line textbox.selectedText() is on |
Here's how I get the line the user clicked in a text box.
auto pt = myTextBox.pointToClient(Cursor.position);
auto charidx = myTextBox.getCharIndexFromPosition(pt);
auto line0 ... |
Topic: Double buffer graphics |
Chris Miller
Replies: 2
Views: 18446
|
Forum: DFL Posted: Sun Oct 31, 2010 8:17 pm Subject: Re: Double buffer graphics |
Double-buffering isn't the default. There are some [url=http://wiki.dprogramming.com/Dfl/AddOns]DFL addons that may be helpful, such as DrawingArea and GraphicsBuffer. GraphicsBuffer provides control/ ... |
Topic: Problem with DFL |
Chris Miller
Replies: 2
Views: 18532
|
Forum: DFL Posted: Sun Oct 31, 2010 8:12 pm Subject: Re: Problem with DFL |
Are you calling makelib.bat directly? It doesn't include internal/_stcwindows.d and _stdcwindows.obj if the environment variable 'dlib' isn't set to Tango. When using dfl.exe, this variable is set aut ... |
Topic: Build DFL with CMake |
Chris Miller
Replies: 2
Views: 19115
|
Forum: DFL Posted: Tue Jul 27, 2010 7:50 pm Subject: Re: Build DFL with CMake |
I can't download it, I don't have IE. |
Topic: Rotated Text, Save Bitmap |
Chris Miller
Replies: 5
Views: 25282
|
Forum: DFL Posted: Tue Jul 27, 2010 7:47 pm Subject: Rotated Text, Save Bitmap |
How about this, I added an this(ref LogFont lf, float emSize, FontStyle style, GraphicsUnit unit)so you could use this to keep RFont in your project and use the new Font constructor.
If it's ... |
Topic: Control Events |
Chris Miller
Replies: 1
Views: 16599
|
Forum: DFL Posted: Fri Jul 16, 2010 1:58 pm Subject: Re: Control Events |
Events don't bubble up to the parent, but here's a template you can use: [url=http://paste.dprogramming.com/dph7zk2m]DFL Control input events propagate to parent - notice line 100 |
Topic: PictureBox.location: Broken or being used wrong? |
Chris Miller
Replies: 1
Views: 16373
|
Forum: DFL Posted: Thu Jul 08, 2010 10:53 pm Subject: Re: PictureBox.location: Broken or being used wrong? |
Since you docked it, it's going to ignore your manual bounds and fill the dock area. You can either handle the [url=http://wiki.dprogramming.com/DflDoc/Control-Control-layout]layout yourself without [ ... |
Topic: Launching Multiple Windows |
Chris Miller
Replies: 1
Views: 16286
|
Forum: DFL Posted: Thu Jul 08, 2010 10:46 pm Subject: Re: Launching Multiple Windows |
You can call void main()
{
(new Form2()).show();
Application.run(new Form1());
}
but the one passed to Application.run will sti ... |
Topic: Rotated Text, Save Bitmap |
Chris Miller
Replies: 5
Views: 25282
|
Forum: DFL Posted: Thu Jul 08, 2010 10:37 pm Subject: Re: Rotated Text, Save Bitmap |
To rotate text, you could write the text normally into a temporary bitmap, and then rotate the pixels as you copy them to where you want it.
DFL doesn't directly have a way to get the pixel data of ... |
Topic: exe file size |
Chris Miller
Replies: 6
Views: 28701
|
Forum: DFL Posted: Thu Jun 03, 2010 1:05 pm Subject: Re: exe file size |
It seems like phobos (std) has been growing quite a lot, especially in D2. Tango seems to be winning in this department now. |
Topic: c#/c++ bmp.LockBits - like function for DFL |
Chris Miller
Replies: 3
Views: 21028
|
Forum: DFL Posted: Thu Jun 03, 2010 12:57 pm Subject: c#/c++ bmp.LockBits - like function for DFL |
There's also a addons at http://wiki.dprogramming.com/Dfl/AddOns called DrawingArea and GraphicsBuffer |
Topic: New Update Schedule |
Chris Miller
Replies: 10
Views: 103238
|
Forum: DFL Posted: Mon May 17, 2010 12:13 am Subject: New Snapshot dfl-20100516 |
A new snapshot with an installer is up:
http://wiki.dprogramming.com/Dfl/Snapshots
This includes support for Tango 0.99.9 but not including [url=http://wiki.dprogramming.com/DflDoc/Socket]dfl.sock ... |
Topic: New Update Schedule |
Chris Miller
Replies: 10
Views: 103238
|
Forum: DFL Posted: Sun May 09, 2010 2:01 am Subject: New Update Schedule |
Hi sandford, I appreciate your help. I can't directly accept changes only for D2 because it might not be compatible with D1, but I do look to it when making my changes, so it does help. Thanks.
As ... |
Topic: I supppose to make DFL apps with XML for designing widgets |
Chris Miller
Replies: 3
Views: 20462
|
Forum: DFL Posted: Sun May 09, 2010 1:40 am Subject: Re: DFL apps with XML for designing widgets |
This is looking cool. Where is bud_design? |
Topic: New Update Schedule |
Chris Miller
Replies: 10
Views: 103238
|
Forum: DFL Posted: Wed Apr 21, 2010 1:22 pm Subject: New Update Schedule |
Hello D world. Starting in May DFL will have monthly maintenance releases. This will include updates for new compiler and Tango releases, and bug fixes.
First up in May will probably include the fo ... |
|