Search found 165 matches

by MyTrial
Wed Mar 07, 2012 11:21 am
Forum: Coding Questions
Topic: Base64Encoder
Replies: 5
Views: 1202

Re: Base64Encoder

Example.s = "This is a test string!"
Work.s = Space(1024)
Decoded.s = Space(1024)
Encoded.s = Space(1024)

PokeS(@Work,Example,Len(Example),#PB_Ascii)
Debug Base64Encoder(@Work, StringByteLength(Work), @Encoded, 1024)
Debug PeekS(@Encoded, -1, #PB_Ascii)
Would work correctly for an ASCII input ...
by MyTrial
Wed Mar 07, 2012 10:24 am
Forum: Coding Questions
Topic: Base64Encoder
Replies: 5
Views: 1202

Re: Base64Encoder

Hi Trond
thank you for your informations for that Unicode/ASCII problem. But your demonstration doesn't work correctly. If you compile without Unicode mode it gives a correct output:
32
VGhpcyBpcyBhIHRlc3Qgc3RyaW5nIQ==
22
This is a test string! But if you compile with Unicode mode it gives a wrong ...
by MyTrial
Thu Feb 02, 2012 2:49 pm
Forum: Coding Questions
Topic: colorize grey shadow around buttons with xpskin on
Replies: 6
Views: 1323

Re: colorize grey shadow around buttons with xpskin on

For your info: I will not use owner drawn buttons. That is not usable in the layout of my program. There are too much dynamic parts of all of the gadgets. I must live with that crux and be glad that the checkboxes and options are working for a colored background. But thankyou for your help ...
by MyTrial
Thu Feb 02, 2012 9:14 am
Forum: Coding Questions
Topic: colorize grey shadow around buttons with xpskin on
Replies: 6
Views: 1323

Re: colorize grey shadow around buttons with xpskin on

Thankyou, netmaestro, for your help points. I got the handles with GadgetID() for the color assignment and the checkboxes and options now working well. Now I have to look to the owner-drawn buttons receipt - and if I can use that.

First I tried to use transparency color with RGBA(), but that wasn't ...
by MyTrial
Wed Feb 01, 2012 4:50 pm
Forum: Coding Questions
Topic: colorize grey shadow around buttons with xpskin on
Replies: 6
Views: 1323

Re: colorize grey shadow around buttons with xpskin on

Hi netmaestro
nice to meet you and thanks for your help - your help is always welcome
I'm afraid that your help is not usable for me ... sorry
1) I have more than one area with different background colors - all gadgets would get same background color
2) that damages the complete layout, because all ...
by MyTrial
Wed Feb 01, 2012 10:24 am
Forum: Coding Questions
Topic: colorize grey shadow around buttons with xpskin on
Replies: 6
Views: 1323

Re: colorize grey shadow around buttons with xpskin on

Forgotten to say that this problem is bigger on checkbox and option gadgets.

OpenWindow(0,0,0,100,120,"BUTTONSHADOW")
SetWindowColor(0,RGB($00,$8f,$00))
ButtonGadget(3,10,10,80,40,"Button")
CheckBoxGadget(4,10,60,80,20,"CheckBox")
OptionGadget(5,10,90,80,20,"Option")
Repeat
Until WaitWindowEvent ...
by MyTrial
Wed Feb 01, 2012 9:52 am
Forum: Coding Questions
Topic: colorize grey shadow around buttons with xpskin on
Replies: 6
Views: 1323

colorize grey shadow around buttons with xpskin on

Hi
I am working on a big layout with many buttons (imagebuttons) with areas with user defined background colors. My problem is, that all buttons have a grey shadow around the button which is not colorized like the background. I didn't found any command to do that. This happens when XPSkin is set on ...
by MyTrial
Wed Dec 14, 2011 7:55 am
Forum: Coding Questions
Topic: listicongadget selected or not if pointing to the last
Replies: 7
Views: 1772

Re: listicongadget selected or not if pointing to the last

Good Morning ;)

@IdeasVacuum
Thanks for your response. Now your's working. But you have a lot of overlay and complexity in your code for that simple part. Sorry.

@RASHAD
Thanks for your info. That is it. As simple as possible. I like that. Thank you very much.

Have nice christmas days.
Sigi
by MyTrial
Tue Dec 13, 2011 7:52 pm
Forum: Coding Questions
Topic: listicongadget selected or not if pointing to the last
Replies: 7
Views: 1772

Re: listicongadget selected or not if pointing to the last

Hi IdeasVacuum
Sorry, but your code helps no way, it complicates only anything. ;)
Your result is same as mine. You deleted my part to see the last item in the list - but I need that. So your result brings back the list item zero, which is the first item. That is same as selecting the first item in ...
by MyTrial
Tue Dec 13, 2011 4:42 pm
Forum: Coding Questions
Topic: listicongadget selected or not if pointing to the last
Replies: 7
Views: 1772

Re: listicongadget selected or not if pointing to the last

Hi IdeasVacuum
thanks for your info. i think i did not explain very good what my wishes would be. maybe my bad english is the problem. sorry.
but your code does not what i want. i don't want a exit button, i want by using an other gadget (my test button) to see if something is selected in the ...
by MyTrial
Tue Dec 13, 2011 3:31 pm
Forum: Coding Questions
Topic: listicongadget selected or not if pointing to the last
Replies: 7
Views: 1772

listicongadget selected or not if pointing to the last

Hi

i have a silly question (i hope not) ;)

on a listicongadget i want to know if a line is selected or not. i need to show all of the list. so i define the last line to use. but when i get the state i get always the number of the last line - if selected or not. Do i something wrong? is there ...
by MyTrial
Fri Sep 16, 2011 7:43 am
Forum: Coding Questions
Topic: collisions using threads for a list data calculation
Replies: 1
Views: 638

collisions using threads for a list data calculation

Hi

i am working on a program which has a really time expensive part. To start quicker i thought to swap this part out in a thread. For the time expensive part there are a lot of calculations of variables of a list. If done for a list element a "done" flag would be set for that element. That is to ...
by MyTrial
Sat May 14, 2011 4:42 pm
Forum: Coding Questions
Topic: add shaped image to image
Replies: 7
Views: 1357

Re: add shaped image to image

Hi Demivec
as "self documenting" you mean the transparency information for CreateImage() in the Help I think ...
You are right, the transparency include would be the better way. But my application is not time dependent, so nobody waits, because nobody knows that it could run quicker. ;)
Have a good ...
by MyTrial
Sat May 14, 2011 4:16 pm
Forum: Coding Questions
Topic: add shaped image to image
Replies: 7
Views: 1357

Re: add shaped image to image

Hi Demivec
Thank you for that information. But I am used to write readable code and therefor I write the two steps as they are. On the other part I had some major problems by using some combined actions like that in the past. So I don't want to use them. Sorry. But thanks for the information. Maybe ...
by MyTrial
Sat May 14, 2011 3:53 pm
Forum: Coding Questions
Topic: add shaped image to image
Replies: 7
Views: 1357

Re: add shaped image to image

Hi
@Demivec: No matter what images are used ...
I think I have the solution:
a) Load background image to image handle. Resize if neccessary.
b) Load second image to next image handle. Resize if neccessary.
c) Create new mask image with size like second image.
d) Make transparent background on mask ...