| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> therefor generally are escapted <0> escaped <0> & = keyword escaing <0> escaping <0> what a horrible word :) <0> so you can use any keyword as an identifier. <1> Drk`Angel, but it doesn't look like any events are fired untill i drop the mouse from the drag. <2> DIal_SQ Using Delphi's events tends to be easier, but if you're after one box, did you try p***ing in the whatevergrid.handle rather than whateverform.handle? <1> Mjolnir, yes, i just did that, and it worked better. <3> ki9a, that's so cool, visualizing a sorting algorithm <0> Well it's pointless <0> but it looks cool <3> yes :P <1> Limited the the drop area, but the grid is pretty big, and if lets say i only have 2 rows, i am able to drop it all over the grid. I only want it to be able to drop on the rows. <2> Pointless in most cases, but IMO it's very helpful for education. <0> it goes too fast to follow them :)
<3> so what do you mean they're keywords? And why would you need to escape them? <4> DIal_SQ: Well, ifyou were using the events, you'd have the X,Y of the mouse cursor over the control and be able to control it that way. <4> Only way I've ever done it, so, dunno what your other options are. <0> Goodge: this stuff comes from a non-pascal side <3> ahh <0> Goodge: so it sometimes uses words for things, methods properties <0> that are keywords in pascal <0> say the thing had a property called "Type" <0> that would be hard to use <3> then you'd have to use &Type? <0> yes. <0> which acts like a regular identifier with the name Type. <3> ahh, sorta annoying <0> is it? <0> else you would not be able to use it at all. <0> note that Chrome does not require it after a . <0> like: <0> mycl***.Type <3> ahh <0> (although I think Code completion does insert it automatically in those cases) <3> any way you can make it so when i wanna reference a type of object, like, Button <3> I can use TButton? :P <0> should one be bored enough <0> you can create type aliases. <5> ...hi <0> would be pointless of course. <0> the designer uses Button <5> what's the function to convert win32 error to error description <3> well, you could do that in Delphi, just TBlah = TButton ? <0> Goodge: exactly. <0> Goodge: but the designer would keep inserting TButton's :) <3> It's just so annoying how there's no type identifier in .net object names...ug <3> but damn that little demo app is cool, hehe <6> what would unsigned char test[] = {0x00,0x00,0x00}; be in delphi ? <3> WPF rocks <0> you mean you complain that type aliases don't exist in NET? <0> gdb: trouble. <3> no, i don't like how type names don't start with a T <0> gdb: depending on how it's used, either: var r: array[0..2] of byte or var r: array[0..2] of char; <3> it makes it confusing to look at, when you see MyListView := ListView.Create <0> Goodge: only in delphi <0> since in .net you'd use <3> Well, yes :P <1> Mjolnir, hm, when i used the grid.Handle, the event did not seem to trigger.. <0> new ListView(... <0> makes it pretty obvious <0> what it is. <6> ki9a: ah okay :) its packet data so i ***ume i'd use byte <0> gdb: note that by default still need to fill the bytes with zeros in delphi <0> delphi doesn't support constants like that. <2> DIal_SQ Not really suprising. You'd be much better off using the Delphi events. <6> ki9a: okay. thanks. <2> You basically have two events. OnDragOver, and OnDragDrop. OnDragOver determines if you can accept what's coming at you and OnDragDrop actually handles the object. <1> Mjolnir, but does that work when dragging files from windows explorer? <7> no <7> for that you need WMDropFiles <7> or COM <1> Yes, and i am using WMDROPFILES, but i have a problem setting the area for accepting files. <8> Any1 can help me with delphi interfaces? <7> you dont set the area you set the window that can accept them <7> using DragAccept()
<7> DragAcceptFiles() either <1> Yes, but what if i only want a grid to accept them? <7> As long as it's a wincontrol set it to .Handle <7> and hook into the windowproc to get the message <1> Yes, i tried to set the grid.Handle in the DragAccept, but then the WMDROPFILES didn't trigger. <7> then u did something wrong <3> anyone know of a VNC client for Windows Mobile? <1> Blade``, but the only thing i am changing in the code is DragAcceptFiles(Handle,True); to DragAcceptFiles(ListBox1.Handle,True); <7> Well <7> how do you expect to know when WM_DROPFILES is sent? <7> You need to either sbucl*** the windowproc or descend from the control and override WindowProc <1> Hmm, sounds a bit over my level.. :\ <7> i did write a control for this <7> http://www.torry.net/vcl/system/draganddrop/lksdrop.zip <2> Blade`` Can't you just do message procedure in the cl***? <2> Ah, I misunderstood what you were subcl***ing. Nevermind. <7> You can under your own cl*** <1> What about this solution? He has the same problem: http://groups.google.no/group/alt.comp.lang.borland-delphi/browse_thread/thread/c995903e11ab1b9b/469abfca62298488?lnk=st&q=drag+files+from+explorer+delphi&rnum=16&hl=no#469abfca62298488 <1> but i am not quite sure how he gets the filename from that. <1> Think i got it. <1> Blade``, do you know if it is also possible to limit the drop to a grid row, and not the complete grid? <7> no <7> not unless you get the cursor position <7> and check that <1> Ok, thnx <9> *YAWN* <4> still trying to get up earlier? :) <10> I'm gonna sleep from friday night until sunday afternoon sometime. <0> sleep is a waste of time. <2> Oh? Why? <11> question about running edit.setfocus.... <12> Mjolnir: who why? <11> how come I dont see my cursor blinking and sometimes I just see the text selected in blue and soemtimes not <11> strange behavior <11> When i sually did a setfocus I got the blinkign cursor <11> i sthis a bug? <11> in 2006? <11> i dont recall this issue in D7 <12> spcshe: no. <12> spcshe: in fact. you are WAY too quick to blame delphi. <11> can i get a blinking cursor using setfocus? <12> spcshe: yes. <12> there are a variety of reasons you don't get a cursor. most of them have to do with windows XP not setfocus. <11> can i hack this and get it blinking? <11> i tried onmouse call <11> onclick and still no change <12> the main reason you don't get a cursor... is that you told windows to hide the cursor in edit windows when the mouse is inactive... <12> this is a default behavior <12> if you type something... does text appear where it should? <12> ShowCaret is the method you are looking for ... not onclick btw. <11> i will try this <11> speaking of carrots, I ate so much damn carrots ther elast fe wmonths my hands and feet turned orange/yellow <11> that sux <11> i hop eit goes away! heh <12> I suggest there is another reason. <12> yellow = jaundice. go see a dr. <9> Agreed. <9> Yellow = kidney/liver trouble. <12> liver. <11> hmmm, I do have liver problems... now your scaring me <12> I turned yellow when I was 5... almost wasn't allowed to go to school... my house was quarantined by the local health department. <0> Vibes: there are several things that can turn you yellow thugh. <9> Just go see a doctor. If it's nothing, no harm done. <12> they thought I had hepatitis. <9> If it's something significant, you'll be glad you went. <11> I guess I'll go next week. <11> I had fattyliver at one time, but I managed to reserve this with good diet.. <11> who knows.... <11> this sux! <12> how are your eyes? yellow too? <12> oops gone <12> hmmm fatty liver is a sign of schlerosis... <4> Fatty livers are also yummy. *gets out knife* <13> has anyone else ever done something as simple as executed a "tadoquery_variable.open" command and gotten a popup box at runtime which says "unspecified error" ???
Return to
#delphi or Go to some related
logs:
#cph #red set device dhcp client winxp definition consertive sex_18 Criminalplaza. sql hkgolden video card #stocks VIDEO_CARD make .conf #beginner
|
|