Search found 67 matches

by hss
Tue Jul 26, 2016 10:48 am
Forum: Tricks 'n' Tips
Topic: Animation Gadget - last update Dec30 2013
Replies: 72
Views: 41578

Re: Animation Gadget - last update Dec30

both links are broken;
any chance of re-up?
by hss
Sun Jul 03, 2016 6:46 pm
Forum: Coding Questions
Topic: Scintilla: disable backspace/del?
Replies: 1
Views: 1056

Re: Scintilla: disable backspace/del?

found a solution.
by hss
Sun Jul 03, 2016 2:34 pm
Forum: Coding Questions
Topic: Scintilla: disable backspace/del?
Replies: 1
Views: 1056

Scintilla: disable backspace/del?

hello,

tried with Scintilla's callback, but *s\ch returns 0 at this, also, the window callback (uMsg=#WM_KEYUP) doesn't seem to work.
it need to capture these keys and disallow text removing except if caret is located at last line;
by hss
Fri Jul 01, 2016 8:30 am
Forum: Coding Questions
Topic: ImageGadget: set opacity/use as overlay?
Replies: 2
Views: 1034

Re: ImageGadget: set opacity/use as overlay?

thanks, netmaestro

to specify:

http://i.imgur.com/AltpVKg.png

so, if doing w/ 2nd window (which also fits delayed while moving), i guess a 3rd window is needed to put the "menu" onto;

since the background gadgets aren't "needed" while the menu is opened, i managed by calling PrintWindow_ and ...
by hss
Thu Jun 30, 2016 12:06 pm
Forum: Coding Questions
Topic: ImageGadget: set opacity/use as overlay?
Replies: 2
Views: 1034

ImageGadget: set opacity/use as overlay?

hello,

didn't found a solution for this: is there an API-way to set ImageGadget's opacity while it's on top of other gadgets?
(having a second window w/ #LWA_ALPHA is no solution for my case, btw.)
by hss
Tue Nov 05, 2013 12:19 pm
Forum: Coding Questions
Topic: CreateRegularExpression: non-capturing group?
Replies: 3
Views: 1417

Re: CreateRegularExpression: non-capturing group?

Code: Select all

(?<=<file>)((.*?)(?=<))
by hss
Tue Nov 05, 2013 11:41 am
Forum: Coding Questions
Topic: CreateRegularExpression: non-capturing group?
Replies: 3
Views: 1417

Re: CreateRegularExpression: non-capturing group?

fits - thanks.
by hss
Mon Nov 04, 2013 7:24 pm
Forum: Coding Questions
Topic: CreateRegularExpression: non-capturing group?
Replies: 3
Views: 1417

CreateRegularExpression: non-capturing group?

hello,

unfortunately, PB seems to ignore ?: (non-capturing group);
matches include <file> / </file> .. any workaround?



If CreateRegularExpression(0, "(?:<file>)(.*?)(?:</file>)",#PB_RegularExpression_DotAll )
Dim Result$(0)
NbFound = ExtractRegularExpression(0, "<xml><test>nn</test><file>File ...
by hss
Sun May 29, 2011 12:13 pm
Forum: Coding Questions
Topic: disable certain key-behavior in EditorGadget
Replies: 9
Views: 2197

Re: disable certain key-behavior in EditorGadget

nice one, RASHAD;

but.. how to only allow 'a' character?


this won't .. triggers, but still puts non-a-chars to Editor
Procedure.i EditorSubclassProc(hWnd, uMsg, wParam, lParam)


If (uMsg=#WM_KEYUP Or uMsg=#WM_KEYDOWN) And wParam<>65
Debug "everyhing but 'a' pressed"
ProcedureReturn

EndIf ...
by hss
Sun May 29, 2011 11:23 am
Forum: Coding Questions
Topic: disable certain key-behavior in EditorGadget
Replies: 9
Views: 2197

Re: disable certain key-behavior in EditorGadget

srod wrote:I've done this in the past to mimic a console in a GUI etc.
yay!
by hss
Sun May 29, 2011 10:33 am
Forum: Coding Questions
Topic: disable certain key-behavior in EditorGadget
Replies: 9
Views: 2197

disable certain key-behavior in EditorGadget

hello

how to stop certain keys--like #VK_UP--from being interpreted by EditorGadget?
in this example, the caret always jumps to last position--but, optimally, really nothing
should happen if #VK_UP gets pressed


Global EditorNormalProc

Procedure.i EditorSubclassProc(hWnd, uMsg, wParam, lParam ...
by hss
Wed May 25, 2011 6:29 am
Forum: Tricks 'n' Tips
Topic: hmac_sha1
Replies: 17
Views: 4919

hmac_sha1

PB implantation of HMAC_SHA1;
useful for authentication signing - e.g. Twitter's OAuth
http://en.wikipedia.org/wiki/HMAC


; hss/2011

Procedure.s hmac_sha1(key.s,msg.s)

If(Len(key)>64)
key=SHA1Fingerprint(@key,Len(key))
For x=1 To 20:PokeB(@key+x-1,Val("$"+Mid(key,(x*2)-1,2))):Next
For x ...
by hss
Sat Apr 16, 2011 9:23 am
Forum: Coding Questions
Topic: advanced Menu?
Replies: 2
Views: 1049

Re: advanced Menu?

interesting!
by hss
Fri Apr 15, 2011 7:08 pm
Forum: Coding Questions
Topic: advanced Menu?
Replies: 2
Views: 1049

advanced Menu?

... any chance of creating Menus with sub-content (buttons, input)? is there a library for this?

like Google Chrome's settings menu (Cut, copy... zoom)

Image
by hss
Thu Oct 28, 2010 9:42 am
Forum: Coding Questions
Topic: Transparent Container Gadget
Replies: 26
Views: 7564

Re: Transparent Container Gadget

Tip: to preserve transparency for moving/resizable gadgets,
use SetWindowLong_ w/ #WS_CLIPCHILDREN param




Procedure __test(x)

Repeat
x+10
ResizeGadget(2,x,#PB_Ignore,#PB_Ignore,#PB_Ignore)
ResizeGadget(3,#PB_Ignore,x,#PB_Ignore,#PB_Ignore)
Delay(1000)
ForEver

EndProcedure ...