Search found 23 matches

by millie78526
Mon May 27, 2024 9:28 pm
Forum: Coding Questions
Topic: Why doesn't $FF0000 show as Red ?
Replies: 5
Views: 805

Re: Why doesn't $FF0000 show as Red ? [Solved]

Aha....
Thank you very much Guys !
by millie78526
Mon May 27, 2024 4:10 pm
Forum: Coding Questions
Topic: Why doesn't $FF0000 show as Red ?
Replies: 5
Views: 805

Why doesn't $FF0000 show as Red ?

TIA :
Why doesn't $FF0000 show as Red ?
SetGadgetColor(3, #PB_Gadget_FrontColor, $FF0000)

Pls , see code below :


; purebasic
If OpenWindow(0, 0, 0, 200, 500, "SetStringColor", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
; Create the font objects
Define VerdanaFont = LoadFont(#PB_Any ...
by millie78526
Sat May 25, 2024 7:45 pm
Forum: Coding Questions
Topic: For Editor & String , single Click causes DoubleClick ?
Replies: 3
Views: 476

Re: For Editor & String , single Click causes DoubleClick ? [Solved]

Ahh.. Thank you very much ChrisR...

- #PB_EventType_Focus
- #PB_EventType_Change
- #PB_EventType_LostFocus
I'm starting to get the hang of things...
by millie78526
Fri May 24, 2024 8:49 pm
Forum: Coding Questions
Topic: For Editor & String , single Click causes DoubleClick ?
Replies: 3
Views: 476

For Editor & String , single Click causes DoubleClick ?

TIA ,
For Editor & String , single Click causes DoubleClick ?
I think what's happening is PB catches TWO Clicks , StringDownClick and StringUpClick .
Same for EditorDownClick and EditorUpClick .
How can I discover #PB_UpClick vs #PB_DownClick ?

If OpenWindow(0, 0, 0, 200, 500, "SetGadgetColor ...
by millie78526
Tue May 21, 2024 10:35 pm
Forum: Coding Questions
Topic: Trouble with Toggle images ?
Replies: 5
Views: 668

Re: Trouble with Toggle images ?

oops
by millie78526
Tue May 21, 2024 10:31 pm
Forum: Coding Questions
Topic: Trouble with Toggle images ?
Replies: 5
Views: 668

Re: Trouble with Toggle images ?

Thanks Michael Vogel ,
I couldn't get that working ,
so I switched things around a bit .
Now switch occurs at Button Click
and I added FreeGadget(0) .

Image1 = LoadImage(0, "StartButton-Green-159x42-bmp.bmp")
Image2 = LoadImage(1, "WorkingButton-Red-159x42-bmp.bmp")
ImageID = Image1 ; Initialize ...
by millie78526
Tue May 21, 2024 7:57 pm
Forum: Coding Questions
Topic: Trouble with Toggle images ?
Replies: 5
Views: 668

Re: Trouble with Toggle images ?

Sorry , Michael Vogel , I don't get it , both codes are the same ?
This:
https://vmars.us/ShowMe/WorkingButton- ... -\bmp.bmp
https://vmars.us/ShowMe/StartButton-Gr ... 2-bmp.bmp ?
by millie78526
Tue May 21, 2024 4:25 pm
Forum: Coding Questions
Topic: Trouble with Toggle images ?
Replies: 5
Views: 668

Trouble with Toggle images ?

TIA :
I'm having Trouble with Toggle images ?

https://vmars.us/ShowMe/WorkingButton-Red-159x42-\bmp.bmp


https://vmars.us/ShowMe/StartButton-Green-159x42-bmp.bmp

See code below:
Problem is that code doesn't show either image .

; www.purebasic.com
; Author: Andre Beer (PureBasic-Team - www ...
by millie78526
Thu May 16, 2024 9:50 pm
Forum: Coding Questions
Topic: How to #CCM_SETBKCOLOR for Button ?
Replies: 3
Views: 512

How to #CCM_SETBKCOLOR for Button ?

TIA...:
How to #CCM_SETBKCOLOR for Button ?
I see this Example by Andre 2003
SendMessage_(GadgetID(9),#CCM_SETBKCOLOR,0,RGB(60,50,0))
that colors a ProgressBar .
Is there one for Button ?
Thanks...
by millie78526
Wed May 08, 2024 9:45 pm
Forum: Coding Questions
Topic: Large files , NewList vs Array ?
Replies: 10
Views: 1752

Re: Large files , NewList vs Array ?

Thanks guys ,I appreciate your Help...

https://vmars.us/freeware/Study-Up/Study-Up-HELP.html


Thanks Grampa for letting me Post it on your sites :)
by millie78526
Mon May 06, 2024 7:44 pm
Forum: Coding Questions
Topic: Large files , NewList vs Array ?
Replies: 10
Views: 1752

Re: Large files , NewList vs Array ?

Hi NickTheQuick ;
Yes , processing a large file can take a while ,
I do that to give the user notice that something in happening .
If I do the MessageRequester without a Delay , it doesn't show right away .
by millie78526
Sun May 05, 2024 11:27 pm
Forum: Coding Questions
Topic: Large files , NewList vs Array ?
Replies: 10
Views: 1752

Re: Large files , NewList vs Array ?

Sorry I was speaking generically , is Array faster than NewList .
Program starts here:


Procedure StartProgram()
Debug "Procedure StartProgram()"
SetGadgetText(StartButton , "Working....")
Delay(500)
MessageRequester("Still TO DO" , "1) Stop any 'Clear Address_String' " +
"2) Delete any ...
by millie78526
Sun May 05, 2024 9:00 pm
Forum: Coding Questions
Topic: Large files , NewList vs Array ?
Replies: 10
Views: 1752

Large files , NewList vs Array ?

Thanks for your Help:

I have a 'NewList WordsList.s()'
into which I am reading in .txt file .
So far my largest file is 300kb , 4,540 lines .
At a Button Click WordsList.s() can be re-sorted
into Ascending or Descending order .
The Program can be quite slow , sometimes getting a "Not Responding ...
by millie78526
Sun May 05, 2024 8:23 pm
Forum: Coding Questions
Topic: ? Need Help with Regular Expression
Replies: 4
Views: 692

Re: ? Need Help with Regular Expression

Thank you Andesdaf , works much better:

; CreateRegularExpression(0, "^[0-9 .]+$") ; First Try "^[0-9]+$"
If MatchRegularExpression(0, aLine$)
; Debug "RegularExpressionError() = " + RegularExpressionError()
Debug "SkipThisLine = " + aLine$
Goto SkipThisLine
EndIf
by millie78526
Sat May 04, 2024 10:25 pm
Forum: Coding Questions
Topic: ? Need Help with Regular Expression
Replies: 4
Views: 692

? Need Help with Regular Expression

TIA ;
I want to weed out lines that have only numeric characters OR
numeric characters and space(s) .
If it is a numeric line , I want to 'Goto SkipThisLine'
But my RegEx lets thru every line .
How can this be fixed?


; CreateRegularExpression(0, "^[0-9 ]+$") ; First Try "^[0-9]+$"
If ...