Search:

Type: Posts; User: baka

Page 1 of 13 1 2 3 4

Search: Search took 0.45 seconds.

  1. Replies
    3
    Views
    67

    Re: CENTER string in string

    use Len and String() and simple math calculation.
  2. Re: OleLoadPicturePath and Transparency Parameter

    not sure. I use paint shop pro, where I can look into a gif and what index in the 8-bit palette (256 colors) the transparent is located.
    I can change the color and change the index as well.
    in that...
  3. Re: OleLoadPicturePath and Transparency Parameter

    do u really need that API? I never used it before.

    what about that color only works in a GIF with a transparent index? did u try that?
    or maybe it will just work with a 8bit BMP?
  4. Re: OleLoadPicturePath and Transparency Parameter

    and the picture you are trying to load is not JPEG? as that format usually will not work
  5. Replies
    9
    Views
    195

    Re: AlphaImage control question

    to understand a bit more

    what is this "modified image",
    do u have the source picture? is it a raster image (like png) so we have access to the alpha-channel?

    if I have a .png picture with...
  6. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    if u can do it yourself why do u ask for help? Im starting to think u are just messing with us. I dont have time helping someone that don't want help.
  7. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    did u add Box(Index).Tag = vbNullString before the reply. do that first.
    and place Box(Index).Tag = Coeff back again.
    if u keep changing all the time of course it will not work.
  8. Replies
    64
    Views
    1,296

    Re: Can anyone write an array module?

    not sure but I dont have any problems with arrays.
    the only "issue" that I know of is the empty array check. theres different workaround but still workarounds.
    to sort, we have many different...
  9. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    look here

    If Box(Index).Picture.Handle = 0 Then
    Box(Index).Picture = Pic(Coeff).Picture
    Box(Index).Tag = Coeff
    Else
    Set Box(Index).Picture = Nothing
    Box(Index).Tag = vbNullString (or "" if u...
  10. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    well. the solution seems to be 1,2,3,4,5 not 3,5,1,2,4 as u wrote.
    so change the 5 solution to that and it will work.
  11. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    Dim i As Integer
    Dim Coeff As Integer
    Dim Found As Integer
    Dim solution(1 to 5) as integer

    Private Sub Form_Load()
    solution(1) = 3
    solution(2) = 5
    solution(3) = 1
    solution(4) = 2
  12. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    so u click on a picture, to select it, and click on a box to move it there?
    u can place same pic in multiple boxes?
    and when u click on a box, it will change color of the selected pic?
  13. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    can't download the attachment, need to upload so it can be downloaded.
  14. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    that is your job as the programmer to know that.
    if u randomize or just have a specific position, that u need to program.
    so, if pic(1) should be placed in box(7), u need to program that.
    that u...
  15. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    that is why u need the "analyze" function.
    each time the user is placing an image to a box, u call the analyzer"

    what the analyzer do?
    if will ckeck all boxes and check all images if the right...
  16. Replies
    5
    Views
    222

    Re: Linking two textboxes together

    its the reason we have sub/functions. u can call the same sub from anywhere.
    and if u need callbacks, just use functions or byref.
  17. Thread: Some help pls

    by baka
    Replies
    34
    Views
    694

    Re: Some help pls

    u need to create a function, lets call it "analyze"
    this will loop at each picturebox and check if theres the right pic/box or not.
    u call this function each time the user places a pic into any of...
  18. Replies
    64
    Views
    1,296

    Re: Can anyone write an array module?

    also, why should we write an array module?
    most of the time we create functions depending on the needs, I dont need 100 different array functions when maybe I just use 3-4 different methods, I...
  19. Replies
    7
    Views
    300

    Re: WIN32 Timer Associated with a HWND

    that controllers (form or picturebox or whatever) hwnd has "nothing of sort", the timer is not inside the hwnd but its a API on its own that is sending a WM_TIMER message every "x milliseconds" as...
  20. Replies
    16
    Views
    479

    Re: Create random value from string.

    so, you want to create a seed that can both "shuffle" and "un-shuffle"
    instead of seed we could call it "key", we generate a key that suffles a string, and the same key can un-shuffle it.

    the...
  21. Replies
    4
    Views
    240

    Re: How the below code works

    I think he want Arr1 contain both string and integer, like

    Private Type MyType
    Str As String
    Ctr As Integer
    End Type

    Dim Arr1() As MyType

    ReDim Arr1(5)
  22. Re: randomize 1 to 80 numbers better than the Randomize function vb6

    I think isnoend07 is done with this problem. not sure he cares 9 years later.
    also this is VB6 and we dont need to call java for this particular problem.
    we can use API calls or other means instead...
  23. Replies
    2
    Views
    252

    Re: compiled .exe very slow

    is this a guess game? its impossible to know without more information.
    tell more what you are doing, what is "slow", and what u want the program to do.
  24. Replies
    11
    Views
    598

    Re: What FRACTAL have you created in VB6?

    I remember doing such things with my amiga500, using different formulas, mostly sin/cos/tan stuff to create patterns, kaleidoscope and similar Julian/Mandelbrot alternatives.
    always wanted to create...
  25. Replies
    28
    Views
    1,131

    Re: Accessing animated gif frames.

    what about u change to .png instead of .bmp when saving?
    .gif has a transparent index. not sure if wia is able to use that index and convert that to work with png. need testing.

    I think the...
  26. Thread: Parse a String

    by baka
    Replies
    12
    Views
    529

    Re: Parse a String

    u don't need to trim, CLng like Val will ignore space,
    BUT, Val is able to accept an "empty" string, while CLng will not.
    so, instead of Trim, I would:

    1. Use Val to be safe
    or
    2. Make sure...
  27. Replies
    6
    Views
    500

    Re: EnumDisplaySettings (API)

    the problem is that I get a invalid argument error code when I try to start it.

    the API
    Private Declare Function GetDisplayConfigBufferSizes Lib "user32" (Flags As Long, pNumPathArrayElements As...
  28. Replies
    6
    Views
    500

    Re: EnumDisplaySettings (API)

    yeah. I looked into the SetDisplayConfig API, but still no luck with it. will keep reading about it, as it could be a solution to do.
  29. Replies
    34
    Views
    1,484

    Re: Retro programming communities

    I don't have any links but I remember in recent years that I have been in different commodore64 sites and people that still create programs, even games in that machine.
    I think theres more interest...
  30. Replies
    6
    Views
    500

    EnumDisplaySettings (API)

    Using EnumDisplaySettings you can enumerate different display modes that your monitor can switch to.
    I have looked into the DEVMODE property but I can't find what Im looking for.

    so, what I would...
  31. Replies
    9
    Views
    569

    Re: Peekmessage (API) instead of Subclassing

    sort of. Im actually not replacing the messages.
    if the message says "mouse move", I grab the .x/.y and call the functions that uses that,
    but Im not changing the message at all, the mouse move...
  32. Replies
    9
    Views
    637

    Re: About the opposite of DoEvents???

    the purpose of multi-threading is to allow different threads to work separately, otherwise theres no point of using it.
    to wait for another thread to be done is useless. better to just use 1 thread....
  33. Replies
    9
    Views
    569

    Re: Peekmessage (API) instead of Subclassing

    I have been using peekmessage "and" vbs own runtime message loop for years together.
    it seems the peekmessage is doing "nothing". actually what peekmessage do is:

    a "closed" loop, if you are not...
  34. Replies
    8
    Views
    472

    Re: Adding Animated Icon to Form TitleBar

    it all depends on the program you are making.
    if you program "only need" this one thing, and everything else is old fashioned rad coding, the example The trick made is perfect, the settimer is...
  35. Replies
    9
    Views
    637

    Re: About the opposite of DoEvents???

    vb6 codes runs sequentially, so if you have
    - code lines
    - call functions (this will need to finish before it continues)
    - codes lines

    if you instead call a executable or a 3rd dll, theres the...
  36. Replies
    8
    Views
    472

    Re: Adding Animated Icon to Form TitleBar

    The trick made a sample for animated icons on the titlebar. look for his signature, I think he putted a link there or look for his contributions.
  37. Replies
    9
    Views
    569

    Re: Peekmessage (API) instead of Subclassing

    the Peekmessage loop is already discussed before a couple of times in the forum as an alternative to DoEvents.
    GetMessage is looking for a specific "message", and while doing so will wait until it...
  38. Thread: l wonder

    by baka
    Replies
    15
    Views
    875

    Re: l wonder

    I would look for the examples from The trick, I have been using his directsound8 tlb and theres lots of options.
    I think its possible to look into the raw-data to extract the sinus curves, but...
  39. Replies
    9
    Views
    569

    Peekmessage (API) instead of Subclassing

    so, I wonder why most of the time when you ask about, how to use the mouse wheel you get the answer "you need subclassing or a 3rd dll".
    but why not just use peekmessage?

    right now I use...
  40. Replies
    6
    Views
    514

    Re: Windows Aero Effect in Form

    this was a long time ago, but I remember that u can use different API to play around with the form, to make it transparent, to remove the controlbox dynamically, etc.
    I would try:
    Declare Function...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width