Ah I see, I was just missing that line of code.
I didn't mean to include the GroupBox Tag reference before, it just got caught up in the paste. That's so I can generate a random letter across the labels in sequence as the button is clicked rather than give all the labels random letters...
I can't seem to get it to function. The button will continue to be enabled no matter how many times I click. I tried breakpoint and it indicates the correct value (if I used it correctly, that is).
I set up an extra application to test it out, to ensure there was no conflict with the other code...
Okay I'm rethinking a few things here. But typically something else has cropped up. Surely I can use the Tag property to record how many times a button has been clicked, right? I want to be able to click a button five times, after which it disables. This is what I'm trying but it won't work...
I assume you mean Randseed or RandomRange? How might I implement that? Sorry I'm not all that experienced.
This is what I'm using to generate a random letter:
var
letter: array [0..5] of string;
currentletter: integer;
begin
letter[0] := 'A';
letter[1] := 'E';
letter[2] := 'I';
letter[3] :=...
Okay, without necessarily wanting to shoot all my problems here, solving this should put me on track for the rest of this application. [wink]
I have a button that places one random letter in turn across a series of labels. At present I'm randomising the letters from an array using the...
Yeah I guess it may seem a little odd. It's more for usability. There's actually one groupbox containing several labels that can be dragged into a series of other groupboxes.
Bang on. That method worked in getting the label back in there. Thanks. [thumbsup2]
But I don't suppose you know how would I go about placing the label back in the exact same co-ordinates in the original GroupBox?
Hi
I'm having trouble placing a label into a groupbox at runtime. I'll try to explain this the best I can.
I have a groupbox1 with a label inside it, I drag this label into groupbox2. Now I can perform this drag/drop process fine but where I'm having trouble is I want a button that when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.