Search found 72 matches

by mx101
Thu Mar 31, 2011 4:06 pm
Forum: Announcement
Topic: xMask - A Masked Edit Gadget
Replies: 48
Views: 32539

Re: xMask - A Masked Edit Gadget

Peyman wrote:@netmaestro:
thanks netmaestro, i cant find xombie's original header for the code so i write one.

@mx101 :
see my last post, its updated.

thank you Peyman you save my day :D

thank you very much
by mx101
Thu Mar 31, 2011 3:22 pm
Forum: Announcement
Topic: xMask - A Masked Edit Gadget
Replies: 48
Views: 32539

Re: xMask - A Masked Edit Gadget

Peyman and netmaestro thank you very much to both :D


How can i remove the beep sound ??
by mx101
Wed Mar 30, 2011 7:27 am
Forum: Announcement
Topic: xMask - A Masked Edit Gadget
Replies: 48
Views: 32539

Re: xMask - A Masked Edit Gadget

netmaestro wrote:Xombie hasn't posted in over six months. Let's give him a few days to respond and if none comes I'll update the code to the current version for you. You can also try to PM him, that might work.

oki netmaestro thank you very much :)
by mx101
Tue Mar 29, 2011 8:46 pm
Forum: Coding Questions
Topic: Mask StringGadget
Replies: 0
Views: 716

Mask StringGadget

hi...

it's possivel to mask StringGadget like in VB?


this code not work on PB 4.51

http://www.purebasic.fr/english/viewtop ... ask#p87644


any guru can update this code to work in PB 4.51?

thanks
by mx101
Tue Mar 29, 2011 8:41 pm
Forum: Announcement
Topic: xMask - A Masked Edit Gadget
Replies: 48
Views: 32539

Re: xMask - A Masked Edit Gadget

hi... Xombie

can you update the code to use in PB 4.51??


not work in PB 5.1 can you update the code?


thanks
by mx101
Tue Mar 29, 2011 3:56 am
Forum: Coding Questions
Topic: StrD round problem
Replies: 3
Views: 1029

Re: StrD round problem

Supply 3 for the NbDecimals parameter of StrD():
dH.d = 23.976
dT.d = dH.d *1

OpenWindow(0,0,0,320,240,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
TextGadget(1,10,10,200,20,"")
SetGadgetText(1, StrD(dT.d, 3))
Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow

you are right when Supply ...
by mx101
Mon Mar 28, 2011 9:56 pm
Forum: Coding Questions
Topic: StrD round problem
Replies: 3
Views: 1029

StrD round problem

hi again...

i have a problem when i convert a double number to string.


here is an example:


i have


dH.d = 23.976

dT.d = dH.d *1

SetGadgetText(1, StrD(dT.d), 2)

always show as result 23.98

but i whant show 23.976*1= 23.976

I don't want to round this number

anyone can help me
by mx101
Mon Mar 28, 2011 7:30 pm
Forum: Coding Questions
Topic: Get statusbar text
Replies: 4
Views: 1649

Re: Get statusbar text

hi...

If someone can help me with one example.


How can i get text of statusbar?


sorry for my english

Had to delete all the other posts, my very crappy coding. The below is a lot nicer to read ...
by mx101
Sun Mar 27, 2011 11:02 pm
Forum: Coding Questions
Topic: Get statusbar text
Replies: 4
Views: 1649

Get statusbar text

hi...

If someone can help me with one example.


How can i get text of statusbar?


sorry for my english
by mx101
Sat Jan 16, 2010 10:16 am
Forum: Coding Questions
Topic: how to show several sizes of the icons help
Replies: 23
Views: 4404

Re: how to show several sizes of the icons help

mx101,

for displaying only a specified single icon from an icon group you have to
know the icon id which you can find out with one of my previous examples.
Take a look into this new example which just displays icon #490 from the
library Shell32.DLL (tested with Windows 7 RC1): EnableExplicit ...
by mx101
Thu Jan 14, 2010 11:06 pm
Forum: Coding Questions
Topic: Should I switch to PureBasic?
Replies: 20
Views: 5508

Re: Should I switch to PureBasic?

hi........

in my newbie opinion i think the purebasic is better than realbasic and more faster than the two.

realbasic for windows is full of bugs, each version for windows came out have a lot of bugs.

try for example in version 2009r5.1 "is the last stable version" on windows 7 compile one ...
by mx101
Thu Jan 14, 2010 6:51 pm
Forum: Coding Questions
Topic: how to show several sizes of the icons help
Replies: 23
Views: 4404

Re: how to show several sizes of the icons help

mx101,

to display only icons with a width of 64 pixels and 32 bit color change this line of my last example If *GrpIconDir\idEntries[i]\bWidth = 64 into If *GrpIconDir\idEntries[i]\bWidth = 64 And *GrpIconDir\idEntries[i]\wBitCount = 32


thank you very much Shardik

just one more question. :oops ...
by mx101
Thu Jan 14, 2010 3:11 pm
Forum: Coding Questions
Topic: how to show several sizes of the icons help
Replies: 23
Views: 4404

Re: how to show several sizes of the icons help

hi again....


i need some help with this again.

I only want to show one icon of every time and only one depth.

each icon have several depths like 16 color, 256 so on.

in my application i want show on mouseover only one icon in RGB/A 32 bit color how can i do this with your example?
by mx101
Tue Jan 12, 2010 10:44 pm
Forum: Coding Questions
Topic: how to show several sizes of the icons help
Replies: 23
Views: 4404

Re: how to show several sizes of the icons help

if i want show only one size of group ex: 64x64 how do this?
In principal you only have to check the width or height of each
icon in all icon groups and display only those icons with a width
of 64 pixels: If *GrpIconDir\idEntries[i]\bWidth = 64
; Display icon
endif
This code example displays all ...
by mx101
Mon Jan 11, 2010 5:32 pm
Forum: Coding Questions
Topic: how to show several sizes of the icons help
Replies: 23
Views: 4404

Re: how to show several sizes of the icons help

Here some infos for enumeration icons/icons group

It is possible to have alphanumerical identifier for resource, that is ResName in the enumeration callback (in your code EnumResNameProc() proc) could be a pointer to a string. Such cases are not common but exist.

FindResource must take care of ...