Solved

form that would generate 20 buttons

Posted on 2004-04-06
20
191 Views
Last Modified: 2010-04-05
Hi

I would like to have a form that could generate 20 buttons from the access database and
before the main form and could start the application

eg.
Form 1
(buttons)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
now lets say you press 7 that would lead to the Main form and you could use the application there
(whatever the application does) and you would also have a button back to Form 1
which would go back and now you could  press 12 and that would start up the same application again
now
if you went back from 12 to Form 1
now you would have 2 buttons diffrent color indicating that the 2 buttons are active
now
if you went to 7 again and you pressed "End" button which couses the transaction to end,  and  then went back to Form 1 the button would not be active any more but the 12 would still be

thank you
 
0
Comment
Question by:zgeorge_2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 7
20 Comments
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10769670
Is this in relation to the POS program?

Shane
0
 

Author Comment

by:zgeorge_2
ID: 10769699
can you please
contact me
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10769713
Yes, but we should probably handle everything through EE, cause others are feeling left out.

Shane
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:zgeorge_2
ID: 10769754
cool we will

well this is regarding that metter

and i will post the code
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10769860
OK, you want the form to create 20 buttons from an access database during its creation and show the buttons when the form shows?

Whaaaaaaaaaaaaa, you have lost me with the rest of your question?

Shane

0
 

Author Comment

by:zgeorge_2
ID: 10769907
ok

It  generates 20 buttons on the Form1 from the access database and now when yoou press one of the buttons
it goes to another form ( which is the pos form ) then you may put in couple of items in that pos form and you have a button on the side so you could go back to Form1
if you go to the Form1 without ending the transaction it will be active untill you finsish with that
but meanwhile before ending that transaction you can bascically start an new one wit another button which perhaps maybe 12

and then go back and finish the first transaction you started

so you see?
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10769949
WHat is the purpose of the 20 buttons? What will each do?. How are they represented in the database?

I can create a button on a form that calls up the POS program, with no problem. But im not understanding your logic behind this - WHY?

Shane
0
 

Author Comment

by:zgeorge_2
ID: 10770059
lets maybe put it like this

you may understand that as being tables and when you press that # (table ) the pos appears


and if you have another table you go back because you cannot finish the transaction so you
go back and select anoither table


do you see my point now?
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10770078
unit UntMain;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TfrmMain = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmMain: TfrmMain;

implementation

{$R *.dfm}

procedure TfrmMain.Button1Click(Sender: TObject);
begin
 if frmMainPos.ShowModal = mrok then
 begin
  //
 end;
end;

Im sending you an example...

Shane
0
 

Author Comment

by:zgeorge_2
ID: 10770244
well do you understand
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10770247
Did you get my example I emailed you?

Shane
0
 

Author Comment

by:zgeorge_2
ID: 10770254
no
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 500 total points
ID: 10770312
Did you check your
>>
eMail removed

kretzschmar
Page Editor
<<
email account?

Common, we are waiting space here, i can't keep playing email tag with you!

Shane
0
 

Author Comment

by:zgeorge_2
ID: 10770548
ok
did you review my pictures


0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10770565
No, i have not received any pictures. Please email me these questions, leave this space for code examples.

Shane
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10773986
The solution is posted. He wanted a new form with 20 buttons on it, and when one button was clicked, to show his Point of Sale form Modal.

Shane
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10774049
NP,

 and yes his question was not clear...it turned out to be more work then what was originally suggested - , and when its actually finished, we will post the said code...

Shane
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP preg_replace code convert to Delphi 14 81
Tvertscrollbox like a whatsapp layout 5 53
Firemonkey BASS_Init into a thread 17 55
IP without any Dots 1 59
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question