[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-look
Subject: Re: Drag-Standard-Acion
From: Rolf Magnus <ramagnus () zvw ! de>
Date: 2001-03-28 17:38:01
[Download RAW message or body]
On Wednesday 28 March 2001 14:50, Klas Kalass wrote:
> Hi all,
> I tried to implement a "Drag-File" Action (so a user can drag the current
> File from the Main-Toolbar to a different application or just save it
> somewhere) and came across some "Look And Feel" issues.
> Please tell me your thoughts about this.
>
> I) Easy Solution: use the Document on Disk
> II) Better Solution: use the current status of the Document. Problem: it
> needs to be saved, wat name to use, when to delete it?
> a) Do a "Save" before the Drag: Maybe User doesn't expect this ( implicit
> action)
> b) Save it to a tmp-File: User closes first App:
> - File gets deleted (what about second app?), or
> - File stays where it is -> maybe Garbage (especialy when dragged to
> Konqui)
I think the best possibility would be
III) Directly transfer it from one program to the other one, perhaps with a
special kioslave for this. Something like a pipe.
--
The code that draws a theme-aware button in Windows XP:
rtButton.top = 100;
rtButton.left = 10;
rtButton.bottom = 130;
rtButton.right = 200;
hTheme = OpenThemeData(hWnd, L"Button");
DrawThemeBackground(hTheme, hdc, BP_PUSHBUTTON, PBS_NORMAL, &rtButton, NULL);
DrawThemeText(hTheme, hdc, BP_PUSHBUTTON, PBS_NORMAL, wzTMB, wcslen(wzTMB),
DT_CENTER | DT_VCENTER | DT_WORD_ELLIPSIS | DT_SINGLELINE, 0, &rtButton);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic