Search found 28 matches

by Jihugen
Sat Oct 30, 2010 11:56 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] New flag for EditorGadget: #PB_Editor_WordWrap
Replies: 6
Views: 3573

Re: New flag for EditorGadget: #PB_Editor_WordWrap

Thanks a lot Shardik for this line, I was looking for it in the Win SDK but it finding it wasn't so obvious. SendMessage_(GadgetID(#EditorGadget), #EM_SETTARGETDEVICE, 0, 0) There is currently no PB gadget with both word wrap and scrollbars (TextGadget (ie. static control) clips the text when it doe...
by Jihugen
Tue Jul 06, 2010 2:02 pm
Forum: Feature Requests and Wishlists
Topic: FindListElement() and FindStructuredListElement()
Replies: 6
Views: 1365

Re: FindListElement() and FindStructuredListElement()

I would also greatly appreciate this feature (with type #PB_String_NoCase available, of course ;) ). As Seymour said, we can't easily write our own generic function because we can't manage different types in PB procedure. So we can write a dedicated procedure each time this feature is needed (that's...
by Jihugen
Tue Jul 06, 2010 2:35 am
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

Hi, I thing you can try the " PureLVSORT_SetLastColumnAutoResize (GadgetNumber.l, TrueOrFalse.l)" of Gnozal Library... ? :?: Hi, I explained in 1st post why I didn't want to use this lib. It would be the equivalent of PureLVSORT_SetLastColumnAutoResize() in one of the excellent Gnozal's l...
by Jihugen
Sun Jul 04, 2010 3:15 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

@PB Well, I do care about the columns resizing, as I stated in 1st post. (In my case, it would be only when adding items to the list, or modifying the witdh of the first column ). But anyway, thanks for the tips. Could be useful. I may reuse it when trying to keep things simple. Honestly, if I had k...
by Jihugen
Sun Jul 04, 2010 2:27 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

Thanks Netmaestro your help with this issue, and for your explaination about the WM_PAINT message. Unfortunately, I had several glitches when trying your example... 1. There is a small dummy column created at the right. I'm using XP with no Themes (classical), maybe depending on your theme it could/...
by Jihugen
Fri Jul 02, 2010 3:57 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

Gnozal has kindly provided me a snippet of code used in his PureLVSORT library. And he seems to agree the task was not as simple as it could look first. Unfortunately, the code is too interlinked in the whole library too be reused, at least for me. But I have found another way to proceed, intercepti...
by Jihugen
Thu Jul 01, 2010 7:26 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

In fact (about A+B+C column size...) the goal is not to avoid an horizontal scrolling bar at all cost. In case the last column has reach its minimum size (which I think depends of the column header text width), then of course a scrollbar can appear. The goal is to have the last column automatically ...
by Jihugen
Wed Jun 30, 2010 11:25 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

@USCode You can't get the colunm to be automatically resized with a simple SetGadgetItemAttribute(). @Luis I edited the code to show you a way to intercept the resize of the heading columns. Ok, thanks again. Now I have to digest and understand all that... You may call me stupid, but I can't underst...
by Jihugen
Wed Jun 30, 2010 10:39 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

Re: How to automatically resize the last column of a ListIco

Well, thanks, luis. Thanks to your code, I have dicovered some still unknow stuff for me, like the use of GetProp_(). But it's not foolproof, unless you prevent manual column resizing too... Unfortunately, as I said in 1st post, I'd like to keep the possibility to resize column... Can we intercept t...
by Jihugen
Wed Jun 30, 2010 2:29 pm
Forum: Windows
Topic: How to automatically resize the last column of a ListIcon?
Replies: 16
Views: 5166

How to automatically resize the last column of a ListIcon?

Hi, I'm trying to have the last column of a ListIcon automatically resized. (In my case, it would be only when adding items to the list, or modifying the witdh of the first column). The final goal is to avoid the horizontal scrolling bar that appear only to allow the vertical bar to be displayed... ...
by Jihugen
Sun Jun 27, 2010 5:23 pm
Forum: Coding Questions
Topic: RunProgram communication difficulties
Replies: 2
Views: 898

Re: RunProgram communication difficulties

Sorry, I'm not giving you some code, but just a clue, because I think you're starting with a wrong idea. From what I read in the help file, WriteProgramData() or ReadProgramData() are to be used by the launcher only . May be I'll say something sutpid, but to send data from the launcher, isn't it a s...
by Jihugen
Sat Jun 26, 2010 5:48 pm
Forum: Coding Questions
Topic: intercept API
Replies: 31
Views: 10353

Re: intercept API

I don't know what wrong for you with the onerror lib. The supplied little example works like a charm, and I've already used it for other simple stuff without trouble... Otherwise, there is Olly.dll, see this thread: http://www.purebasic.fr/english/viewtopic.php?f=5&t=42527 Or this one, but it's ...
by Jihugen
Sat Jun 26, 2010 1:43 pm
Forum: Coding Questions
Topic: intercept API
Replies: 31
Views: 10353

Re: intercept API

I hope thats better understandable, sorry english is not my nativ language. I think I get it now, thanks for the explanation. 6 Bytes are not enough if you want to 'copy and paste' the instruction elsewhere, to be able to call the original procedure. But it would be enough for a simple backup (in c...
by Jihugen
Sat Jun 26, 2010 3:12 am
Forum: Coding Questions
Topic: intercept API
Replies: 31
Views: 10353

Re: intercept API

But why even use ASM to begin with, what he wants to do is just StdCall isn't it ? The goal was to write a Call to HookedProcedure() directly at the beginning of the DeleteFileA function, so that each call to DeleteFileA will be forwarded to HookedProcedure. It's fast, dirty and fun... There is pro...
by Jihugen
Fri Jun 25, 2010 1:09 pm
Forum: Coding Questions
Topic: String Gadget is not beeing updated
Replies: 3
Views: 919

Re: String Gadget is not beeing updated

I have not read the topic in detail, so maybe my answer will not make a lot of sense here, but using this line: While WindowEvent() : Wend should be better as a rule than a simple call to WindowEvent() (as stated in the PB help file). That way, you're sure that after this line, all queued events hav...